function isodatetime() {
	var today = new Date();
	var year  = today.getYear();
	if (year < 2000)    // Y2K Fix, Isaac Powell
	year = year + 1900; // http://onyx.idbsu.edu/~ipowell
	var month = today.getMonth() + 1;
	var day  = today.getDate();
	var hour = today.getHours();
	var hourUTC = today.getUTCHours();
	var diff = hour - hourUTC;
	var hourdifference = Math.abs(diff);
	var minute = today.getMinutes();
	var minuteUTC = today.getUTCMinutes();
	var minutedifference;
	var second = today.getSeconds();
	var timezone;
	if (minute != minuteUTC && minuteUTC < 30 && diff < 0) { hourdifference--; }
	if (minute != minuteUTC && minuteUTC > 30 && diff > 0) { hourdifference--; }
	if (minute != minuteUTC) { minutedifference = ":30"; }
	else { minutedifference = ":00"; }
	if (hourdifference < 10) { timezone = "0" + hourdifference + minutedifference; }
	else { timezone = "" + hourdifference + minutedifference; }
	if (diff < 0) { timezone = "-" + timezone; }
	else { timezone = "+" + timezone; }
	if (month <= 9) month = "0" + month;
	if (day <= 9) day = "0" + day;
	if (hour <= 9) hour = "0" + hour;
	if (minute <= 9) minute = "0" + minute;
	if (second <= 9) second = "0" + second;
	time = hour + ":" + minute + ":" + second;
	document.all.display.value = time;
	window.setTimeout("isodatetime();", 500);
}

function getSiteHitsInfo(parPOS, parButtonId) {
	var file='StaticHtml/SiteHits.asp?';
	var d=new Date(); 
	var s=d.getSeconds(); 
	var m=d.getMinutes();
	var x=s*m;
	var info=''

	f='' + escape(document.referrer);
	if (navigator.appName=='Netscape'){
		b='NS';
	} 
	if (navigator.appName=='Microsoft Internet Explorer'){
		b='MSIE';
	} 
	if (navigator.appVersion.indexOf('MSIE 3')>0){
		b='MSIE';
	}
	u='' + escape(document.URL);
	w=screen.width; h=screen.height; 
	v=navigator.appName; 
	fs = window.screen.fontSmoothingEnabled;
	if (v != 'Netscape'){
		c=screen.colorDepth;
	} else {
		c=screen.pixelDepth;
	}
	j=navigator.javaEnabled();

	info='w=' + w + '&amp;h=' + h + '&amp;c=' + c + '&amp;r=' + f + '&amp;u='+ u + '&amp;fs=' + fs + '&amp;b=' + b + '&amp;x=' + x + '&amp;POS=' + parPOS + '&amp;ButtonID=' + parButtonId + '&amp;Type=Static';
	file = file + info
	return file; 
}

function OpenPrintPage(svlLink) {
	document.all.divPrint.style.visibility = "hidden";
	window.print();
	document.all.divPrint.style.visibility = "visible";
}

function ShowDetailedProduct(svlDetailedTemplateID, svlProductID, svlProductCode, svlUniqueID) {
	location.href = "./ProductPublisher/ProductsView.asp?CID=&PID=" + svlProductID + "&PCODE=" + svlProductCode + "&UID=" + svlUniqueID
}

function nocontextmenu() {
  event.cancelBubble = true, event.returnValue = false;
  return false;
} 

function norightclick(e) {
	routeEvent(e)
}

if (document.layers) {
  document.captureEvents(Event.MOUSEDOWN)
}  

if (window.Event) {
  document.captureEvents(Event.MOUSEUP);
}


function RestoreSearchValue() {
	if (typeof(document.all.txtSearch) == "object") {
		var svlCurrentURL, svlQueryString, svlReplace, svlValue, ivlStartPos
		svlCurrentURL = window.location.href;
		ivlStartPos = svlCurrentURL.indexOf("SearchText=")
		if (ivlStartPos > 0) {
			svlQueryString = svlCurrentURL.substr(ivlStartPos + 11);
			svlReplace = svlQueryString.substr(svlQueryString.indexOf("&"));
			svlValue = svlQueryString.replace(svlReplace, "")
			document.all.txtSearch.value = svlValue
		}
	}
}