
function createXMLHttpRequest() {

    var xmlHttp=null;

    if (window.ActiveXObject) {
        xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
    } 
    else if (window.XMLHttpRequest) {
        xmlHttp = new XMLHttpRequest();
    }
    
    return xmlHttp;
}
    
function ajaxRead(url,parm,fun) {
    var xmlHttp = createXMLHttpRequest();
    
    xmlHttp.onreadystatechange =  function(){
     if(xmlHttp.readyState == 4) {
        if(xmlHttp.status == 200) {
            obj = xmlHttp.responseText;
                if(fun != null){
			        eval(fun);
			    }
			}
			//else{
			//	alert("读取文件出错,错误号为 [" + xmlHttp.status  + "]");
			//}
    }   
    
    
    }
    xmlHttp.open("POST",url , true);
    xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded;");
    xmlHttp.send(parm); 
}