var xmlHttp4
function RemoveProduct(catid, mintrial, iscopage)
{ 
	xmlHttp4=GetXmlHttpObject()
	if (xmlHttp4==null)
	{
		 alert ("Browser does not support HTTP Request");
		 return
	}

	var url="ajax/removeproduct.php";
	url=url+"?catid="+catid+"&mintrial="+mintrial+"&iscopage="+iscopage;
	url=url+"&sid="+Math.random();
	xmlHttp4.onreadystatechange=stateChanged4; 
	xmlHttp4.open("GET",url,true)
	xmlHttp4.send(null)
}


function stateChanged4() 
{ 
	if (xmlHttp4.readyState==4 || xmlHttp4.readyState=="complete")
	{ 
		document.getElementById("GoodyBag").innerHTML=xmlHttp4.responseText; 
	} 
}
function GetXmlHttpObject()
{
	var xmlHttp=null;
	try
	{
		 // Firefox, Opera 8.0+, Safari
		xmlHttp=new XMLHttpRequest();
	}
	catch (e)
	{
		//Internet Explorer
		try
		{
		xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e)
		{
			xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
		}
	}
	return xmlHttp;
}
