function createxmlhttp()
{
    xmlhttpobj = false;
    try{//创建对象，一个一个的试，哎，要是能统一标准都好。。
        xmlhttpobj = new XMLHttpRequest;
    }catch(e){
        try{
            xmlhttpobj=new ActiveXObject("MSXML2.XMLHTTP");
        }catch(e2){
            try{
                xmlhttpobj=new ActiveXObject("Microsoft.XMLHTTP");
            }catch(e3){
                xmlhttpobj = false;
            }
        }
    }
    return xmlhttpobj; 
}
function getsubcategory(bigclassid){
	if(bigclassid==0){
		document.getElementById("subclass").innerHTML="<select name='smallclassid'></select>";
		return;
	};
	var xmlhttpobj = createxmlhttp();
	if(xmlhttpobj){//如果创建对象xmlhttpobj成功
		xmlhttpobj.open('get',"getsubcategory.asp?bigclassid="+bigclassid+"&number="+Math.random(),true);//get方法 加个随机数。
		xmlhttpobj.send(null);
		xmlhttpobj.onreadystatechange=function(){//客户端监控函数
			if(xmlhttpobj.readystate==4){//服务器处理请求完成
				if(xmlhttpobj.status==200){
					//alert('ok');
					var html = xmlhttpobj.responseText;//获得返回值
					document.getElementById("subclass").innerHTML=html;
				}else{
					document.getElementById("subclass").innerHTML="对不起，您请求的页面有问题...";
				}
			}else{
				document.getElementById("subclass").innerHTML="加载中，请梢候...";//服务器处理中
			}
		}	
	}
}
function getfind(findid)
   {
	 window.location.href='find.asp?CatalogID='+findid+'';
	}
