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 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
}

