var xmlHttp;
var allEventDate;
var content;
if (typeof XMLHttpRequest == 'undefined' && window.ActiveXObject) {
    function XMLHttpRequest(){
        var arrSignatures = [

                             'MSXML2.XMLHTTP.5.0',

                             'MSXML2.XMLHTTP.4.0',

                             'MSXML2.XMLHTTP.3.0',

                             'MSXML2.XMLHTTP',

                             'Microsoft.XMLHTTP'];
        for (var i = 0; i < arrSignatures.length; i++) {
            try {
                var oRequest = new ActiveXObject(arrSignatures[i]);
                return oRequest;
            } 
            catch (e) {}
        }
        throw new Error('MSXML is not installed on your system.');
    }
}

function startRequest(url){
 xmlHttp=XMLHttpRequest();

 try{
  xmlHttp.open("GET", url, true);
  xmlHttp.onreadystatechange = handleStateChange; 
  xmlHttp.send(null);
 }catch(exception){
  alert("您要访问的资源不存在!");
 }
}

function handleStateChange(){
 if(xmlHttp.readyState <= 3){                                    
     
 }
 if(xmlHttp.readyState == 4){
  if (xmlHttp.status == 200){
	 content=xmlHttp.responseText;
	 if(content!="")
	 {
	 var tmp=content.split('<!--OK-->');

	//document.getElementById('TopImgCSS').innerHTML=tmp[0];
	document.getElementsByTagName("body")[0].innerHTML+=tmp[0];;
	document.getElementById("TopImg").innerHTML=tmp[1];
	}

  }
 }
}
