<!--
$(document).ready(
	function() {
		$('#myselectbox')
		.change(function(){ window.location.href = $(this).val();})

		$('#stock')
		.focus(function(){ if(this.value=='Product Search') this.value='' })
		.blur(function(){ if(this.value=='') this.value='Product Search' });

		$('#search')
		.submit(
			function() {
				var x = $('#stock').val();
				if(x=='Product Search' || x=='' || x.length < 3)
					return false;

				return true;
			}
		);
		$('#stock').ToolTipDemo('#FFE5F1');
		
	}
);

function updateBasket(x) {
	$('#baskettext').html('<b>Shopping Basket</b> '+x+' items');
}

function URLparms(name) {
	var newname = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
	var regexS = "[\\?&]"+newname+"=([^&#]*)";
	var regex = new RegExp( regexS );

	var results = regex.exec( window.location.href );

	if( results == null )
		return "";

	return results[1];
}
-->
