﻿// JScript 文件
var xmlHttp;

function createXMLHTTP()
{
    if(window.XMLHttpRequest)
    {
        xmlHttp=new XMLHttpRequest();//mozilla浏览器
    }
    else if(window.ActiveXObject)
    {
        try
        {
            xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");//IE老版本
        }
        catch(e){}
        try
        {
            xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");//IE新版本
        }
        catch(e){}
        if(!xmlHttp)
        {
            window.alert("不能创建XMLHttpRequest对象实例！");
            return false;
        }
    }
}

var arryList;


function GetModuleText(obj)
{
    document.getElementById("a2").className="";
    createXMLHTTP();
    xmlHttp.open("POST","EventHandler/IndexHandler.ashx?location="+obj.name ,true);
    xmlHttp.onreadystatechange=checkGetModuleText;
    xmlHttp.send(null);
}

function checkGetModuleText()
{
    if(xmlHttp.readyState==4)
    {
        document.getElementById("mc").innerHTML="正在处理请稍后。。。";
        if(xmlHttp.status==200)
        {
            document.getElementById("mc").innerHTML=xmlHttp.responseText
            
        }
    }
}

function ClearClass(obj)
{
   obj.className="";

}


