﻿function MachakFull(Ie,other){
x=screen.availWidth;
y=screen.availHeight;
target = parseFloat(navigator.appVersion.substring(navigator.appVersion.indexOf('.')-1,navigator.appVersion.length));
if((navigator.appVersion.indexOf("Mac")!=-1) &&(navigator.userAgent.indexOf("MSIE")!=-1) &&(parseInt(navigator.appVersion)==4))
window.open(other,"sub",'scrollbars=yes');
if (target >= 4){
	if (navigator.appName=="Netscape"){
    var MachakFull=window.open(other,"MachakFull",'scrollbars=yes','width='+x+',height='+y+',top=0,left=0');
	MachakFull.moveTo(0,0);
	MachakFull.resizeTo(x,y);}
if (navigator.appName=="Microsoft Internet Explorer")
	window.open(Ie,"MachakFull","fullscreen=yes");
	}
	else window.open(other,"sub",'scrollbars=yes');
	}

function pruefung_step3(formular)
{
   if(formular.account_firstname.value.length =='')
   {
      alert('Bitte den Vornamen eingeben')
      return false
   }
   if(formular.account_lastname.value.length =='')
   {
      alert('Bitte den Nachnamen eingeben')
      return false
   }
   if(formular.account_street.value.length =='')
   {
      alert('Bitte eine Strasse eingeben')
      return false
   }
   if(formular.account_plz.value.length =='')
   {
      alert('Bitte eine Postleitzahl eingeben')
      return false
   }
   if(formular.account_city.value.length =='')
   {
      alert('Bitte eine Stadt eingeben')
      return false
   }
   
}
function check_agb(formular)
{
   if(formular.agb.checked==false)
   {
   		alert('Um Ihre Bestellung abzuschliessen, akzeptieren Sie bitte die Allgemeinen Geschäftsbedingungen.');
     	return false;
   }
}
function check_agb_en(formular)
{
   if(formular.agb.checked==false)
   {
   		alert('You have to accept the terms and conditions');
     	return false;
   }
}
function popupagb(file,width,height)
{
	var URL = file;
	var Name = "popup";
	var Fensteroptionen = "toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0";
	var Breite = width;
	var Hoehe = height;
	window.open(URL, 'Name', Fensteroptionen + ',width=' + Breite + ',height=' + Hoehe);
}
function gopayment(payment) {
		if(window.document.payment.pay[0].checked == false && window.document.payment.pay[1].checked == false && window.document.payment.pay[2].checked == false ) {
			alert("<?=$payment_methodeo;?>");
			return false;
		} 
	}
	
function showuebernehmenbutton()
{
// document.getElementById('orderbutton').setAttribute('type', 'hidden', false);
 document.getElementById('uebernehmenbutton').style.visibility = 'visible'; 
 document.getElementById('indicatior_change').value = 1;
 
}
