function openSite(strLocationURL)
{
	var siteWindow = null;
	siteWindow = window.open(strLocationURL);
}

function openCopyright(strURL, intWidth, intHeight)
{
	var copyWindow;
	
	copyWindow = window.open(strURL, "copyWindow", "width=" + intWidth + ", height=" + intHeight);
	copyWindow.focus();
} // openPopUp

function checkExternalLinks()
{
	var objLinks = document.getElementsByTagName("a");

	for (i=0; i < objLinks.length; i++)
	{
		if (objLinks[i].href.length > 0)
		{
			if ((objLinks[i].href.indexOf(document.domain) == -1 && objLinks[i].href.indexOf("javascript:") == -1 && objLinks[i].href.indexOf("mailto:") == -1) || objLinks[i].href.indexOf(".pdf") > -1)
			{
				objLinks[i].href = "javascript: openSite('" + objLinks[i].href + "');";
			} // if
		} // if
	} // for
} // checkExternalLinks

function checkCopyrightLink()
{
	var objLink = document.getElementById("copyright");
	objLink.href = "javascript: openCopyright('" + objLink.href + "', 300, 250);";
}

try
{
	window.addEventListener("load", checkExternalLinks, true);
}
catch(ex)
{
	window.attachEvent("onload", checkExternalLinks);
}
