<!--

	// ****************************************** //
	// Image Rollovers                                                   //
	// ****************************************** //
	
	var strImagePath = "images/";

	function newImage(strFilename) {
		strFilename = strImagePath + strFilename;
		if (document.images) {
			objTempImage = new Image();
			objTempImage.src = strFilename;
			return objTempImage;
		}
	}
	
	// Main Nav

	//home = newImage("nav-home.gif");
	//homeOver = newImage("nav-home-over.gif");
	
	function changeImage(strLocation, strImage) {
		document.images[strLocation].src = eval(strImage + ".src");
	}	
	
	
	// ****************************************** //
	// E_M_A_I_L Builder                                                //
	// ****************************************** //
	
	function buildE(recipient, domain, linktext){
		if (linktext == '') {
			document.write('<a href=\"' + 'mail' + 'to' + ':' + recipient + '@' + domain + '\" class=\"link\">' + recipient + '@' + domain + '</a>');
		} else {
			document.write('<a href=\"' + 'mail' + 'to' + ':' + recipient + '@' + domain + '\" class=\"link\">' + linktext + '</a>');
		}
	}
	
	
	// ****************************************** //
	// Open Window                                                       //
	// ****************************************** //
	
	function openWindow(url,name,width,height,scrollers,statusbar) {
		var newWindow = window.open(url,name,'toolbar=0,location=0,directories=0,status='+statusbar+',menubar=0,scrollbars='+scrollers+',resizable=1,width='+width+',height='+height);				
		newWindow.focus();		
	}
	
	
	// ****************************************** //
	// Validate that a Stock Type is selected                     //
	// ****************************************** //
	
	function validateStockType(type, ID) {
		if (document.chooseStockType.typePulldown.options[document.chooseStockType.typePulldown.selectedIndex].value == "") {
			alert('Please select a ' + type + ' before adding to your shopping basket.');
		} else {
			window.location = 'shopping_basket.htm?' + ID;
		}
	}
	
						
	function movepic(img_name,img_src) {
		document[img_name].src=img_src;
	}
	
	//exit popup window
	var exit=true;
	function exitPop()
	{
		testwindow= window.open ("testWin.aspx", "exitPop","location=0,status=0,scrollbars=0,width=1,height=1");		
		testwindow.blur();
		testwindow.moveTo(-300,-300);
		this.focus();		
	}
		
					
	
//-->