function pWd_Add_Product_to_Basket(pWd_Prd_Id, pWd_Prd_Name, pWd_Prd_Price, pWdRefFile, pWdLittleBasketParam, pWdDisplayObj1, pWdDisplayObj2, pWdHideObj1, pWdHideObj2){ 
	var AddToBasketXMLHttp = getXMLHttp();
	AddToBasketXMLHttp.open("POST", "pwd_little_basket.inc.php");
	AddToBasketXMLHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	AddToBasketXMLHttp.send("pWd_prd_id=" + pWd_Prd_Id + "&pWd_prd_name=" + pWd_Prd_Name + "&pWd_prd_price=" + pWd_Prd_Price + "&Action=Add_Product_to_Basket");

	AddToBasketXMLHttp.onreadystatechange = pWdOrdObjs;
	function pWdOrdObjs(){
	  if (AddToBasketXMLHttp.readyState == 4){
		  document.getElementById(pWdDisplayObj1).style.display='';
		  document.getElementById(pWdDisplayObj2).style.display='';
		  document.getElementById(pWdHideObj1).style.display='none';
		  document.getElementById(pWdHideObj2).style.display='none';

		if(pWdRefFile != null){
		  pWdDisplayDiv(pWdHideObj1, pWdDisplayObj1, pWdDisplayObj2);
		  pWdRefreshFile(pWdRefFile, null, pWdDisplayObj1, pWdDisplayObj2, pWdHideObj1, pWdHideObj2);
		}
		pWdDisplayDiv('pWd_Little_Basket_Loading', 'pWd_Little_Basket_Loading_Success', 'pWd_User_little_Basket');
		pWd_Refresh_Basket('pwd_little_basket.inc.php', pWdLittleBasketParam, 'pWd_Little_Basket_Loading_Success', 'pWd_Little_Basket_Loading_Success', 'pWd_Little_Basket_Loading', 'pWd_Little_Basket_Loading');

	  }
	}
}
function pWd_Decrease_Order_Count(pWd_Product, pWdRefFile, pWdLittleBasketParam, pWdDisplayObj1, pWdDisplayObj2, pWdHideObj1, pWdHideObj2){
	var DecreaseXMLHttp = getXMLHttp();
	DecreaseXMLHttp.open("POST", "pwd_little_basket.inc.php");
	DecreaseXMLHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	DecreaseXMLHttp.send("pWd_product=" + pWd_Product + "&Action=Decrease_Product_From_Basket");

	DecreaseXMLHttp.onreadystatechange = pWdDecreaseOrdObjs;
	function pWdDecreaseOrdObjs(){
	  if (DecreaseXMLHttp.readyState == 4){
		document.getElementById(pWdDisplayObj1).style.display='';
		document.getElementById(pWdDisplayObj2).style.display='';
		document.getElementById(pWdHideObj1).style.display='none';
		document.getElementById(pWdHideObj2).style.display='none';
		
		if(pWdRefFile != null){
		  pWdDisplayDiv(pWdHideObj1, pWdDisplayObj1, pWdDisplayObj2);
		  pWdRefreshFile2(pWdRefFile, pWdLittleBasketParam, pWdDisplayObj1, pWdDisplayObj2, pWdHideObj1, pWdHideObj2);
		}
		pWdDisplayDiv('pWd_Little_Basket_Loading', 'pWd_Little_Basket_Loading_Success', 'pWd_User_little_Basket');
		pWd_Refresh_Basket('pwd_little_basket.inc.php', pWdLittleBasketParam, 'pWd_Little_Basket_Loading_Success', 'pWd_Little_Basket_Loading_Success', 'pWd_Little_Basket_Loading', 'pWd_Little_Basket_Loading');
	  }
	}
}
function pWd_Remove_Product_From_Basket(pWd_Product, pWdRefFile, pWdLittleBasketParam, pWdDisplayObj1, pWdDisplayObj2, pWdHideObj1, pWdHideObj2){
	var RemoveBasketXMLHttp = getXMLHttp();
	RemoveBasketXMLHttp.open("POST", "pwd_little_basket.inc.php");
	RemoveBasketXMLHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	RemoveBasketXMLHttp.send("pWd_product=" + pWd_Product + "&Action=Delete_Product_From_Basket");

	RemoveBasketXMLHttp.onreadystatechange = pWdRemoveOrdObjs;
	function pWdRemoveOrdObjs(){
	  if (RemoveBasketXMLHttp.readyState == 4){
		  document.getElementById(pWdDisplayObj1).style.display='';
		  document.getElementById(pWdDisplayObj2).style.display='';
		  document.getElementById(pWdHideObj1).style.display='none';
		  document.getElementById(pWdHideObj2).style.display='none';
		
		if(pWdRefFile != null){
		  pWdDisplayDiv(pWdHideObj1, pWdDisplayObj1, pWdDisplayObj2);
		  pWdRefreshFile(pWdRefFile, null, pWdDisplayObj1, pWdDisplayObj2, pWdHideObj1, pWdHideObj2);
		}
		pWdDisplayDiv('pWd_Little_Basket_Loading', 'pWd_Little_Basket_Loading_Success', 'pWd_User_little_Basket');
		pWd_Refresh_Basket('pwd_little_basket.inc.php', pWdLittleBasketParam, 'pWd_Little_Basket_Loading_Success', 'pWd_Little_Basket_Loading_Success', 'pWd_Little_Basket_Loading', 'pWd_Little_Basket_Loading');
	  }
	}
}
function pWd_Clean_Basket(pWdRefFile, pWdLittleBasketParam, pWdDisplayObj1, pWdDisplayObj2, pWdHideObj1, pWdHideObj2){
	var RemoveBasketXMLHttp = getXMLHttp();
	RemoveBasketXMLHttp.open("POST", "pwd_little_basket.inc.php");
	RemoveBasketXMLHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	RemoveBasketXMLHttp.send("Action=Clean_Basket");

	RemoveBasketXMLHttp.onreadystatechange = pWdRemoveOrdObjs;
	function pWdRemoveOrdObjs(){
	  if (RemoveBasketXMLHttp.readyState == 4){
		  document.getElementById(pWdDisplayObj1).style.display='';
		  document.getElementById(pWdDisplayObj2).style.display='';
		  document.getElementById(pWdHideObj1).style.display='none';
		  document.getElementById(pWdHideObj2).style.display='none';
		
		if(pWdRefFile != null){
		  pWdDisplayDiv(pWdHideObj1, pWdDisplayObj1, pWdDisplayObj2);
		  pWdRefreshFile(pWdRefFile, null, pWdDisplayObj1, pWdDisplayObj2, pWdHideObj1, pWdHideObj2);
		}
		pWdDisplayDiv('pWd_Little_Basket_Loading', 'pWd_Little_Basket_Loading_Success', 'pWd_User_little_Basket');
		pWd_Refresh_Basket('pwd_little_basket.inc.php', pWdLittleBasketParam, 'pWd_Little_Basket_Loading_Success', 'pWd_Little_Basket_Loading_Success', 'pWd_Little_Basket_Loading', 'pWd_Little_Basket_Loading');
	  }
	}
}
function pWd_Refresh_Basket(pWdFile, pWdParams, pWdDisplayObj1, pWdDisplayObj2, pWdHideObj1, pWdHideObj2){
	RefBasketXMLHttp = getXMLHttp();
	RefBasketXMLHttp.open("POST", pWdFile);
	RefBasketXMLHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	RefBasketXMLHttp.send(pWdParams);
	RefBasketXMLHttp.onreadystatechange = pWd_Refresh_BasketObj;
	
  function pWd_Refresh_BasketObj(){
	if (RefBasketXMLHttp.readyState == 4){
	  UPRes = RefBasketXMLHttp.responseText;
	  document.getElementById(pWdHideObj2).style.display='none';
	  document.getElementById(pWdHideObj1).style.display='none';
	  document.getElementById(pWdDisplayObj2).style.display='';
	  document.getElementById(pWdDisplayObj1).style.display='';
	  document.getElementById(pWdDisplayObj1).innerHTML = UPRes;
	}	
  }
}
