﻿<!--
var xmlHttp;
function createRequest(){ 
if(window.ActiveXObject){ 
	xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); 
} else if(window.XMLHttpRequest){  
	xmlHttp = new XMLHttpRequest(); 
} 
} 

function ajax(url){ 
createRequest();
xmlHttp.open("GET", url, true); 
xmlHttp.onreadystatechange = updatepage; 
xmlHttp.send(null); 
}

function updatepage(){
	document.getElementById('load_ajax').innerHTML = "<div id='load_ajax' align='center'><img src='js/loading.gif'>  لطفا كمي صبر كنيد...</div>"
	if(xmlHttp.readyState == 4){
		document.getElementById('load_ajax').innerHTML = xmlHttp.responseText
	}
}

//-->
