function createXML(){
		if (window.XMLHttpRequest) { 
		XMLHttp = new XMLHttpRequest();
		if (XMLHttp.overrideMimeType) {
			XMLHttp.overrideMimeType('text/xml');
		}
	} else if (window.ActiveXObject) { 
		try {
			XMLHttp = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try {
				XMLHttp = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e) {}
		}
	}

	if (!XMLHttp) {
		return false;
	}
}


function xhss() {
    createXML();
	xh=document.getElementById("xhkeyword").value;
	if(xh==""){
	   alert("请输入你要查询的型号。");
	}
	else
	{
	/*url="xhss.asp?keyword="+xh;
	XMLHttp.onreadystatechange = xhssdo;
	XMLHttp.open('GET',encodeURI(url),true);
	XMLHttp.send(null);*/
	url="production.html?xinghao="+xh;
	location.href=url;
	}


}

function xhssdo(){
if (XMLHttp.readyState == 4) {
	if (XMLHttp.status == 200) {
	text=XMLHttp.responseText;
	document.getElementById("ssjg").innerHTML=text;
	} 
  }
}