var xmlHttp

function showProductDetail(strProductid)
{
	 
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 
	var url="ajax/showProductDetail.php";	
	url=url+"?pid="+strProductid	;
	url=url+"&sid="+Math.random();
	url=url+"&tmstmp="+new Date().getTime();
	 
	xmlHttp.onreadystatechange = function(){	
						stateChangedToShowProductDetail();
						}
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 

function stateChangedToShowProductDetail() 
{ 
 
	if ((xmlHttp.readyState==4 || xmlHttp.readyState=="complete")&&(xmlHttp.status == "200"))
	{ 		 
		 
		document.getElementById("pdetail").innerHTML=xmlHttp.responseText 
	} 
} 

