var acik="false";

        function yenipencere(paket,genislik,yukseklik) {
                acik="true";
                loc = paket + "";
				var genislik;
				var yukseklik;
				w=genislik;
				h=yukseklik;
				LeftPosition = (screen.width)?(screen.width-w)/2:100;
				TopPosition = (screen.height)?(screen.height-h)/2:100;
                //var pencere = window.open(loc,'yeni',top=' + TopPosition + ',left=' + LeftPosition + ','width=408,height=360,scrollbars=yes');
				var pencere = window.open(loc,'yeni','width=' + w + ',height=' + h + ',top=' + TopPosition + ',left=' + LeftPosition + ',scrollbars=yes,directories=no,status=no,menubar=no,toolbar=no,resizable=no');
                }
				///////////
				function ajax_istek(hedef,bun){
  $('log_res').setHTML('<img src="tas/loading.gif">');
  var reqsx= new Ajax(hedef, {
		   method: 'GET',
  data:bun,
  encoding: 'UTF-8',
    update: $('log_res')
  }); reqsx.getHeader('Content-Type','application/x-www-form-urlencoded'); reqsx.request();
}
////////
function ajax_isteks(hedef,bun){
	document.getElementById("log_res").style.display = 'block';
			new Request.HTML(
							{   
								data:bun ,
								update: $('log_res')
							}
							).get('ara_getir.php');
							
					}
					////////
					function ajax_isteky(hedef,bun){
	document.getElementById("log_res").style.display = 'block';
			new Request.JSONP(
							{ 
							url: 'ara_getir.php',
								data:bun ,
								update: $('log_res')
							}
							).get('ara_getir.php');
							
					}
	
		
/////////
function ajax_arama()
{
var benx=document.getElementById("kel").value;
if(benx.length>0)
                {
					document.getElementById("log_res").style.display = 'block';
				var sc='ara_getir.php?kelime=' + document.getElementById('kel').value;
				ajax_olayi(sc,'log_res');
//ajax_isteky('ara_getir.php',sc);
}
}
////////
function ajax_takvim()
{

					document.getElementById("takvimx").style.display = 'block';
				var scs='takvimx.php?ay_baz=1&mn=' + document.getElementById('ayim').value +'&yr='+ document.getElementById('yr').value;
				ajax_olayi(scs,'takvimx');
//ajax_isteky('ara_getir.php',sc);

}
////////
function arama_kapat()
{
document.getElementById('log_res').style.display='none';
}