<!--
function seldiv(F)
{
var st1;
var y,n,k;
ES=F;
F=F.id;
n=document.getElementById('nvtbl').getElementsByTagName('td').length;
k=F.replace('td','');
for(var i=1; i<=n; i++)
	{
	st1 = 'td'+i+'_div';
	tde1 = 'td'+i;
	if (k==i)
	{
	_display = "block";
	_displayc = "#000000";
	_displaycrs ="default";
	_displaytxtd = "none";
	_displayw = "bold";
	_displaybrd = "0px";
	}
	else
	{
	_display = "none";
	_displayc = "#0000FF";
	_displaycrs ="pointer";
	_displaytxtd = "none";
	_displayw = "normal";
	_displaybrd = "1px";
	}
	document.getElementById(st1).style.display=_display;
	document.getElementById(tde1).style.color=_displayc;
	document.getElementById(tde1).style.cursor=_displaycrs;
	document.getElementById(tde1).style.textDecoration=_displaytxtd;
	document.getElementById(tde1).style.fontWeight=_displayw;	
	document.getElementById(tde1).style.borderBottomWidth=_displaybrd;	
	}
}
function correctdeger()
{
if(document.ahbsrecord.tc.value>0)
{return true;}
else
{return false;}
}
function correct()
{
if (document.ahbsrecord.tc.value=="")
{
alert("T.C. Kimlik Numarasi Bos Olamaz !!!");
document.ahbsrecord.tc.focus();
document.counter.d3.value='stop';
return false;
}
if (correctdeger()==false)
{
alert("T.C. Kimlik Numarası Sayılardan Oluşmalıdır !!!");
document.ahbsrecord.tc.focus();
document.ahbsrecord.tc.value="";
document.counter.d3.value='stop';
return false;
}
if (document.ahbsrecord.tc.value.length<11)
{
alert("T.C. Kimlik Numarisini Eksik Girdiniz !!!");
document.ahbsrecord.tc.focus();
document.counter.d3.value='stop';
return false;
}
//if (document.ahbsrecord.verificationCode.value.length=="")
//{
//alert("Dogrulama Numarasini Girmediniz !!!");
//document.ahbsrecord.verificationCode.focus();
//return false;
//}
return true;
}
function sil(){
if(document.counter.d2.value==sayim){
window.document.ahbsrecord.tc.value="";
}
//return false;
}
i=0;
var ddajaxtabssettings={}
var milisec=0 
var seconds=20
var sunucu=1;
var sayim=20;
ddajaxtabssettings.bustcachevar=1  //bust potential caching of external pages after initial request? (1=yes, 0=no)
ddajaxtabssettings.loadstatustext="<img src='car-rental-connecting.gif' width='119' height='30' />" 
ddajaxtabssettings.loadstatustext2="<img src='sh_pause.gif'/>"
ddajaxtabssettings.loadstatustext3="<span style='color:#FFFFFF'>SILME ISLEMI TAMAMLANDI</span>"
var xmlhttp;
var xmlhttpwait;
function display(){ 
 if (milisec<=0){ 
    milisec=9 
    seconds-=1 
 } 
 if (seconds<=-1){ 
    milisec=0 
    seconds+=1 
 } 
 else 
    milisec-=1 
    document.counter.d2.value=seconds+"."+milisec
	sure=sayim-seconds+"."+(9-milisec);
	if(document.counter.d3.value=='stop') { document.counter.d2.value=sayim; milisec=0; seconds=sayim; document.counter.d3.value=''; return; }
	if(sunucu==1){
	if (document.ahbsrecord.tc.value!="" & document.ahbsrecord.tc.value.length==11)
	{
	document.getElementById('mesaj').innerHTML="1.Sunucuyla Bağlantı Kuruluyor Sorgu Süresi ("+sure+")";}
	}
	if(sunucu==2){
	sure=sure*1;
	sure=sure+sayim;
	if (document.ahbsrecord.tc.value!="" & document.ahbsrecord.tc.value.length==11)
	{
	document.getElementById('mesaj').innerHTML="2.Sunucuyla Bağlantı Kuruluyor Sorgu Süresi ("+sure+")";}
	}
	if((seconds==0) & (milisec==8)) {
	if(sunucu==2) { 
	document.counter.d2.value=sayim; milisec=0; seconds=sayim; document.counter.d3.value=''; sunucu=1;
	document.getElementById('mesaj').innerHTML='Her İki Sunucuda Yanıt Vermiyor Lütfen Tekrar Deneyin'; 
	loadXMLDoc('dur.php',document.ahbsrecord.tc.value,1,document.ahbsrecord.randpass.value); return;  }
	document.counter.d2.value=sayim; milisec=0; seconds=sayim; sunucu=2; 
	loadXMLDoc('xmlabul3.php',document.ahbsrecord.tc.value,1,document.ahbsrecord.randpass.value); return;
	}
    setTimeout("display()",100) 
}
function loadXMLDoc(url,tc,istemci,randpass)
{
istemcivar=istemci;
xmlhttp=null;
if(url!='dur.php'){
display(); }
if(correct()==false) { return false; }
document.ahbsrecord.Sorgula.focus(); 
document.getElementById('bekle').style.display="block";
document.getElementById('gizle').style.display="block";
document.getElementById('mesaj').style.display="block";
if(tc!='') 
{ url=url+'?tc='+tc+'&randpass='+randpass }
if (window.XMLHttpRequest)
  {// code for all new browsers
  xmlhttp=new XMLHttpRequest();
  }
else if (window.ActiveXObject)
  {// code for IE5 and IE6
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
if (xmlhttp!=null)
  {
  var ajaxfriendlyurl=url.replace(/^http:\/\/[^\/]+\//i, "http://"+window.location.hostname+"/");
  xmlhttp.onreadystatechange=state_Change;
  bustcacheparameter=(ajaxfriendlyurl.indexOf("?")!=-1)? "&"+new Date().getTime() : "?"+new Date().getTime();
  xmlhttp.open("GET",url+bustcacheparameter,true);
  xmlhttp.send(null);
  return false;
  }
else
  {
  alert("Your browser does not support XMLHTTP.");
  }
}
function state_Change()
{
if (xmlhttp.readyState==4)
  {// 4 = "loaded"
  //document.getElementById('process').innerHTML=ddajaxtabssettings.loadstatustext; //Display "fetching page message"
  if (xmlhttp.status==200)
    {// 200 = OK
	r=xmlhttp.responseXML;
	duzyazi=xmlhttp.responseText;
	if(duzyazi.match('Error')=='Error') 
	{ 
	document.getElementById('bekle').style.display="none";
	document.getElementById('gizle').style.display="none";
	return false;
	}
	if(duzyazi.match('Hata')=='Hata') 
	{
	document.getElementById('bekle').style.display="none";
	document.getElementById('gizle').style.display="none";
	document.counter.d3.value='stop';
	window.location='index.php?errormesage=2';
	}
	else
	{
	if(duzyazi.match('Kayitsiz')!='Kayitsiz'){
		document.getElementById('main').innerHTML=duzyazi;
		document.counter.d3.value='stop'
		document.getElementById('mesaj').innerHTML='A&#304;LE HEK&#304;M&#304;  B&#304;LG&#304;LER&#304;N&#304;Z G&Ouml;STER&#304;L&#304;YOR.... ('+sure+' Saniye)'
		sunucu=1
		pageTracker._trackPageview("/xmlabul.php" );
						}

		else			{
		document.counter.d3.value='stop';
		window.location='index.php?errormesage=1';
						}
	}
	}
  else
    {
    document.getElementById('bekle').style.display="none";
    document.getElementById('gizle').style.display="none";
    document.counter.d3.value='stop';
    alert("Problem Sunucuyla Baglanti Kurulamadi");
    }
  }
}

function bookmarksite(title, url){
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
else if (window.sidebar&&window.sidebar.addPanel)
     window.sidebar.addPanel(title,url,"");
else if(window.opera && window.print) 
     return true;
}

// -->