var hHtm  = null;
var hInfo = null;
var hMain = null;
var hPdf  = null;

function contactus(msg,center)
// Obfuscate contact us email address because of web robots
{
  // Default display message
  if(msg == "") msg = "Contact Us"
  // Static (currently) hover tip
  var title = "Contact us by email";
  // Default to not centering
  if(center == 1) document.write("<center>");

  var s1 = "contactus";
  var s2 = "@";
  var s3 = "TheQuestForGlory";
  var s4 = ".c";
  var s5 = "om";
  var hr = "mail" + "to:" + s1 + s2 + s3 + s4 + s5;
  hr = hr + " title=" + '"' + title + '"';
  document.write("<a href=" + hr + ">" + msg +"</a>");

  if(center == 1) document.write("<center>");
} //contactus

function openHtm(file)
{
  // All Html files will be opened/shown in one window.
  hHtm = window.open(file, 'winHtm');
//  hHtm.moveTo(0, 0);
//  hHtm.resizeTo(screen.width*0.50,screen.height*0.95);
  hHtm.focus();
} // openHtm

function openInfo(file)
{
   // window.open() features JDG 673
   //winFeatures = "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=600,height=300,left=340,top=362"
   winFeatures = "width=600,height=400,resizable=1,scrollbars=1"

  // All Info (Html) files will be opened/shown in one window.
//  hInfo = window.open(file, 'winInfo', "toolbars=0,width=600,height=200,resizable=1,scrollbars=1,dependent=1");
  hInfo = window.open(file, 'winInfo', winFeatures);

//  hInfo.status("TEST STATUS LINE");

//  hInfo.moveTo(0, 0);
//  hInfo.resizeTo(screen.width*0.50,screen.height*0.95);
  hInfo.focus();
} // openInfo

function openMain(file)
{
  // Open windows in main frame
  hmain = window.open(file, 'main');
  //hMain.focus();
} // openMain

function openPdf(file)
{
  // All Pdf files will be opened/shown in one window.
  hPdf = window.open(file, 'winPdf',
    "resizable=yes,scrollbars=yes,toolbar=yes");
  hPdf.focus();
} // openPdf


