
function openExternal(src)
{
	var siteWindow = null;
	siteWindow = window.open(src.href);
	return true;
}

function openPopup(src, width, height)
{
	var siteWindow = null;
	width = (width != null)? ",width="+width : "";
	height = (height != null)? ",height="+height : "";
	siteWindow = window.open(src,null,"menubar=no,resizable=no,toolbar=no,location=no,scrollbars=no"+width+height);
	siteWindow.focus();
	return true;
}

function checkExternalLinks()
{
	var objLinks = document.getElementsByTagName("a");
	if (objLinks)
	{
		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].className == "popup" || objLinks[i].href.indexOf(".pdf") > -1)
					objLinks[i].onclick = function() { openExternal(this); return false; };	
				else if(objLinks[i].className.indexOf("Backbtn") > -1)
					objLinks[i].onclick = function() { history.back(); return false; };		
					
				
			} // if
		} // for
	} // if
} // checkExternalLinks

Event.addEvent(this, "load", checkExternalLinks, true);