var xmlhttp=false;
/* running locally on IE5.5, IE6, IE7 */ ; /*@cc_on
if(location.protocol=="file:"){
if(!xmlhttp)try{ xmlhttp=new ActiveXObject("MSXML2.XMLHTTP"); }catch(e){xmlhttp=false;}
if(!xmlhttp)try{ xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); }catch(e){xmlhttp=false;}
} ; @cc_off @*/
/* IE7, Firefox, Safari, Opera... */
if(!xmlhttp)try{ xmlhttp=new XMLHttpRequest(); }catch(e){xmlhttp=false;}
/* IE6 */
if(typeof ActiveXObject != "undefined"){
if(!xmlhttp)try{ xmlhttp=new ActiveXObject("MSXML2.XMLHTTP"); }catch(e){xmlhttp=false;}
if(!xmlhttp)try{ xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); }catch(e){xmlhttp=false;}
}
/* IceBrowser */
if(!xmlhttp)try{ xmlhttp=createRequest(); }catch(e){xmlhttp=false;}

function ajaxsayfa(url,divid,sl)
{
if(sl!=0) {
document.getElementById(divid).innerHTML="<img src='img/loading.gif' />";
}
if(!xmlhttp)return alert("Tarayiciniz Ajax Destekli Degil");
xmlhttp.open("GET",url,true);//make sure open appears before onreadystatechange lest IE will encounter issues beyond the first request
xmlhttp.onreadystatechange=function(){
if(xmlhttp.readyState!=4)return;
if(!xmlhttp.status||xmlhttp.status==200)
document.getElementById(divid).innerHTML=xmlhttp.responseText
document.getElementById(divid).style.display="block";


};//onreadystatechange
xmlhttp.send(null);
}//showfilm

