// Requires:

//   BrowserInfo.js



// Usage:

// Redirect( urlTarget );



function GoURL(sPath)

{

	var oBrowserInfo = new BrowserInfo();

	var NS = (oBrowserInfo.bNav && oBrowserInfo.iMajorVer >= 3);

	var MSIE = (oBrowserInfo.bIE && oBrowserInfo.iMajorVer >= 4);



//	if (NS || MSIE)

//	{
//		location.replace(sPath);

//	}

//	else

//	{

//		location.href = location.href.replace(/www.sentex.ca/,'www.sentex.net') + sPath;
		location.href = sPath.replace(/www.sentex.ca/,'www.sentex.net');

//	}

}



function Redirect(sPath)

{

	var sThisURL = unescape(window.location.href);

	var sNewURL = sThisURL.substring(sThisURL.indexOf('?')+1, sThisURL.length);
	sNewURL = sNewURL.replace(/www.sentex.ca/,'www.sentex.net');

	if (sThisURL.indexOf('?/') != -1)

	{

		GoURL(sNewURL); //smart frames redirect kept to outside links to the site

	}

	else 

	{

		GoURL(sPath); //default redirect

	}

}	

