/* <![CDATA[ */
	function download(datei) {
		location.href=datei;
	}
/*---------*/
	function CheckInput()
	{
	  if(document.contact_form.s_name.value == "")  {
	     if (self.lang == 'de')
	       alert("Bitte geben Sie Ihren Namen ein!");
	     else
	   	   alert("Please enter your name!");
	     document.contact_form.s_name.focus();
	     return false;
	  }
	  if (!CheckAlphaNumeric(document.contact_form.s_name.value)) {
	     if (self.lang == 'de')
	       alert("Bitte nur zulässige Zeichen eingeben (A-Z, a-z, 0-9, '.' ',' '-' '_') !");
	     else
	   	   alert("Please enter only allowed characters (A-Z, a-z, 0-9, '.' ',' '-' '_') !");
	     document.contact_form.s_name.focus();
	     return false;
	  }

	  if((document.contact_form.s_phone.value == "") && (document.contact_form.s_email.value == "")){
	     if (self.lang == 'de')
	        alert("Bitte geben Sie Telefon oder e-Mail ein!");
	     else
	        alert("Please enter Telefone or eMail Address!");
	     document.contact_form.s_phone.focus();
	     return false;
	  }
	  if (!CheckPhone(document.contact_form.s_phone.value)) {
	     if (self.lang == 'de')
	       alert("Bitte nur zulässige Zeichen eingeben (0-9, '+' '-' '(' ')') !");
	     else
	   	   alert("Please enter only allowed characters (0-9, '+' '-' '(' ')') !");
	     document.contact_form.s_phone.focus();
	     return false;
	  }

	  if(document.contact_form.s_email.value != ""){
	     var chkAt = 0;
	     for(i=0;i<document.contact_form.s_email.value.length;++i)
	        if(document.contact_form.s_email.value.charAt(i) == "@") chkAt++;
	        if(chkAt != 1) {
	          if (self.lang == 'de')
	            alert("Bitte geben Sie eine gültige e-Mail-Adresse ein!");
	          else
	            alert("Please enter a valid eMail Address!");
	        document.contact_form.s_email.focus();
	        return false;
	     }
	  }
	  if (!CheckAlphaNumeric(document.contact_form.s_email.value)) {
	     if (self.lang == 'de')
	       alert("Bitte nur zulässige Zeichen eingeben (A-Z, a-z, 0-9, '.' ',' '-' '_' '@') !");
	     else
	   	   alert("Please enter only allowed characters (A-Z, a-z, 0-9, '.' ',' '-' '_' '@') !");
	     document.contact_form.s_email.focus();
	     return false;
	  }

	  if(document.contact_form.s_subject.value == "")  {
	     if (self.lang == 'de')
	       alert("Bitte geben Sie einen Betreff ein!");
	     else
	       alert("Please enter a subject!");
	     document.contact_form.s_subject.focus();
	     return false;
	  }
	  if(document.contact_form.s_message.value == "")  {
	     if (self.lang == 'de')
	       alert("Bitte geben Sie eine Nachricht ein!");
	     else
	       alert("Please enter a message!");
	     document.contact_form.s_message.focus();
	     return false;
	  }
	  if (!CheckAlphaNumeric(document.contact_form.s_message.value)) {
	     if (self.lang == 'de')
	       alert("Bitte nur zulässige Zeichen eingeben (A-Z, a-z, 0-9, '.' ',' '-' '_' '@') !");
	     else
	   	   alert("Please enter only allowed characters (A-Z, a-z, 0-9, '.' ',' '-' '_' '@') !");
	     document.contact_form.s_message.focus();
	     return false;
	  }
	  return true;
	}
/*---------*/
	function CheckAlphaNumeric(text)
	{
	   var chkOK = -1;
	   var txt = text.toLowerCase();
	   for(i=0;i<text.length;++i) {
	      if((txt.charAt(i) == "ä") ||
	         (txt.charAt(i) == "ö") ||
	         (txt.charAt(i) == "ü") ||
	         (txt.charAt(i) == "ß") ||
	         (txt.charAt(i) == "a") ||
	         (txt.charAt(i) == "b") ||
	         (txt.charAt(i) == "c") ||
	         (txt.charAt(i) == "d") ||
	         (txt.charAt(i) == "e") ||
	         (txt.charAt(i) == "f") ||
	         (txt.charAt(i) == "g") ||
	         (txt.charAt(i) == "h") ||
	         (txt.charAt(i) == "i") ||
	         (txt.charAt(i) == "j") ||
	         (txt.charAt(i) == "k") ||
	         (txt.charAt(i) == "l") ||
	         (txt.charAt(i) == "m") ||
	         (txt.charAt(i) == "n") ||
	         (txt.charAt(i) == "o") ||
	         (txt.charAt(i) == "p") ||
	         (txt.charAt(i) == "q") ||
	         (txt.charAt(i) == "r") ||
	         (txt.charAt(i) == "s") ||
	         (txt.charAt(i) == "t") ||
	         (txt.charAt(i) == "u") ||
	         (txt.charAt(i) == "v") ||
	         (txt.charAt(i) == "w") ||
	         (txt.charAt(i) == "x") ||
	         (txt.charAt(i) == "y") ||
	         (txt.charAt(i) == "0") ||
	         (txt.charAt(i) == "1") ||
	         (txt.charAt(i) == "2") ||
	         (txt.charAt(i) == "3") ||
	         (txt.charAt(i) == "4") ||
	         (txt.charAt(i) == "5") ||
	         (txt.charAt(i) == "6") ||
	         (txt.charAt(i) == "7") ||
	         (txt.charAt(i) == "8") ||
	         (txt.charAt(i) == "9") ||
	         (txt.charAt(i) == "_") ||
	         (txt.charAt(i) == "-") ||
	         (txt.charAt(i) == ".") ||
	         (txt.charAt(i) == "@")) chkOK = 1;
	      if(chkOK != 1) {
	      return false;
	      }
	   }
	   return true;
	}
/*---------*/
	function CheckPhone(text)
	{
	   var chkOK = -1;
	   var txt = text.toLowerCase();
	   for(i=0;i<text.length;++i) {
	      if((txt.charAt(i) == "0") ||
	         (txt.charAt(i) == "1") ||
	         (txt.charAt(i) == "2") ||
	         (txt.charAt(i) == "3") ||
	         (txt.charAt(i) == "4") ||
	         (txt.charAt(i) == "5") ||
	         (txt.charAt(i) == "6") ||
	         (txt.charAt(i) == "7") ||
	         (txt.charAt(i) == "8") ||
	         (txt.charAt(i) == "9") ||
	         (txt.charAt(i) == "+") ||
	         (txt.charAt(i) == "-") ||
	         (txt.charAt(i) == "(") ||
	         (txt.charAt(i) == ")")) chkOK = 1;
	      if(chkOK != 1) {
	      return false;
	      }
	   }
	   return true;
	}
/*---------*/
/* ]]> */
