


function removeFromCart(TempAddCartID) 
{
	if (confirm("Do you really want to remove this product from your cart ?")) 
	{
		window.location.href="products_delete_cart_action.php?TempAddCartID="+TempAddCartID;
	}
}	






function sameShippingBillindAdd()
{
	if(document.getElementById("sameAddress").checked==true)
	{
		document.getElementById("Not_Same_Address").style.display	 ='none';
		//document.getElementById("Not_Same_Address1").style.display	 ='none';
	}
	else
	{
		document.getElementById("Not_Same_Address").style.display	 ='block';
		//document.getElementById("Not_Same_Address1").style.display	 ='block';
	}
}




function sameShippingBillindAdd11()
{
	if(document.getElementById("sameAddress").checked==true)
	{
		document.getElementById("Shipping_Country").value=document.getElementById("Billing_Country").value;
		document.getElementById("Shipping_State").value=document.getElementById("Billing_State").value;
		ShowUpdateAddressDropDown(INCLUDE_HTTP_PATH+'/getState.php','&countryID='+document.getElementById("Shipping_Country").value,'Shipping_State');
		
		
		//document.getElementById("Not_Same_Address1").style.display	 ='none';
	}
	else
	{document.getElementById("Shipping_State").value=document.getElementById("Billing_State").value;
		document.getElementById("Not_Same_Address").style.display	 ='block';
		//document.getElementById("Not_Same_Address1").style.display	 ='block';
	}
}




function SetShippingCalCulation(page,paramurl,target1,target2)
{
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	}
	var url=page;	
	
	url=url+"?rndno="+Math.random();
	url=url+paramurl;
	
	xmlHttp.onreadystatechange=function(){
										if (xmlHttp.readyState == 4 || xmlHttp.readyState=="complete")
										{//alert(xmlHttp.responseText);
											document.getElementById(target1).innerHTML=xmlHttp.responseText;
							//SetGrandShippingCalCulation(page,paramurl+'&Grand_Total=1','Grand_Total_Order_Price_Dis')
							//SetGrandShippingCalCulation(page,paramurl+'&Shipping_Total=1','Total_Order_Shipping_Price_Dis')
							//SetGrandShippingCalCulation(page,paramurl+'&Tax_Total=1','Total_Order_Tax_Price_Dis')											
											
										}
										
								};
	
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	return false;
}



function SetGrandShippingCalCulation(page,paramurl,target)
{
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	}
	var url=page;	
	
	url=url+"?rndno="+Math.random();
	url=url+paramurl;
	
	xmlHttp.onreadystatechange=function(){
										if (xmlHttp.readyState == 4 || xmlHttp.readyState=="complete")
										{
											document.getElementById(target).innerHTML=xmlHttp.responseText;
										}
								};
	
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	return false;
}
