function sel(UrlAdress){
	if (UrlAdress !='0')window.open(UrlAdress,'fotospage','width=660,height=510,top=75,left=135,status=no,scroolbars=no');
}

function gonder(UrlAdress){
	window.opener.location=UrlAdress;
	window.close();
}
  
var req;
function Initialize(){
	try{req=new ActiveXObject("Msxml2.XMLHTTP");}
	catch(e){try{req=new ActiveXObject("Microsoft.XMLHTTP");}
	catch(oc) {req=null;}
	}
	if(!req&&typeof XMLHttpRequest!="undefined") {
		req= new
		XMLHttpRequest();
	}
} 

function sisGoster(sisFormV){
	Initialize(); 
	var url="sisGoster.asp?sisForm="+ sisFormV +"&randomSayi="+ Math.random();
	if(req!=null){
			req.onreadystatechange=Process;
			req.open("GET" ,url, true);
			req.send(null);
	}
}


function semtGoster(){
	Initialize(); 
	var url="semtGoster.asp?ilceId="+ document.getElementById("ilce").value +"&randomSayi="+ Math.random();
	if(req!=null){
			req.onreadystatechange=Process3;
			req.open("GET" ,url, true);
			req.send(null);
	}
}

function ilceGoster(){
	Initialize(); 
	var url="ilceGoster.asp?semtId="+ document.getElementById("il").value +"&randomSayi="+ Math.random();
	if(req!=null){
			req.onreadystatechange=Process2;
			req.open("GET" ,url, true);
			req.send(null);
	}
}

function Process()
{
	if (req.readyState == 4){
			document.getElementById("sis").innerHTML=unescape(req.responseText);
	}else{
			document.getElementById("sis").innerHTML="<center><br><br><img src='../images/beklet.gif'><br><font color='#85c227' size=1>Yükleniyor</font></center>";	
	}
}

function Process2()
{
	if (req.readyState == 4){
			document.getElementById("ilcelayer").innerHTML=unescape(req.responseText);
	}
}


function Process3()
{
	if (req.readyState == 4){
			document.getElementById("semtlayer").innerHTML=unescape(req.responseText);
	}
}
