// JavaScript Document
var xmlHttp;
function createXMLHttpRequest(){
	if(window.ActiveXObject){
		xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
	}else if(window.XMLHttpRequest){
		xmlHttp = new XMLHttpRequest;
	}	
}
function getLoadSub(obj){

	createXMLHttpRequest();
	xmlHttp.onreadystatechange=function(){
		if(xmlHttp.readyState==4){
			if(xmlHttp.status==200){
				document.getElementById("showsub").innerHTML=xmlHttp.responseText;
			}
		}
	}
	xmlHttp.open("get","../home/task.php?cate="+obj,true); 
	xmlHttp.send(null);
}

function getDataView(a,b,c,d){
	createXMLHttpRequest();
	xmlHttp.onreadystatechange=function(){
		if(xmlHttp.readyState==4){
			if(xmlHttp.status==200){
				document.getElementById("showview").innerHTML=xmlHttp.responseText;
			}
		}
	}
	xmlHttp.open("get","viewproduct.php?cate="+a+"&scate="+b+"&brand="+c+"&pid="+d,true); 
	xmlHttp.send(null);
	}
	
function getDataViewPath(a,b,c,d){
	window.location.href="../hydraulic/?mid="+a+"&mid2="+b+"&bl="+c+"&pid="+d;
	}

