// JavaScript Document
// Updated 10/15/2008 by Bob Dupre

function MM_openBrWindow(theURL,winName,features, myWidth, myHeight, isCenter) { //v3.0
  if(window.screen)if(isCenter)if(isCenter=="true"){
    var myLeft = (screen.width-myWidth)/2;
    var myTop = (screen.height-myHeight)/2;
    features+=(features!='')?',':'';
    features+=',left='+myLeft+',top='+myTop;
  }
  var w = window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
  w.focus();
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

MM_reloadPage(true);

function noBarWindow(theURL, winName, myWidth, myHeight) { //v2.0
	var w = MM_openBrWindow(theURL,winName,'toolbar=no,menubar=no,resizable=yes', myWidth, myHeight, 'true');
}

function docWindow(theURL) { //v2.0
	noBarWindow(theURL,'docWin', '800', '650');
}

function docLink(theURL,theCaption,theNote) { //v2.0
	document.write('<a href="#" onclick="javascript:docWindow(' + "'" + theURL + "'" + ')">' + theCaption + '</a>');
	if (theNote) { document.write(' <span class="rednote">' + theNote + '</span>'); }
	document.write('<br>');
}

function doclink(theURL,theCaption,theNote) { //v2.0
	docLink(theURL,theCaption,theNote);
}
