function HideContent(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "none";
}
function ShowContent(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "block";
}
function ReverseContentDisplay(d) {
if(d.length < 1) { return; }
if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = "block"; }
else { document.getElementById(d).style.display = "none"; }
}

function externalLinks() {
 if (!document.getElementsByTagName) return;
 var anchors = document.getElementsByTagName("a");
 for (var i=0; i<anchors.length; i++) {
   var anchor = anchors[i];
   if (anchor.getAttribute("href") &&
       anchor.getAttribute("rel") == "external")
     anchor.target = "_blank";
 }
}
window.onload = externalLinks;

function Lvl_openWin(u,n,w,h,l,t,c,f,x) { //v1.0 4LevelWebs
  var ww=((screen.width-w)/2);if(c==1){l=ww;t=(screen.height-h)/2;}if(c==2){l=ww}
	f+=',top='+t+',left='+l;LvlWin = window.open(u,n,f);if(x==1){LvlWin.focus()}
	document.MM_returnValue=false;
}

function LaunchSystemTest()
{
var iWidth=580;
var iHeight=500;
var iLeft = window.screenLeft;
var iTop = window.screenTop;

winRequirements=window.open("http://events.insinc.com/syscheck/","SystemTest","width="+iWidth+",height="+iHeight+",top="+iTop+",left="+iLeft+",scrollbars=0,menubar=0,resizable=0,status=1");

if (winRequirements!=null)
	winRequirements.focus();
else
	alert("The System Test window was blocked from opening, disable your pop-up blocking software and try again.");
}
