<!--
var http = getHTTPObject();//http nesnesi oluşturuluyor.

function handleHttpResponse() 
{ 
if (http.readyState == 4) 
 { 
	//XML bilgileri alınıyor
	window.status="";
	var xmlDocument = http.responseXML;     
	var adet = 0; 
	var hadet = 0; 
	adet = xmlDocument.getElementsByTagName('adet').item(0).firstChild.data; 
	hadet = xmlDocument.getElementsByTagName('hadet').item(0).firstChild.data; 
	//haritalar
	if (hadet!=0 && window.document.all.gharita)
		{
		//alert(window.document.all.gharita.options.length);
		for (m=window.document.all.gharita.options.length;m>=0;m--) window.document.all.gharita.options[m]=null;
	
		for (i=0;i<=hadet-1;i++)
			{
			var fil;
			fil=xmlDocument.getElementsByTagName('harita').item(i).firstChild.data;
			var bol=new Array();
			bol=fil.split(','); 
			window.document.all.gharita.options[i] = new Option(bol[1],bol[0]);
			}
		} else 
			{
			if (window.document.all.gharita)
			{
			for (m=window.document.all.gharita.options.length;m>=0;m--) 
				{window.document.all.gharita.options[m]=null;}
			alert(metin_script28);	
			}	
			}
	// ilçeler	
	if (adet!=0)
		{
		for (m=window.document.all.U_ilce.options.length-1;m>0;m--) window.document.all.U_ilce.options[m]=null;
		
		window.document.all.U_ilce.options[0] = new Option(metin_script29,"",false,true);
		for (i=0;i<=adet-1;i++)
			{t=i+1;
			var fil;
			fil=xmlDocument.getElementsByTagName('ilce').item(i).firstChild.data;
			window.document.all.U_ilce.options[t] = new Option(fil,fil);
			}
		}	
	
  } else //sorgulama devam ediyor
	{   
	window.status=metin_script30;
	}


}


function doldur(gelen)
{
//alert (gelen);
if (gelen!="" && gelen!="0")
{
document.all.U_ilce.options[0] = new Option(metin_script31,'',false,true);
document.getElementById("U_ilce").disabled=false;
var rand_no = Math.random();
rand_no = rand_no * 90000;
rand_no = Math.ceil(rand_no);

var veri = "ilce_bul.php?plaka=" + (gelen) +"&fresh=" +rand_no;
//alert(veri);
//http.open("GET", "user.php?user="+escape(user)+"&pass="+escape(pass), true);
http.open("GET", veri, true);
http.setRequestHeader('Content-type', 'application/x-www-form-urlencoded; charset=iso-8859-9');
http.onreadystatechange = handleHttpResponse;
http.send(null);

} else {document.getElementById("U_ilce").disabled=true;}
}

//-----------------------------------------------------------------
function getHTTPObject()
	{
	  var retval=null;
	  try
		{
	  retval=new ActiveXObject("Msxml2.XMLHTTP");
		}
	  catch(e)
	{  
	  try
		{
	  retval=new ActiveXObject("Microsoft.XMLHTTP");
		} 
	  catch(oc)
		{
	  retval=null;
		}
	}

if(!retval && typeof XMLHttpRequest != "undefined") 
	{
	retval=new XMLHttpRequest();
	}
	return retval;
	}
-->
