var browserName = navigator.appName;
var browserVer = parseInt(navigator.appVersion);
var version = "";
var msie4 = (browserName == "Microsoft Internet Explorer" && browserVer >= 4);
if ((browserName == "Netscape" && browserVer >= 3) || msie4 || browserName=="Konqueror" || browserName=="Opera") {version = "n3";} else {version = "n2";}
	// Blurring links:
function blurLink(theObject)	{	//
	if (msie4)	{theObject.blur();}
}

/*

This hack corrects the Request Quote page links for the RESET-created subpages.

We have to use the <base href="http://www.tri-win.com/" /> tag to make all the images, JavaScripts and CSS files work.  However, that causes the "Close Window" link on the Request a Quote popup to fail because it's technically cross-site scripting (parent window is the current site, but the subwindow is on tri-win.com).  This hack forces the link to be under whatever domain name is making the request instead.

This requires a minimal of code changes.  The only code changes that are required, are all of the subpages need to call this script in the <body onload=""> (of course) and giving an id attribute of "RequestLink" to the link in question.  This can be done easily using a global find and replace.

*/
function RequestQuoteHack() {
	CurDomain = document.domain;
	if (CurDomain.indexOf("www.") == -1) {
		CurDomain = "www." + CurDomain;
	}
	CurDomain = "http://" + CurDomain;
	document.getElementById('RequestLink').href = CurDomain + '/request_quote.php';
}