<!-- hide this script from non-javascript-enabled browsers

function clickclear(thisfield, defaulttext) {
	if (thisfield.value == defaulttext) {
	thisfield.value = "";
	}
}
function clickrecall(thisfield, defaulttext) {
	if (thisfield.value == "") {
	thisfield.value = defaulttext;
	}
}

function jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function goToURL() { //v3.0
  var i, args=goToURL.arguments; document.returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function submitenter(myfield,e)
{
var keycode;
if (window.event) keycode = window.event.keyCode;
else if (e) keycode = e.which;
else return true;

if (keycode == 13)
   {
   myfield.form.submit();
   return false;
   }
else
   return true;
}


function openWindow( sURL, sWinName, sFeatures) {
	// opens a new window
	window.open(sURL,sWinName,sFeatures)
}

function getRealLeft(el) {
	// calculates absolute left position of an image object (el)
    xPos = el.offsetLeft;
    tempEl = el.offsetParent;
    while (tempEl != null) {
        xPos += tempEl.offsetLeft;
        tempEl = tempEl.offsetParent;
    }
    return xPos;
}

function getRealTop(el) {
	// calculates absolute top position of an image object (el)
	yPos = el.offsetTop;
    tempEl = el.offsetParent;
    while (tempEl != null) {
        yPos += tempEl.offsetTop;
        tempEl = tempEl.offsetParent;
    }
    return yPos;

}


function swap(s,n){
  var el;
  if( n && document.images && document.images[n] )
   el = document.images[n];
  else if( event.srcElement && event.srcElement.src )
   el = event.srcElement;
  if( el )
   el.src = s;
}

	function UpdateShippingMethod(pageURL, strCurrentShippingMethod)
	{
		iindex = window.document.ShippingMethodChange.ShippingMethod.selectedIndex; 
		window.status=iindex;

		if (window.document.ShippingMethodChange.ShippingMethod.options[iindex].value != strCurrentShippingMethod)
	
		{
			if (iindex != 0)
			{
				window.location.href= pageURL + 'NewShippingMethod=' + escape(window.document.ShippingMethodChange.ShippingMethod.options[iindex].value.replace(/ /g, '+')) + '&UpdateShippingMethod=Y';
			}
		}

	}

	function UpdateShippingCountry(pageURL, strCurrentShippingCountry)
	{
		iindex = window.document.ShippingChange.ShippingCountry.selectedIndex; 
		window.status=iindex;

		if (window.document.ShippingChange.ShippingCountry.options[iindex].value != strCurrentShippingCountry)
	
		{
			window.location.href= pageURL + 'NewShippingCountry=' + escape(window.document.ShippingChange.ShippingCountry.options[iindex].value.replace(/ /g, '+')) + '&UpdateShippingCountry=Y';
		}

	}


	//Function to set blank values in basket qty field to zero
	function checkBlank(sCheckItem)

		{
		if (MM_findObj(sCheckItem).value == ' '){item.value = '0'};
		
		if (MM_findObj(sCheckItem).value == '')
			{	
				MM_findObj(sCheckItem).value = '0'
			}
		}



//-->


