﻿function CheckClientValidate(){
       Page_ClientValidate();
       if (Page_IsValid){
           return true;
       }else{
           return false;
       }
}

function createXMLHttpRequest()
{
    if(window.ActiveXObject)
    {
        return new ActiveXObject("Microsoft.XMLHTTP");
    }
    else if(window.XMLHttpRequest)
    {
        return new XMLHttpRequest();
    }
    throw new Error("XMLHttp Object could be created.");
}
function ajaxRead(file,fun)
{
    var xmlObj = createXMLHttpRequest();
    xmlObj.onreadystatechange = function(){
        if(xmlObj.readyState == 4){
            if(xmlObj.status == 200){
                obj = xmlObj.responseXML;
                eval(fun);
            }
            else{
                alert("读取文件错误，错误号为["+ xmlObj.status +"]");
            }
        }
    }
    xmlObj.open('GET',file,true);
    xmlObj.send(null);
}