// functions for standardmed

	// validation for product catalog search form
	function validateSearch() {
		if (document.getElementById('searchtext').value == '') {
			alert('Please enter search keywords');
			return false;
		} else {
			return true;
		};
	};
	
	// used to draw 3M41Ls
	function drawAddr(user, subdomain) {
		document.write("<a href='mailto:" + user + "&#64;" + subdomain + "'>" + user + "&#64;" + subdomain + "</a>");
	};
	
		// used to populate / clear search form
	function searchhelptext() {
		searchtext = document.getElementById('keywords');
		if (searchtext.value == '') {
			searchtext.value = 'enter sku or keywords';
			searchtext.style.color = '#aaa';
		};
	};
	
	// imagecontrol js
	hs.registerOverlay(
		{
		thumbnailId: null,
		//overlayId: 'controlbar',
		//position: 'top right',
		overlayId: null,
		hideOnMouseOut: true
		}
	);
	hs.graphicsDir = 'images/';
	hs.outlineType = 'rounded-white';
	// end imagecontrol js
