var loadstatustext="<img src='images/loading.gif' />Mesajınız gönderiliyor lütfen bekleyiniz ..."
var cacheControl="";
function CreateObject() 
 {
    var ReqObject;
    var brwser = navigator.appName;
    if(brwser == "Microsoft Internet Explorer") ReqObject = new ActiveXObject("Microsoft.XMLHTTP");
    else     ReqObject = new XMLHttpRequest();
    return ReqObject;
 }


function KontrolYeniKayit(dil)
{

var goodEmail = document.frmYeniKayit.email.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\..{2,2}))$)\b/gi);
 if (document.frmYeniKayit.ad.value=="")
  {
    if(dil=="tr") alert("İsminizi giriniz !");
	else alert("Please enter your name");
    document.frmYeniKayit.ad.focus();
	return false;
  } 
 if (document.frmYeniKayit.email.value=="")
  {
    if(dil=="tr") alert("E-posta adresinizi giriniz !");
	else alert("Please enter your email address");
    document.frmYeniKayit.email.focus();
	return false;
  }
  if(goodEmail==null)
  {
    if(dil=="tr")  alert("Geçersiz bir e-posta adresi girdiniz.Kontrol ediniz!");
	else alert("You entered an invalid email address!");
   document.frmYeniKayit.email.focus();
   return false;
  } 
   if (document.frmYeniKayit.password.value=="")
  {
     if(dil=="tr") alert("Bir şifre giriniz!");
	 else alert("Please enter your password!");
    document.frmYeniKayit.password.focus();
	return false;
  } 
   if (document.frmYeniKayit.password.value!=document.frmYeniKayit.repassword.value)
  {
     if(dil=="tr") alert("Sifre tekrarinda hata yaptiniz.Tekrar deneyiniz!");
	 else alert("Passwords do not match!");
    document.frmYeniKayit.repassword.focus();
	return false;
  }
return true;
}


function KontrolSifremiUnuttum(dil)
{

var goodEmail = document.frmSifremiUnuttum.email.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\..{2,2}))$)\b/gi);
 if (document.frmSifremiUnuttum.email.value=="")
  {
   if(dil=="tr") alert("Lütfen Email adresinizi giriniz !");
   else  alert("Please enter your email address!");
    document.frmSifremiUnuttum.email.focus();
	return false;
  }
 if(goodEmail==null)
  {
     if(dil=="tr")  alert("Geçersiz bir e-posta adresi girdiniz.Kontrol ediniz!");
		else alert("You entered an invalid email address!");
   document.frmSifremiUnuttum.email.focus();
   return false;
  } 
 
return true;
}



indexz = 1000;

function FlashDoc(w, h, src)
{
	document.write('<div style="width: ' + w + '; height: ' + h + '; z-index: ' + indexz + ';">');
	document.write('<object width="' + w + '" height="' + h + '" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0">');
	document.write('<param name="movie" value="' + src + '">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="wmode" value="opaque">');
	document.write('<param name="scale" value="1">');
	document.write('<embed style="z-index: ' + indexz + ';" src="' + src + '" width="' + w + '" height="' + h + '" scale="exactfit" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash"></embed>');
	document.write('</object>');
	document.write('</div>');
	indexz++;
}
