strBasketWindowParams = "scrollbars=yes,resizable=yes,status=yes"

function showBasket(strCustomerID,strMode)
{
alert("Sorry, this is a demonstration site only - we are unable to process orders on this site.\n\nPlease contact Willow View Websites on 01604 832777 for more information.");
return;
//newWin=window.open("shop/basket.php?CID=" + strCustomerID + "&mode=" + strMode, "shop" , strBasketWindowParams)
newWin.moveTo(50,50)
newWin.focus()	
}

function addToBasket(strCID,strPID,strQuantity,strPrice,strDescription,strStockLevel,strMode)
{
alert("Sorry, this is a demonstration site only - we are unable to process orders on this site.\n\nPlease contact Willow View Websites on 01604 832777 for more information.");
return;
var strOpenParams = "shop/basket.php?opt=add&CID=" + strCID + "&PID=" + strPID + "&Q=" + strQuantity + "&P=" +  strPrice + "&PDesc=" + strDescription + "&SL=" + strStockLevel + "&mode=" + strMode
newWin = window.open(strOpenParams,"shop",strBasketWindowParams)
//newWin=window.open("http://stores.ebay.co.uk/Kitchen-Heaven", "shop" , strBasketWindowParams)
newWin.moveTo(50,50)
newWin.focus()
//newWin.location.reload()
}

function showMoreInfo()
{
newWin = window.open("","shop",strBasketWindowParams)
newWin.moveTo(50,50)
newWin.focus()	
}

function isNumeric(strString)
{
   //  check for valid numeric strings
	var strValidChars = "0123456789";
	var strChar;
	var blnResult1 = true;   
   
   if ((strString == "") || (strString == null))
   {   
		blnResult1 = false;
		return blnResult1;
	}	
   else
   {	
	for (i = 0; i < strString.length && blnResult1 == true; i++)
	   {
	   strChar = strString.charAt(i);
	   if (strValidChars.indexOf(strChar) == -1)
	      {
	      blnResult1 = false;
	      }
	   }
	return blnResult1;
   }
}

function imgSwap(btnName,imgTo,strStatusText)
{
	eval("document." + btnName).src = imgTo;
	if (arguments.length==3)
		{window.status=strStatusText};
}

function tidyText(strText)
{
	strNewText = ""
	for (ix=0;ix<=strText.length-1;ix++)
		{
		if (strText.charAt(ix)=="&")
			{strNewText = strNewText + "and"}
		else if (strText.charAt(ix)=="#")
			{strNewText = strNewText + "No"}
		else
			{strNewText = strNewText + strText.charAt(ix)}
		}
	return strNewText	
}