<!-- 
// Für Auswahl der Country im Shipping
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
// Infos zum Shop werden in neuem Fenster angezeigt
function popUpInfos(targetURL,h) {
	//alert("Übergebene Werte -> h: "+h);
	var scrollbars = "no";
	
	//Minimale Fenstergröße
	w = 400;
	minh = 100;
	//Maximale Fenstergröße
	maxh = 500;
		
	if(h < minh) { h = minh; }	
    if(h > maxh ) {h = maxh; scrollbars = "yes"; }
	
//	alert("Check nach maximal -> scroll: "+scrollbars+" w: "+w+ ", h: "+h);
	
//	Position von dem linken Rand wird bestimmt
	wPos = w+50;
	
	leftPos=0
	if(screen) {leftPos = screen.width-wPos;}
	
	NewWindow = window.open(targetURL,'n','locationbar=yes,menubar=no,scrollbars='+scrollbars+',status=no,resizable=yes,left='+leftPos+',top=0,width='+w+',height='+h+'');
	NewWindow.resizeTo((w+20),(h+80));
	NewWindow.focus();


}

// Bild in neuem Fenster anzeigen
function PopUpPicture(targetURL, w, h) {
	
	//alert("Übergebene Werte -> w: "+w+ ", h: "+h);
	
	var scrollbars = "no";
	
	//Minimale Fenstergröße
	minw = 270;
	minh = 270;
	//Maximale Fenstergröße
	maxh = 550;
	maxw = 400;
		
	if(w < minw) { w = minw; }
	if(h < minh) { h = minh; }	
	
	//alert("Check nach minimal -> w: "+w+ ", h: "+h);
  	
    if (h > maxh ) {h = maxh; scrollbars = "yes"; }
    if (w > maxw ) {w = maxw; scrollbars = "yes"; }
	
	//alert("Check nach maximal -> scroll: "+scrollbars+" w: "+w+ ", h: "+h);
	
	// Position von dem linken Rand wird bestimmt
	wPos = w+30;
	
	leftPos=0
	if(screen) {leftPos = screen.width-wPos;}
	
	NewWindow = window.open(targetURL,'n','locationbar=yes,menubar=no,scrollbars='+scrollbars+',status=no,resizable=yes,left='+leftPos+',top=0,width='+w+',height='+h+'');
	NewWindow.resizeTo((w+20),(h+80));
	NewWindow.focus();
}

// Check Formularfelder für Persdata
function chkPersData(lng) {

    if(document.form4.first_name.value == "") {
     if(lng=="de") {alert("Bitte Ihren Vornamen eingeben!");}
	 if(lng=="en") {alert("Please insert your first name!");}
     document.form4.first_name.focus();
     return false;
    }
  	if(document.form4.last_name.value == "") {
     if(lng=="de") {alert("Bitte Ihren Namen eingeben!");}
	 if(lng=="en") {alert("Please insert your last name!");}
     document.form4.last_name.focus();
     return false;
    }
	if(document.form4.email.value.indexOf('@') == -1) {
     if(lng=="de") {alert("Keine Email-Adresse!");}
	 if(lng=="en") {alert("Please insert valid email!");}
     document.form4.email.focus();
     return false;
    }
	if(document.form4.address.value == "") {
     if(lng=="de") {alert("Bitte Strasse eingeben!");}
	 if(lng=="en") {alert("Please insert address!");}
     document.form4.address.focus();
     return false;
    }
	if(document.form4.zip.value == "") {
     if(lng=="de") {alert("Bitte PLZ eingeben!");}
	 if(lng=="en") {alert("Please insert zip!");}
     document.form4.zip.focus();
     return false;
    }
	if(document.form4.city.value == "") {
     if(lng=="de") {alert("Bitte Ort eingeben!");}
	 if(lng=="en") {alert("Please insert city!");}
     document.form4.city.focus();
     return false;
    }

// Überprüfen die VatNo	
	var alertTxtGer = "Bitte VatNo eingeben!";
	var alertTxtEng = "Check your VAT Registration Number!";
	
	if(document.form4.vatno) {
		// Ist leer?
		if(document.form4.vatno.value == "") {
		  if(lng=="de") {alert(alertTxtGer);}
		  if(lng=="en") {alert(alertTxtEng);}
		  document.form4.vatno.focus();
		  return false;
		}

	} // END vatno

}

// check Country für Shipping und Payment
function chkShipData(lng) {
	
	//alert("CHECK LAND - COUNTRY ID VALUE: " + document.form5.country_id_tmp.value); 
	//alert("ANZAHL DER ZEICHEN: " + document.form5.country_id_tmp.value.length); 
	//alert("LAST CHARACTER VALUE: " + document.form5.country_id_tmp.value.substr(document.form5.country_id_tmp.value.length-1,1));  

  var country_id_value = document.form5.country_id_tmp.options[document.form5.country_id_tmp.options.selectedIndex].value;
  
  if (country_id_value.substr(country_id_value.length-1,1)=="=") {
    if(lng=="de"){alert("Bitte Land eingeben!");}else{alert("Please select country!");}
    document.form5.country_id_tmp.focus();
	return false;
  }
  else return true;

}

// Öffnet Druckseite
function openPrint(targetURL) {
	
	leftPos=0
	if(screen) {leftPos = screen.width-700}

	NewWindow = window.open(targetURL,'','width=645,height=600,locationbar=no,menubar=no,scrollbars=yes,status=no,resizable=yes,left='+leftPos+',top=0');
  	NewWindow.focus();

}
// Beim Klick auf Suchfenster wird das Feld leer
function checkQstring(category_id) {
	
	if(category_id!="") {
	
		document.searchString.qstring.value = "";
	
	}

} 
//-->
