function hideLayer(whichLayer) {
if (document.getElementById) {
// this is the way the standards work
document.getElementById(whichLayer).style.visibility = "hidden";
}
else if (document.all) {
// this is the way old msie versions work
document.all[whichlayer].style.visibility = "hidden";
}
else if (document.layers) {
// this is the way nn4 works
document.layers[whichLayer].visibility = "hidden";
}
}

function showLayer(whichLayer) {
if (document.getElementById) {
// this is the way the standards work
document.getElementById(whichLayer).style.visibility = "visible";
}
else if (document.all) {
// this is the way old msie versions work
document.all[whichlayer].style.visibility = "visible";
}
else if (document.layers) {
// this is the way nn4 works
document.layers[whichLayer].visibility = "visible";
}
}

function handleClick(whichClick, name) {
var teile= name.split(",");
if (whichClick == "hide it") {
// then the user wants to hide the layer
  for (i=0;i<teile.length;i++) hideLayer(teile[i]);
}
else if (whichClick == "show it") {
// then the user wants to show the layer
  for (i=0;i<teile.length;i++) showLayer(teile[i]);
}
}


function OpenWindow(FileNm, aWidth, aHeight) {
  aWindow=window.open(FileNm, "aWindow", "screenX=40, screenY=40, width="+eval(aWidth+20)+", height="+eval(aHeight+20)+", resizable=yes, scrollbars=yes");
  if (!aWindow.opener)aWindow.opener=self;
  if (aWindow.focus)aWindow.focus();
}

function CheckFormular()
{
 if(document.Formular.firstname.value == "")  {
   alert("Please enter your first name !");
   document.Formular.firstname.focus();
   return false;
  }
 if(document.Formular.lastname.value == "")  {
   alert("Please enter your last name !");
   document.Formular.lastname.focus();
   return false;
  }
 if(document.Formular.company.value == "")  {
   alert("Please enter your company !");
   document.Formular.company.focus();
   return false;
  }
 if(document.Formular.web.value == "")  {
   alert("Please enter your web address !");
   document.Formular.web.focus();
   return false;
  }
 if(document.Formular.phone.value == "")  {
   alert("Please enter your phone !");
   document.Formular.phone.focus();
   return false;
  }
 if(document.Formular.fax.value == "")  {
   alert("Please enter your fax !");
   document.Formular.fax.focus();
   return false;
  }
 if(document.Formular.street1.value == "")  {
   alert("Please enter your street !");
   document.Formular.street1.focus();
   return false;
  }
 if(document.Formular.code.value == "")  {
   alert("Please enter your city code !");
   document.Formular.code.focus();
   return false;
  }
 if(document.Formular.city.value == "")  {
   alert("Please enter your city !");
   document.Formular.city.focus();
   return false;
  }
 if(document.Formular.country.value == "")  {
   alert("Please enter your country !");
   document.Formular.country.focus();
   return false;
  }
 if(document.Formular.mail.value == "") {
   alert("Please enter your E-Mail address !");
   document.Formular.mail.focus();
   return false;
  }
 if(document.Formular.mail.value.indexOf('@') == -1) {
   alert("Invalid E-Mail address !");
   document.Formular.mail.focus();
   return false;
  }
}
