	function PostcodeLookup() {

		var PostString = document.ContactDetails.postcode.value
		var PostString = PostString.Server.URLEncode(" ","")
		
		document.location = 'basket.asp?step=2&pc=' + PostString + '&hn=' + document.ContactDetails.flat.value ;
	}

	function PostcodeLookup2(URL) {

		var pcLookup;
		var pcWinAddress = URL;
		
		pcWinAddress += pcWinAddress + '?postcode=' + document.ContactDetails.postcode.value
		pcWinAddress += pcWinAddress + '&flat=' + document.ContactDetails.flat.value
		
		pcLookup = window.open(pcWinAddress,'Address found','toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=390,height=400,left = 337,top = 284');
	}

	function VerifyColour(f)
	{
		
		if(f.colour.options[f.colour.selectedIndex].value == "")
		{
			alert("Please select a colour.")
			f.colour.focus();
			return false
		}
		
	}

	function RefineSelection(WkFld,WkMk,WkC1,WkC2,WkC3,WkCol,WkPr,WkC0,WkRec,WkPg,WkSO,WkNO,WkCO,WkS)
	{
		var LocationString = "http://www.bunnyappliancewarehouse.co.uk/Products/";
		var tmpText;
		
		if(WkFld == "mk") 
		{
			tmpText = document.Refiner.mk.options[document.Refiner.mk.selectedIndex].value;
			LocationString += tmpText + "/"; 
		}
		else 
		{
			if(WkMk!='')
			{ LocationString += WkMk + "/"; }
			else
			{ LocationString += "AllMakes/"; }
		}

		if(WkFld == "C1") {
			tmpText = document.Refiner.C1.options[document.Refiner.C1.selectedIndex].value;
			LocationString += tmpText + "/";}
		else {
			if(WkC1!='')
			{ LocationString += WkC1 + "/"; }
			else
			{ LocationString += "AllCategories/"; }
		}

		if(WkFld == "C2") {
			tmpText = document.Refiner.C2.options[document.Refiner.C2.selectedIndex].value;
			LocationString += "SubCategory" + tmpText + "/"; }
		else {
			if(WkC2!='')
			{ LocationString += "SubCategory" + WkC2 + "/"; }
			else
			{ LocationString += "SubCategoryAll/"; }
		}

		if(WkFld == "C3") {
			tmpText = document.Refiner.C3.options[document.Refiner.C3.selectedIndex].value;
			LocationString += "Cat3" + tmpText + "/";}
		else {
			if(WkC3!='')
			{ LocationString += "Cat3" + WkC3 + "/"; }
			else
			{ LocationString += "Cat3All/"; }
		}

		if(WkFld == "col") {
			tmpText = document.Refiner.col.options[document.Refiner.col.selectedIndex].value;
 			LocationString += "Col" + tmpText + "/"; }
		else {
			if(WkCol!='')
			{ LocationString += "Col" + WkCol + "/"; }
			else
			{ LocationString += "ColAll/"; }
		}

		if(WkFld == "pr") {
			tmpText = document.Refiner.pr.options[document.Refiner.pr.selectedIndex].value;
			LocationString += "Price" + tmpText + "/"; }
		else {
			if(WkPr!='')
			{ LocationString += "Price" + WkPr + "/"; }
			else
			{ LocationString += "PriceAll/"; }
		}

		if(WkFld == "sort") {
			tmpText = document.Refiner.sort.options[document.Refiner.sort.selectedIndex].value;
			LocationString += "SortOrder" + tmpText + "/"; }
		else {
			if(WkS!='')
			{ LocationString += "SortOrder" + WkS + "/"; }
			else
			{ LocationString += "SortOrderDefault/"; }
		}

		if(WkFld == "rec") {
			tmpText = document.Refiner.rec.options[document.Refiner.rec.selectedIndex].value;
			LocationString += "Rec" + tmpText + "/"; }
		else {
			if(WkRec!='')
			{ LocationString += "Rec" + WkRec + "/"; }
			else
			{ LocationString += "RecDefault/"; }
		}

		if(WkFld == "pg") {
			tmpText = document.Refiner.pg.options[document.Refiner.pg.selectedIndex].value;
			LocationString += "Page" + tmpText + "/"; }
		else {
			if(WkPg!='')
			{ LocationString += "Page" + WkPg + "/"; }
			else
			{ LocationString += "Page1/"; }
		}

		if(WkC0!='')
		{ LocationString += "Search" + WkC0 + "/"; }
		else
		{ LocationString += "Search/"; }

		document.location = LocationString;
			
	}

	function PageSelection(WkFld,WkMk,WkC1,WkC2,WkC3,WkCol,WkPr,WkC0,WkRec,WkPg,WkSO,WkNO,WkCO,WkS,WkFormName)
	{
		var LocationString = "http://www.bunnyappliancewarehouse.co.uk/Products/";
		var tmpText;
		
		if(WkMk!='')
		{ LocationString += WkMk + "/"; }
		else
		{ LocationString += "AllMakes/"; }

		if(WkC1!='')
		{ LocationString += WkC1 + "/"; }
		else
		{ LocationString += "AllCategories/"; }

		if(WkC2!='')
		{ LocationString += "SubCategory" + WkC2 + "/"; }
		else
		{ LocationString += "SubCategoryAll/"; }

		if(WkC3!='')
		{ LocationString += "Cat3" + WkC3 + "/"; }
		else
		{ LocationString += "Cat3All/"; }

		if(WkCol!='')
		{ LocationString += "Col" + WkCol + "/"; }
		else
		{ LocationString += "ColAll/"; }

		if(WkPr!='')
		{ LocationString += "Price" + WkPr + "/"; }
		else
		{ LocationString += "PriceAll/"; }

		if(WkFld == "sort") {
			tmpText = document.forms[WkFormName].sort.options[document.forms[WkFormName].sort.selectedIndex].value;
			LocationString += "SortOrder" + tmpText + "/"; }
		else {
			if(WkS!='')
			{ LocationString += "SortOrder" + WkS + "/"; }
			else

			{ LocationString += "SortOrderDefault/"; }
		}

		if(WkFld == "rec") {
			tmpText = document.forms[WkFormName].rec.options[document.forms[WkFormName].rec.selectedIndex].value;
			LocationString += "Rec" + tmpText + "/"; }
		else {
			if(WkRec!='')
			{ LocationString += "Rec" + WkRec + "/"; }
			else
			{ LocationString += "RecDefault/"; }
		}

		if(WkFld == "pg") {
			tmpText = document.forms[WkFormName].pg.options[document.forms[WkFormName].pg.selectedIndex].value;
			LocationString += "Page" + tmpText + "/"; }
		else {
			if(WkPg!='')
			{ LocationString += "Page" + WkPg + "/"; }
			else
			{ LocationString += "Page1/"; }
		}

		if(WkFld == "pg") {
			tmpText = document.forms[WkFormName].pg.options[document.forms[WkFormName].pg.selectedIndex].value;
			LocationString += "Page" + tmpText + "/"; }
		else {
			if(WkPg!='')
			{ LocationString += "Page" + WkPg + "/"; }
			else
			{ LocationString += "Page1/"; }
		}

		if(WkC0!='')
		{ LocationString += "Search" + WkC0 + "/"; }
		else
		{ LocationString += "Search/"; }

		document.location = LocationString;
	}

	function RefineClearanceSelection(WkFld,WkMk,WkC1,WkC2,WkC3,WkCol,WkPr,WkC0,WkRec,WkPg,WkSO,WkNO,WkCO,WkS,WkFormName)
	{
		var LocationString = "http://www.bunnyappliancewarehouse.co.uk/Clearance/";
		var tmpText;
		
		if(WkFld == "mk") 
		{
			tmpText = document.forms[WkFormName].mk.options[document.forms[WkFormName].mk.selectedIndex].value;
			LocationString += tmpText + "/"; 
		}
		else 
		{
			if(WkMk!='')
			{ LocationString += WkMk + "/"; }
			else
			{ LocationString += "AllMakes/"; }
		}

		if(WkFld == "C1") {
			tmpText = document.forms[WkFormName].C1.options[document.forms[WkFormName].C1.selectedIndex].value;
			LocationString += tmpText + "/";}
		else {
			if(WkC1!='')
			{ LocationString += WkC1 + "/"; }
			else
			{ LocationString += "AllCategories/"; }
		}

		if(WkFld == "C2") {
			tmpText = document.forms[WkFormName].C2.options[document.forms[WkFormName].C2.selectedIndex].value;
			LocationString += "SubCategory" + tmpText + "/"; }
		else {
			if(WkC2!='')
			{ LocationString += "SubCategory" + WkC2 + "/"; }
			else
			{ LocationString += "SubCategoryAll/"; }
		}

		if(WkFld == "C3") {
			tmpText = document.forms[WkFormName].C3.options[document.forms[WkFormName].C3.selectedIndex].value;
			LocationString += "Cat3" + tmpText + "/";}
		else {
			if(WkC3!='')
			{ LocationString += "Cat3" + WkC3 + "/"; }
			else
			{ LocationString += "Cat3All/"; }
		}

		if(WkFld == "col") {
			tmpText = document.forms[WkFormName].col.options[document.forms[WkFormName].col.selectedIndex].value;
 			LocationString += "Col" + tmpText + "/"; }
		else {
			if(WkCol!='')
			{ LocationString += "Col" + WkCol + "/"; }
			else
			{ LocationString += "ColAll/"; }
		}

		if(WkFld == "pr") {
			tmpText = document.forms[WkFormName].pr.options[document.forms[WkFormName].pr.selectedIndex].value;
			LocationString += "Price" + tmpText + "/"; }
		else {
			if(WkPr!='')
			{ LocationString += "Price" + WkPr + "/"; }
			else
			{ LocationString += "PriceAll/"; }
		}

		if(WkFld == "sort") {
			tmpText = document.forms[WkFormName].sort.options[document.forms[WkFormName].sort.selectedIndex].value;
			LocationString += "SortOrder" + tmpText + "/"; }
		else {
			if(WkS!='')
			{ LocationString += "SortOrder" + WkS + "/"; }
			else
			{ LocationString += "SortOrderDefault/"; }
		}

		if(WkFld == "rec") {
			tmpText = document.forms[WkFormName].rec.options[document.forms[WkFormName].rec.selectedIndex].value;
			LocationString += "Rec" + tmpText + "/"; }
		else {
			if(WkRec!='')
			{ LocationString += "Rec" + WkRec + "/"; }
			else
			{ LocationString += "RecDefault/"; }
		}

		if(WkFld == "pg") {
			tmpText = document.forms[WkFormName].pg.options[document.forms[WkFormName].pg.selectedIndex].value;
			LocationString += "Page" + tmpText + "/"; }
		else {
			if(WkPg!='')
			{ LocationString += "Page" + WkPg + "/"; }
			else
			{ LocationString += "Page1/"; }
		}

		document.location = LocationString;
			
	}

	function RefinePromotionSelection(WkFld,WkMk,WkC1,WkC2,WkC3,WkCol,WkPr,WkC0,WkRec,WkPg,WkSO,WkNO,WkCO,WkS,WkFormName)
	{
		var LocationString = "http://www.bunnyappliancewarehouse.co.uk/Promotion/";
		var tmpText;
		
		if(WkFld == "mk") 
		{
			tmpText = document.forms[WkFormName].mk.options[document.forms[WkFormName].mk.selectedIndex].value;
			LocationString += tmpText + "/"; 
		}
		else 
		{
			if(WkMk!='')
			{ LocationString += WkMk + "/"; }
			else
			{ LocationString += "AllMakes/"; }
		}

		if(WkFld == "C1") {
			tmpText = document.forms[WkFormName].C1.options[document.forms[WkFormName].C1.selectedIndex].value;
			LocationString += tmpText + "/";}
		else {
			if(WkC1!='')
			{ LocationString += WkC1 + "/"; }
			else
			{ LocationString += "AllCategories/"; }
		}

		if(WkFld == "C2") {
			tmpText = document.forms[WkFormName].C2.options[document.forms[WkFormName].C2.selectedIndex].value;
			LocationString += "SubCategory" + tmpText + "/"; }
		else {
			if(WkC2!='')
			{ LocationString += "SubCategory" + WkC2 + "/"; }
			else
			{ LocationString += "SubCategoryAll/"; }
		}

		if(WkFld == "C3") {
			tmpText = document.forms[WkFormName].C3.options[document.forms[WkFormName].C3.selectedIndex].value;
			LocationString += "Cat3" + tmpText + "/";}
		else {
			if(WkC3!='')
			{ LocationString += "Cat3" + WkC3 + "/"; }
			else
			{ LocationString += "Cat3All/"; }
		}

		if(WkFld == "col") {
			tmpText = document.forms[WkFormName].col.options[document.forms[WkFormName].col.selectedIndex].value;
 			LocationString += "Col" + tmpText + "/"; }
		else {
			if(WkCol!='')
			{ LocationString += "Col" + WkCol + "/"; }
			else
			{ LocationString += "ColAll/"; }
		}

		if(WkFld == "pr") {
			tmpText = document.forms[WkFormName].pr.options[document.forms[WkFormName].pr.selectedIndex].value;
			LocationString += "Price" + tmpText + "/"; }
		else {
			if(WkPr!='')
			{ LocationString += "Price" + WkPr + "/"; }
			else
			{ LocationString += "PriceAll/"; }
		}

		if(WkFld == "sort") {
			tmpText = document.forms[WkFormName].sort.options[document.forms[WkFormName].sort.selectedIndex].value;
			LocationString += "SortOrder" + tmpText + "/"; }
		else {
			if(WkS!='')
			{ LocationString += "SortOrder" + WkS + "/"; }
			else
			{ LocationString += "SortOrderDefault/"; }
		}

		if(WkFld == "rec") {
			tmpText = document.forms[WkFormName].rec.options[document.forms[WkFormName].rec.selectedIndex].value;
			LocationString += "Rec" + tmpText + "/"; }
		else {
			if(WkRec!='')
			{ LocationString += "Rec" + WkRec + "/"; }
			else
			{ LocationString += "RecDefault/"; }
		}

		if(WkFld == "pg") {
			tmpText = document.forms[WkFormName].pg.options[document.forms[WkFormName].pg.selectedIndex].value;
			LocationString += "Page" + tmpText + "/"; }
		else {
			if(WkPg!='')
			{ LocationString += "Page" + WkPg + "/"; }
			else
			{ LocationString += "Page1/"; }
		}

		document.location = LocationString;
			
	}

	function RefineKeywordSelection(WkFld,WkMk,WkC1,WkC2,WkC3,WkCol,WkPr,WkC0,WkRec,WkPg,WkSO,WkNO,WkCO,WkS,WkFormName)
	{
		var LocationString = "http://www.bunnyappliancewarehouse.co.uk/Keysearch/";
		var tmpText;
		
		if(WkFld == "mk") 
		{
			tmpText = document.forms[WkFormName].mk.options[document.forms[WkFormName].mk.selectedIndex].value;
			LocationString += tmpText + "/"; 
		}
		else 
		{
			if(WkMk!='')
			{ LocationString += WkMk + "/"; }
			else
			{ LocationString += "AllMakes/"; }
		}

		if(WkFld == "C1") {
			tmpText = document.forms[WkFormName].C1.options[document.forms[WkFormName].C1.selectedIndex].value;
			LocationString += tmpText + "/";}
		else {
			if(WkC1!='')
			{ LocationString += WkC1 + "/"; }
			else
			{ LocationString += "AllCategories/"; }
		}

		if(WkFld == "C2") {
			tmpText = document.forms[WkFormName].C2.options[document.forms[WkFormName].C2.selectedIndex].value;
			LocationString += "SubCategory" + tmpText + "/"; }
		else {
			if(WkC2!='')
			{ LocationString += "SubCategory" + WkC2 + "/"; }
			else
			{ LocationString += "SubCategoryAll/"; }
		}

		if(WkFld == "col") {
			tmpText = document.forms[WkFormName].col.options[document.forms[WkFormName].col.selectedIndex].value;
 			LocationString += "Col" + tmpText + "/"; }
		else {
			if(WkCol!='')
			{ LocationString += "Col" + WkCol + "/"; }
			else
			{ LocationString += "ColAll/"; }
		}

		if(WkFld == "pr") {
			tmpText = document.forms[WkFormName].pr.options[document.forms[WkFormName].pr.selectedIndex].value;
			LocationString += "Price" + tmpText + "/"; }
		else {
			if(WkPr!='')
			{ LocationString += "Price" + WkPr + "/"; }
			else
			{ LocationString += "PriceAll/"; }
		}

		if(WkFld == "sort") {
			tmpText = document.forms[WkFormName].sort.options[document.forms[WkFormName].sort.selectedIndex].value;
			LocationString += "SortOrder" + tmpText + "/"; }
		else {
			if(WkS!='')
			{ LocationString += "SortOrder" + WkS + "/"; }
			else
			{ LocationString += "SortOrderDefault/"; }
		}

		if(WkFld == "rec") {
			tmpText = document.forms[WkFormName].rec.options[document.forms[WkFormName].rec.selectedIndex].value;
			LocationString += "Rec" + tmpText + "/"; }
		else {
			if(WkRec!='')
			{ LocationString += "Rec" + WkRec + "/"; }
			else
			{ LocationString += "RecDefault/"; }
		}

		if(WkFld == "pg") {
			tmpText = document.forms[WkFormName].pg.options[document.forms[WkFormName].pg.selectedIndex].value;
			LocationString += "Page" + tmpText + "/"; }
		else {
			if(WkPg!='')
			{ LocationString += "Page" + WkPg + "/"; }
			else
			{ LocationString += "Page1/"; }
		}

		if(WkFld == "C0") {
			tmpText = document.forms[WkFormName].C0.options[document.forms[WkFormName].C0.selectedIndex].value;
			LocationString += "Search" + tmpText + "/"; }
		else {
			if(WkC0!='')
			{ LocationString += "Search" + WkC0 + "/"; }
			else
			{ LocationString += "SearchAll/"; }
		}

		document.location = LocationString;
			
	}


	function QuickSearch(WkValue)
	{
		document.location = "productlist.asp?q=" + WkValue;
			
	}

	
	function SetFromTopForm()
	{
		var LocationString = "productlist.asp?" ;
		
		if(document.TopSearchForm.mk.options[document.TopSearchForm.mk.selectedIndex].value != "") {
			LocationString += "mk=" + document.TopSearchForm.mk.options[document.TopSearchForm.mk.selectedIndex].value; }
		else {
			LocationString += "mk="; }

		if(document.TopSearchForm.C1.options[document.TopSearchForm.C1.selectedIndex].value != "") {
			LocationString += "&C1=" + document.TopSearchForm.C1.options[document.TopSearchForm.C1.selectedIndex].value; }
		else {
			LocationString += "&C1="; }

		if(document.TopSearchForm.C2.options[document.TopSearchForm.C2.selectedIndex].value != "") {
			var tmpC2 = document.TopSearchForm.C2.options[document.TopSearchForm.C2.selectedIndex].value;
			var tmpC = tmpC2.split(";");
		
			if(tmpC[0] == "g1") {
				LocationString += "&C1=" + tmpC[1]; }
			else {
				LocationString += "&C2=" + tmpC[1]; } }
		else {
			LocationString += "&C2=" }

		document.location = LocationString;
	}

	function JumpToMake(WkEntry)

	{
		document.SearchForm.m.value = WkEntry;
		document.SearchForm.s.value = '<%= Request("s") %>';
		document.SearchForm.submit();	
	}

	function ChangeOrder(WkEntry)
	{
		document.SearchForm.s.value = WkEntry;
		document.SearchForm.m.value = '<%= Request("m") %>';
		document.SearchForm.submit();	
	}


function remove(index)
	{
		today = new Date();
		locstr = "add.asp?action=remove&time=" + today.getTime() + "&index="+index;
		document.location.replace(locstr);
	}

	function loadImages() {
		if (document.getElementById) {  // DOM3 = IE5, NS6
		document.getElementById('hidepage').style.visibility = 'hidden';
		}
		else {
		if (document.layers) {  // Netscape 4
		document.hidepage.visibility = 'hidden';
		}
		else {  // IE 4
		document.all.hidepage.style.visibility = 'hidden';
		}
	   }
	}

function GetDetails(WkEntry1, WkEntry2)
	{
		document.SearchForm.rec.value = WkEntry1;
		document.SearchForm.action = 'productdetail.asp';
		document.SearchForm.submit();	
	}

function quickVal()
{
	if(document.quickSearch.searchFor.value == "")
	{
		alert("Please enter search criteria.")
		document.quickSearch.searchFor.focus();
		return false
	}
	
	return true
}

	function verify(f)
	{
		var msg;
		var empty_fields = "";
		
		if (document.ContactDetails.PostcodeLookup.value == "" && document.ContactDetails.HouseNo.value == "")
		{
			// Loop through the elements of the form, looking for all
			// text and textarea elements and if they are empty.
			for(var i = 0; i < f.length; i++)
			{
				var e = f.elements[i];
				{
					if (e.alt == "y")
	//				if ((e.name == "name") || (e.name == "position") || (e.name == "tradingname")
				//		  || (e.name == "productmaintaining") || (e.name == "workshop"))
					{
						if ((e.value == null) || (e.value == ""))
						{
							empty_fields += "\n          " + e.title;
						}
					}
				}
			}
	
			// Now, if there were errors, display a message, stating which fields are missing.
	
			if(!empty_fields)
			{
				return true;
				document.ContactDetails.submit();
			}
			
			msg = "____________________________________________\n\n"
			msg += "   The form was not submitted, because the following\n";
			msg += "   field(s) are required:\n";
			msg += "___________________________________________\n"
		
		
			if (empty_fields)
			{
				msg += empty_fields + "\n";
			}
			
			alert(msg);
			return false;
		}
	}
	
	function CheckEmail(e)
	{
		var noAt = e.indexOf("@");
		
		// Now, if there were errors, display a message, stating which fields are missing.

		if(noAt != -1) return true;
		
		alert('Incorrect email format. Please add "@".');
		return false;
	}

	function CheckPostCode(e)
	{
		var gotSpace = e.indexOf(" ");
		
		// Now, if there were errors, display a message, stating which fields are missing.

		if(gotSpace != -1) return true;
		
		alert('Incorrect postcode. Please add a space.');
		return false;
	}

	function verifyCard(f)
	{
		var msg;
		var empty_fields = "";
		
		// Loop through the elements of the form, looking for all
		// text and textarea elements and if they are empty.
		for(var i = 0; i < f.length; i++)
		{
			var e = f.elements[i];
			{
				if ((e.name == "CardNumber") || (e.name == "CardSecurityCode"))
				{
					if ((e.value == null) || (e.value == ""))
					{
						empty_fields += "\n          " + e.title;
					}
				}
				else if (e.name == "CardEndMonth")
				{
					if (f.CardEndMonth.options[f.CardEndMonth.selectedIndex].value == '-')
					{
						empty_fields += "\n          " + e.title;
					}
				}
				else if  (e.name == "CardEndYear")
				{
					if (f.CardEndYear.options[f.CardEndYear.selectedIndex].value == '-')
					{
						empty_fields += "\n          " + e.title;
					}
				}
			}
		}

		// Now, if there were errors, display a message, stating which fields are missing.

		if(!empty_fields) return true;
		
		msg = "____________________________________________\n\n"
		msg += "   The form was not submitted, because the following\n";
		msg += "   field(s) are required:\n";
		msg += "___________________________________________\n"
	
	
		if (empty_fields)
		{
			msg += empty_fields + "\n";
		}
		
		alert(msg);
		return false;
	}


	function RefineTopSearch(DropObject)
	{

		var LocItems = DropObject.value.split("~");
		var LocationString = "http://www.bunnyappliancewarehouse.co.uk/Products"; //mk=" + escape(LocItems[0]);
		
		if(LocItems != '')
		{
			LocationString = LocationString + "/";
		}
		
		for(var i = 0; i < LocItems.length; i++)
		{
			LocationString = LocationString + escape(LocItems[i]) + "/";
		}
		
		document.location = LocationString ;
			
	}

function ValidateQuantity(field)
{
   if(IsEmpty(field)) 
   { 
      alert('Please enter a quantity.') 
      field.focus(); 
      return false; 
   } 
 
 
   if (!IsNumeric(field.value)) 
   { 
      alert('Only numbers are allowed for this field.') 
      field.focus(); 
      return false; 
      } 
 
return true;
 
} 

function IsEmpty(aTextField)
{
   if ((aTextField.value.length==0) || (aTextField.value==null))
   {
    	return true;
   }
   else
   {
   	return false;
	}
}	

function IsNumeric(TxtFld)
	{
		var ValidChars = "0123456789";
	   	var IsNumber=true;
   		var Char;

 		for (i = 0; i < TxtFld.length && IsNumber == true; i++) 
      	{ 
			Char = TxtFld.charAt(i); 
			if (ValidChars.indexOf(Char) == -1) 
         	{
         		IsNumber = false;
         	}
      	}
		return IsNumber;
	}
	
function UpdateDelivery(CostValue)
{
	location = 'basket.asp?del=' + CostValue;
}