var contentObj;   // refer  the  content of  <div>
function getAjaxFile(urlPage) {
	xmlHttp=CreateHttpObject()
	if (xmlHttp==null) {
		alert ("Browser does not support HTTP Request")
		return
	} 
	xmlHttp.onreadystatechange=stateChanged
	xmlHttp.open("GET",urlPage,true)
	xmlHttp.send(null)
}
function stateChanged(CatId) { 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
	    contentObj.innerHTML=xmlHttp.responseText;
		importDate=document.getElementById('FlashDate').value;
		PassDate(importDate);
	 } 
}
function getAjaxFile1(urlPage) {
	
	xmlHttp=CreateHttpObject()
	if (xmlHttp==null) {
		alert ("Browser does not support HTTP Request")
		return
	} 
	xmlHttp.onreadystatechange=stateChanged1;
	xmlHttp.open("GET",urlPage,true)
	xmlHttp.send(null)
}
function stateChanged1() { 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
	    contentObj.innerHTML=xmlHttp.responseText;
		//incrementValeur();
	 } 
}

function CreateHttpObject() { 
	var objXMLHttp=null
	try {
		objXMLHttp = new ActiveXObject("Msxml2.XMLHTTP");
    } 
	catch (e) {
			try {
				objXMLHttp = new ActiveXObject("Microsoft.XMLHTTP");
			} 
			catch (err) {
				objXMLHttp = null;
			}
    }
	if(!objXMLHttp && typeof XMLHttpRequest != "undefined")
		objXMLHttp = new XMLHttpRequest();
return objXMLHttp
}
function Loading()
{	
	contentObj.innerHTML='<table width=100% border=0 cellspacing=0 cellpadding=0><tr bgcolor><td  valign=top width=6><img src=images/spacer.gif height=160 width=1></td><td  style=padding-top:140px  valign=top align=center><img src=images/ajax-loader1.gif?r=1></td><td width=1 valign=top >&nbsp;</td></tr></table>';
	//alert(contentObj.innerHTML)
}
