// JavaScript Document

//--------------- LOCALIZEABLE GLOBALS ---------------
var d=new Date();
var monthname=new Array("January","February","March","April","May","June","July","August","September","October","November","December");
//Ensure correct for language. English is "January 1, 2004"
var TODAY = monthname[d.getMonth()] + " " + d.getDate() + ", " + d.getFullYear();
//---------------   END LOCALIZEABLE   ---------------

function UpdateBasketPostage(item)
{
regionID = item.options[item.selectedIndex].value;
document.location.href = 'basket.asp?action=update_postage&region='+regionID;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function formValidatorProcessBasket(theForm,postagecost){


		
	if (theForm.shipping_1.value=="")
	{
		theForm.shipping_1.value = postagecost;
	}

	if (theForm.shipping_1.value=="")
	{
		alert("please select the your postal region from the list provided");
		//theForm.shipping_1.focus();
		return false;
	}
	
	
return true;
}

function formValidatorProduct(theForm)
{
	
	if (theForm.prodsize)
	{
		if (theForm.prodsize.value=="")
		{
			alert("please select the appropriate size from the list provided");
			theForm.prodsize.focus();
			return false;
		}
	}

	if (theForm.prodcolour)
	{
		if (theForm.prodcolour.value=="")
		{
			alert("please select the appropriate colour from the list provided");
			theForm.prodcolour.focus();
			return false;
		}
	}
	

	if (theForm.prodheight)
	{
		if (theForm.prodheight.value=="")
		{
			alert("please select the appropriate height of the item from the list provided");
			theForm.prodheight.focus();
			return false;
		}
	}
	

	if (theForm.prodleglength)
	{
		if (theForm.prodleglength.value=="")
		{
			alert("please select the appropriate leg length from the list provided");
			theForm.prodleglength.focus();
			return false;
		}
	}
	
	return true;
}
