function printWindow () {
   bV = parseInt(navigator.appVersion)
   if (bV >= 4) window.print()
} // end function printWindow

function openWindow ( url, width, height, options, name ) {
  if ( ! width ) width = 640;
  if ( ! height ) height = 420;
  if ( ! options ) options = "scrollbars=yes,menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes";
  if ( ! name ) name = "outsideSiteWindow";
  var newWin = window.open( url, name, "width=" + width + ",height=" + height + "," + options );
} // end function openWindow

function jumpMenu (targ,selObj,restore) { //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
} // end function jumpMenu

/* Get X-coordinate of an object */
function getPageOffsetLeft (el) {
  var ol=el.offsetLeft;
  while ((el=el.offsetParent) != null) { ol += el.offsetLeft; }
  return ol;
} // end function getPageOffsetLeft

/* Get Y-coordinate of an object */
function getPageOffsetTop (el) {
  var ot=el.offsetTop;
  while((el=el.offsetParent) != null) { ot += el.offsetTop; }
  return ot;
} // end function getPageOffsetTop

/*Functions for TopNav Hovering*/
function topNavHover(topnav) {
	topnav = document.getElementById(topnav);
	topnav.style.backgroundColor = "#E3E7F7" ;
}

function topNavHoverOff(topnav) {
	topnav = document.getElementById(topnav);
	topnav.style.backgroundColor = "" ;
}
