﻿function nobetBak(obJ) {


if (obJ.ilce.value ==  "") 
{ 
alert("Lütfen sorgulamak istediğiniz semti seçiniz."); 
obJ.ilce.focus();  
return (false);
} 
else{ 

	if (obJ.gun.value ==  "") 
	{ 
	alert("Lütfen bir tarih seçiniz."); 
	obJ.gun.focus();  
	return (false);
	} 
	else{ 

		var poststr = "ilce=" + obJ.ilce.value
		var poststr = poststr + "&tarih=" + obJ.gun.value
		ay.ajax(poststr, 'GET', '/hakkinda/NobetBul.asp', 'nobetcisonuc');

	return (false);
	} 


return (false);
} 

 return (true);
}




function FotoAc(fotoid, bolumid)          
{              
	 window.open ("/Hakkinda/Foto.asp?Foto="+ fotoid +"&Bolum="+ bolumid, "", "height=400,width=950,scrollbars=yes,resizable=yes,status=no,menubar=no,toolbar=no,location=no")                 
} 





function iletBakim(obJ)
{

if (obJ.hat.value ==  "") 
{ 
alert("Lütfen bir hat seçiniz. / Select a line, please."); 
obJ.hat.focus();  
return (false);
} 
else{ 

	var poststr = "Hat=" + encodeURI(obJ.hat.value) ; 
	ay.ajax(poststr, 'GET', '/hakkinda/KaraHatBul.asp', 'iletsonuc');

return (false);
} 

 return (true);
}




function iletBakim2(obJ)
{

if (obJ.hat.value ==  "") 
{ 
alert("Lütfen bir hat seçiniz. Select a line, please."); 
obJ.hat.focus();  
return (false);
} 
else{ 

	var poststr = "Hat=" + encodeURI(obJ.hat.value) ; 
	ay.ajax(poststr, 'GET', '/hakkinda/DenizHatBul.asp', 'iletsonuc');

return (false);
} 

 return (true);
}
