function winopen(imgName,close_coords,download_coords) {
	var popUpSizeX=347;
	var popUpSizeY=527;
	var fullsize_img_name = imgName;
	
	//Vollbild nicht in englischer Version
	if (fullsize_img_name.substr(fullsize_img_name.length-3) == "_en") fullsize_img_name = fullsize_img_name.substr(0,fullsize_img_name.length-3);
	
	//if (close_coords=="marzipan"){
	if (close_coords=="marzipan" || close_coords=="confiserie"){
		close_coords = "223,346,347,376";
		download_coords = "45,15,341,150";
	}
	if (!close_coords) close_coords = "223,501,347,527";
	if (!download_coords) download_coords = "26,15,335,120";
	var popUpLocationX=((screen.availWidth / 2) - popUpSizeX / 2); //300;
	var popUpLocationY=98;//((screen.availHeight / 2) - popUpSizeY / 2);
	var myPopUp;
	/* Hier wird der HTML-Code mit dem in temp übergebenen Code ausgetauscht.*/
	myPopUp=document.getElementById("myPopUp");
	myPopUp.innerHTML = '<img src="images/' + imgName + '.gif" border="0" usemap="#PopupMap">'
		+ '<map name="PopupMap">'
		+ '<area shape="rect" coords="' + close_coords + '" href="javascript:winclose()" alt="Fenster schliessen">'
		+ '<area shape="rect" coords="' + download_coords + '" href="images/' + fullsize_img_name + '_full.jpg" target="_blank" alt="Bilddaten Download">'
		+ '</map>';
	myPopUp.style.left = popUpLocationX;
	myPopUp.style.top = popUpLocationY;
	myPopUp.style.visibility = "visible";

}
function winclose() {
	var myPopUp;
	myPopUp=document.getElementById("myPopUp");
	myPopUp.innerHTML ="";
	myPopUp.style.visibility = "hidden";
}
function chkFormular(){
 if(document.Formular.Name_Vorname.value == "")
  {
   alert("Bitte tragen Sie Ihren Vor- und Nachnamen ein!");
   document.Formular.Name_Vorname.focus();
   return false;
  }
 if(document.Formular.Firma.value == "")
  {
   alert("Bitte tragen Sie Ihren Firmennamen ein!");
   document.Formular.Firma.focus();
   return false;
  }
 if(document.Formular.Strasse.value == "")
  {
   alert("Bitte tragen Sie Ihre Straße ein!");
   document.Formular.Strasse.focus();
   return false;
  }
 if(document.Formular.PLZ_Ort.value == "")
  {
   alert("Bitte tragen Sie Ihre PLZ und Ihren Ort ein!");
   document.Formular.PLZ_Ort.focus();
   return false;
  }
 if(document.Formular.eMail.value == "")
  {
   alert("Bitte tragen Sie Ihre eMail-Adresse ein!");
   document.Formular.eMail.focus();
   return false;
  }
}

function chkFormular_en(){
 if(document.Formular.Name_Vorname.value == "")
  {
   alert("Please enter your first name and last name!");
   document.Formular.Name_Vorname.focus();
   return false;
  }
 if(document.Formular.Firma.value == "")
  {
   alert("Please enter your company name!");
   document.Formular.Firma.focus();
   return false;
  }
 if(document.Formular.Strasse.value == "")
  {
   alert("Please enter your street!");
   document.Formular.Strasse.focus();
   return false;
  }
 if(document.Formular.PLZ_Ort.value == "")
  {
   alert("Please enter your ZIP code and city!");
   document.Formular.PLZ_Ort.focus();
   return false;
  }
 if(document.Formular.Land.value == "")
  {
   alert("Please enter your country!");
   document.Formular.Land.focus();
   return false;
  }
 if(document.Formular.eMail.value == "")
  {
   alert("Please enter your email address!");
   document.Formular.eMail.focus();
   return false;
  }
}

function SetOrderCheckbox(){
	if(window.location.href.indexOf("?") != -1){    // teste ob "?" in der url vorkommt
		stringArray = window.location.href.split("?");
		if(stringArray[1] =="1") document.forms[0].Ganzjahressortiment.checked=true;
		if(stringArray[1] =="2") document.forms[0].September_bis_April.checked=true;
	 }
}