<!--
var thisUrl = location.href;
servername = thisUrl.substr(thisUrl.indexOf('//')+2,thisUrl.indexOf('/',thisUrl.indexOf('//')+2)-(thisUrl.indexOf('//')+2));

if (servername == '') servername = "localhost";


var App_VirtualRoot = "/NetPortal"
var App_ServerPath = thisUrl.substr(0,thisUrl.indexOf('/',thisUrl.indexOf('//')+2));
var App_WebRoot = App_ServerPath+App_VirtualRoot
//derive webroot from the url
var App_FullWebRoot = thisUrl.substr(0, thisUrl.indexOf('?'));
var App_ImageRoot = App_WebRoot+"/images/";


function App_NewWindow(pUrl,pWidth,pHeight,pTop,pLeft,pEtc) {
	win_New = window.open(pUrl,"win_New","width="+pWidth+",height="+pHeight+",top="+pTop+",left="+pLeft+pEtc);
	win_New.focus();
}

function fullScreen(pUrl) {
	App_NewWindow(pUrl,window.screen.width,window.screen.height,0,0,", toolbar=yes, menubar=yes");
}

function openWindow(pUrl) {
	App_NewWindow(pUrl,window.screen.width-100,window.screen.height-100,10,10,", toolbar=yes, menubar=yes, scrollbars=yes, status=yes, resizable=yes");
		
}

function App_MinMax(part,alt) {
	var thisPart = document.all['part'+part];
	var thisImg = document.all['min'+part];
	if (thisPart.style.display == '') {
		thisPart.style.display = "none";
		thisImg.src = App_ImageRoot+"plus"+alt+".gif";
	} else {
		thisPart.style.display = "";
		thisImg.src = App_ImageRoot+"minus"+alt+".gif";
	}
}

function disableEnterKey(){
      if(event.keyCode == 13) event.returnValue = false;
      event.cancelBubble = true
}

//still leave for now, study more with time
function App_FindMatch(param) {
	var sURL =  App_VirtualRoot+"/services/peopleFinder.aspx?"+param;
	App_NewWindow(sURL,700,400,100,50,'",scrollbars=1"');
}

function Footer_Link(pagename) {
  var sURL = App_VirtualRoot + "/services/footerLinks.aspx?id=" + pagename;
  App_NewWindow(sURL,400,300,100,50,'",scrollbars=1"');
}


function doOnload(redirect, newUrl) {
   if (redirect) {
        //move to specified page
        window.location.href = newUrl;
   } else {
        document.getElementById('splashScreen').style.visibility='hidden';
        document.getElementById('contentScreen').style.display='';
   }
}
 
function loadHelp() {
	window.location.href = App_FullWebRoot + "?Event=default&TabName=Help";
}
		

//-->
