// JavaScript Document
function MakeViewFeature(objstart,objpage){
	//alert("xxx");
	     var req;
		 
		 try{ req = new XMLHttpRequest();}  catch (e)
		{	try  { req = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e)
		{ try   { req = new ActiveXObject("Microsoft.XMLHTTP");}catch (e)
		{	            alert("jax not support!");	}  }  }
		
		
		req.onreadystatechange=function()
		{
			if (req.readyState==4){
				//alert(req.responseText);
				 var objdiv=document.getElementById('viewproduct');
				 objdiv.innerHTML=req.responseText;
			}
		}
		
		//alert(servicecode+"  :  "+categorycode);
				
		var str=Math.random();
		var querystr="";
		querystr+="pjsproduct.php";
		querystr+="?pop="+str;
		querystr+="&start="+objstart;
		querystr+="&"+objpage;
		//alert(querystr);
		req.open("GET", querystr , true);
		req.send(null);
}

function MakeViewProductDetail(id,c_id,ecat,pselect,thumb_wp,thumb_hp){
	//alert("xxx");
	     var req;
		 
		 try{ req = new XMLHttpRequest();}  catch (e)
		{	try  { req = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e)
		{ try   { req = new ActiveXObject("Microsoft.XMLHTTP");}catch (e)
		{	            alert("jax not support!");	}  }  }
		
		
		req.onreadystatechange=function()
		{
			if (req.readyState==4){
				//alert(req.responseText);
				 var objdiv=document.getElementById('vewproductdetail');
				 objdiv.innerHTML=req.responseText;
			}
		}
		
		//alert(servicecode+"  :  "+categorycode);
				
		var str=Math.random();
		var querystr="";
		querystr+="jsproduct_query.php";
		querystr+="?pop="+str;
		querystr+="&id="+id;
		querystr+="&c_id"+c_id;
		querystr+="&ecat="+ecat;
		querystr+="&pselect"+pselect;
		querystr+="&thumb_wp="+thumb_wp;
		querystr+="&thumb_hp"+thumb_hp;
		//alert(querystr);
		req.open("GET", querystr , true);
		req.send(null);
}



