<SCRIPT language="JavaScript">
<!--
var MaxLen = 20
function climit(form)
{
inputStr = form.mesaj.value;
strlength= inputStr.length;
if (strlength > MaxLen ) form.mesaj.value=inputStr.substring(0,MaxLen);
form.mesaj.focus();
}
function control()
{
if (document.mesaj.adi.value=="")
{
alert("Lütfen Adınızı Yazınız");
document.mesaj.adi.focus();
return false;
}
if (document.mesaj.soyadi.value=="")
{
alert("Lütfen Soyadınızı Yazınız");
document.mesaj.soyadi.focus();
return false;
}
if ((document.mesaj.email.value == "") || (document.mesaj.email.value.length > 0 && (document.mesaj.email.value.indexOf("@",0) == - 1 || document.mesaj.email.value.indexOf(".",0) == - 1)))
{
alert("Email Adresinizi Kontrol Edip Yazınız.");
document.mesaj.email.focus();
return false;
}
if (document.mesaj.telefon.value=="")
{
alert("GSM Numaranızı Giriniz");
document.mesaj.telefon.focus();
return false;
}
if (document.mesaj.sehir.value=="")
{
alert("Lütfen Bulunduğunuz Şehri Yazınız");
document.mesaj.sehir.focus();
return false;
}
if (document.mesaj.dogumgun.value=="")
{
alert("Lütfen Doğum Gününü Seçiniz");
document.mesaj.dogumgun.focus();
return false;
}
if (document.mesaj.dogumay.value=="")
{
alert("Lütfen dogum Ayını Seçiniz");
document.mesaj.dogumay.focus();
return false;
}
if (document.mesaj.dogumyil.value=="")
{
alert("Lütfen Doğum Yılınızı Seçiniz");
document.mesaj.dogumyil.focus();
return false;
}
if (document.mesaj.alanadi.value=="")
{
alert("Lütfen Alan Adınızı Yazınız");
document.mesaj.alanadi.focus();
return false;
}
if (document.mesaj.hostpaketi.value=="")
{
alert("Lütfen Hosting Paketi Seçiniz");
document.mesaj.hostpaketi.focus();
return false;
}
kontrol=1;
return true;
}
// -->
</SCRIPT>