/* These scripts are shared across all his 'store' pages */


function clearText(thefield)	{
	if (thefield.defaultValue == thefield.value)
		thefield.value = "";
}


//Used on product details pages for enlarging image
function zoom (url) {
	z = window.open('','zoom_popUp','status=0,directories=0,toolbar=0,menubar=0,resizable=1,scrollbars=1,location=0');
	z.document.write('<html>\n<head>\n<title>Picture Zoom</title>\n</head>\n<body>\n<div align="center">\n<img src="' + url + '"><br>\n<form><input type="button" value="Close Window" onClick="self.close(true)"></form>\n</div>\n</body>\n</html>\n');
	z.document.close();
	z.focus(true);
	}


//Used for popups throughout site.  Specifically, on detail pages its used for taf and reviews
function openWindow(url,w,h) {
	adviceWin = window.open(url,'advice','status=no,width='+w+',height='+h+',menubar=no,scrollbars=yes');
	adviceWin.focus(true);
	}
	
function submitStoreSearchForm()	{
//	alert(document.storesearch.store.value);
	document.storesearch.action = document.storesearch.store.value;
	}
