
function ObjeOlustur(){
    try {
      return new XMLHttpRequest();
    } catch (trymicrosoft) {
      try {
        return new ActiveXObject("Msxml2.XMLHTTP");
      } catch (othermicrosoft) {
        try {
          return new ActiveXObject("Microsoft.XMLHTTP");
        } catch (failed) {
          return false;
        }
      }
    }
}



function CesurPanelAjax(CType){
		AjaxObjesi = new ObjeOlustur;
		document.getElementById('haberler').innerHTML =  '.Yukleniyor.' ;
		
		AjaxObjesi.open('GET','TabAjax.php?ctype=' + CType,true);
		AjaxObjesi.onreadystatechange = AjaxObjeFonskiyonu;
		AjaxObjesi.send(null);
	}

function AjaxObjeFonskiyonu(){
	if (AjaxObjesi.readyState == 4){
		if (AjaxObjesi.status == 200){
			var Cevap = AjaxObjesi.responseText;   
			document.getElementById("haberler").innerHTML = Cevap;
		}else{
			//alert(AjaxObjesi.responseText);
		}
	}
}
