<!--

  // © 2007 Bitpalast GmbH. Alle Rechte vorbehalten.


	function numbersonly(e){
		var unicode=e.charCode? e.charCode : e.keyCode
		if ((unicode!=8) && (unicode!=9)){ //if the key isn't the backspace or tab key (which we should allow)
		if (unicode<48||unicode>57) //if not a number
		return false //disable key press
		}
	}


  function contact_validator(theForm)
  {
    if (theForm.beschreibung.value.length > 3300)
    {
      alert("Lütfen açıklamalarınızı bir DIN A4 sayfasına sığacak şekilde ayarlayınız.");
      theForm.beschreibung.focus();
      return (false);
    }

    if (theForm.nachname.value.length < 2)
    {
      alert("Lütfen soyadınızı yazınız.");
      theForm.nachname.focus();
      return (false);
    }

    if (theForm.vorname.value.length < 2)
    {
      alert("Lütfen adınızı yazınız.");
      theForm.vorname.focus();
      return (false);
    }

    if (theForm.plz.value.length < 4)
    {
      alert("Posta kodunuzda en az dört hane olmalı.");
      theForm.plz.focus();
      return (false);
    }

    if (theForm.email.value == "")
    {
      alert("Lütfen e-posta adresinizi yazınız.");
      theForm.email.focus();
      return (false);
    }

    if (theForm.email.value.length < 8)
    {
      alert("E-posta adresiniz en az sekiz hane uzunluğunda olmalı.");
      theForm.email.focus();
      return (false);
    }

    if ((theForm.email.value.indexOf("sdf") > -1) || (theForm.email.value.indexOf("jkl") > -1) || (theForm.email.value.indexOf(".") == -1) || (theForm.email.value.indexOf("@") == -1)) {
      alert("E-posta adresiniz geçersiz.");
      theForm.email.focus();
      return (false);
    }

    var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒ0123456789@-_.";
    var checkStr = theForm.email.value;
    var allValid = true;
    var validGroups = true;
    for (i = 0;  i < checkStr.length;  i++)
    {
      ch = checkStr.charAt(i);
      for (j = 0;  j < checkOK.length;  j++)
        if (ch == checkOK.charAt(j))
          break;
      if (j == checkOK.length)
      {
        allValid = false;
        break;
      }
    }
    if (!allValid)
    {
      alert("E-posta adresi içinde lütfen sadece harf, rakam ve \"@-_.\" işaretlerini yazınız.");
      theForm.email.focus();
      return (false);
    }

    if (theForm.vorwahl.value.length < 3)
    {
      alert("Telefon kodunuzu yazınız.");
      theForm.vorwahl.focus();
      return (false);
    }

    if (theForm.rufnummer.value.length < 2)
    {
      alert("Telefon numaranızı yazınız.");
      theForm.rufnummer.focus();
      return (false);
    }

    return (true);
  }

  function contact_validator2(theForm)
  {
    if ((theForm.quelle[0].checked) && (theForm.empfehlungsgeber.value == ''))
    {
      alert("'Kişisel Tavsiye' kutusunu işaretlediniz, lütfen sizi tavsiye eden kişinin adını yazınız. Teşekkür ederiz!");
      theForm.empfehlungsgeber.focus();
      return (false);
    } else if ((theForm.quelle[1].checked) && (theForm.zeitschriftenname.value == ''))
    {
      alert("'Yazılı Basında İlan' kutusunu işaretlediniz, lütfen ilanı hangi gazete/mecmuada gördüğünüzü yazınız. Teşekkür ederiz!");
      theForm.zeitschriftenname.focus();
      return (false);
    } else if ((theForm.quelle[3].checked) && (theForm.website.value == ''))
    {
      alert("'İnternet' kutusunu işaretlediniz, lütfen adımızın geçtiği internet web sitesinin adresini yazınız. Teşekkür ederiz!");
      theForm.website.focus();
      return (false);
    }

    return (true);
  }


//-->