// JavaScript Document

function MesajKon()
{

if(document.form1.company_name.value.length < 3)
 {
alert("Firma adınızı giriniz!");
  document.form1.company_name.focus();
  document.form1.company_name.select();
  return false;
 }
 else{window.status = "";}
 if(document.form1.name_surname.value.length < 3)
 {
alert("Adınızı ve Soyadınızı giriniz!");
  document.form1.name_surname.focus();
  document.form1.name_surname.select();
  return false;
 }
 else{window.status = "";}
 
 if(document.form1.phone.value.length < 3)
 {
alert("Telefon numaranızı giriniz!");
  document.form1.phone.focus();
  document.form1.phone.select();
  return false;
 }
 else{window.status = "";}
 
 if(document.form1.email.value.length < 3)
 {
alert("E-posta adresinizi giriniz!");
  document.form1.email.focus();
  document.form1.email.select();
  return false;
 }
 else{window.status = "";} 

 if(document.form1.yourmessage.value.length < 3)
 {
alert("Mesajınızı yazınız!");
  document.form1.yourmessage.focus();
  document.form1.yourmessage.select();
  return false;
 }
 else{window.status = "";} 


}

function checkeposta(form1) {
if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(form1.email.value)){
return (true)
}
alert("Hatalı E-posta Adresi! Tekrar giriniz.")
return (false)
}
