function SearchZd()

{

	var type = document.getElementById("zdtype");

	var keyword = document.getElementById("key").value;

	var GetValue = createTextHttpRequest("/Searchzd/SearchAjax.aspx?k="+keyword);

	if(GetValue != "false")

	{

	    window.open("http://www.chinamae.com/search_cp.asp?key=cp&word="+keyword,"searchZdForm","'height=614, width=819, top=0, left=0, toolbar=yes, menubar=yes, scrollbars=yes,resizable=yes,location=yes,status=yes'");

	}




    return false;

	

}





var xmlHttp;

var methord;

function createXMLHttpRequest(url)

{

    if(window.ActiveXObject)

    {

        xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");

        methord="post";

    }

    else if(window.XMLHttpRequest)

    {

        xmlHttp = new XMLHttpRequest();

        methord="get";

    }

    xmlHttp.onreadystatechange=XmlOnReadyStateChange;

    xmlHttp.open(methord,url,true);

    xmlHttp.send(null);

    return XmlOnReadyStateChange();

}

function createTextHttpRequest(url)

{

    if(window.ActiveXObject)

    {

        xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");

        methord="post";

    }

    else if(window.XMLHttpRequest)

    {

        xmlHttp = new XMLHttpRequest();

        methord="get";

    }

    xmlHttp.onreadystatechange=TextOnReadyStateChange;

    xmlHttp.open(methord,url,false);

    xmlHttp.send(null);

    return TextOnReadyStateChange();

}

//ԏV:Ntext

function TextOnReadyStateChange()

{

    var code;

    if(xmlHttp.readyState ==4)

    {

        if(xmlHttp.status==200)

        {

            code = xmlHttp.responseText;

        }

    }

    return code;

}

//ԏVxmlpenc

function XmlOnReadyStateChange()

{

    var code;

    if(xmlHttp.readyState ==4)

    {

        if(xmlHttp.status==200)

        {

            code = xmlHttp.responseXml;

        }

    }

    return code;

}