/*Burası Sayfayı Çağıran Kısım*/
var xmlhttp=false;
if (window.XMLHttpRequest)
    {
      // Mozilla, Netscape, Safari, IE7 vb.icin
      xmlhttp= new XMLHttpRequest();
    }
    else if (window.ActiveXObject)
    {
      //IE5, IE6 gibi ActiveX destekli tarayıcılar için
      try
      {
        xmlhttp= new ActiveXObject("Msxml2.XMLHTTP");
        //Msxml2 yüklü ise
      }
      catch(e)
      {
         xmlhttp= new ActiveXObject("Microsoft.XMLHTTP");
         //Msxml2 yüklü değilse
      }
    }
if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
 	try {
 		 xmlhttp = new XMLHttpRequest();
 	} catch (e) {
 		 xmlhttp=false;
 	}
}
if (!xmlhttp && window.createRequest) {
	try {
		xmlhttp = window.createRequest();
	} catch (e) {
		xmlhttp=false;
	}
}


var please_wait = "<img src='images/yukle.gif' alt='Yükleniyor'/>";

function open_url(url, targetId) {
  if(!xmlhttp)return false;
    var e=document.getElementById(targetId);if(!e)return false;
    if(please_wait)e.innerHTML = please_wait;
    xmlhttp.open("POST", url, true);
    xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded; charset=iso-8859-9");
    xmlhttp.onreadystatechange = function() { response(url, e); }
    try{
      xmlhttp.send(null);
    }catch(l){
    while(e.firstChild)e.removeChild(e.firstChild);//e.innerHTML="" the standard way
    e.appendChild(document.createTextNode("request failed"));
  }
}

function response(url, e) {
  if(xmlhttp.readyState != 4)return;
    var tmp= (xmlhttp.status == 200 || xmlhttp.status == 0) ? xmlhttp.responseText : "Böyle bir sayfa bulunamadı " + xmlhttp.status+" "+xmlhttp.statusText;
    var d=document.createElement("div");
    d.innerHTML=tmp;
    setTimeout(function(){
      while(e.firstChild)e.removeChild(e.firstChild);//e.innerHTML="" the standard way
      e.appendChild(d);
    },10)
}
/*Burası Textlerin İçlerini YAzar Daha sonra Tıklanınca Textleri
Boşaltır */
function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = ""
} 
/*Burası Bitiş */


