
var DHTML = false;
var IE_DHTML = (document.getElementById && document.all) ? true : false;
var NS_DHTML = (document.getElementById && !document.all) ? true : false;
var IE4 = (document.all && !IE_DHTML) ? true : false;
var NS4 = (document.layers) ? true : false;

if (NS_DHTML || IE_DHTML)
  DHTML = true;

var available_width = 0;
var available_height = 0;

//alert("NS_DHTML="+NS_DHTML+ "\nDHTML="+DHTML);

/*
  document.oncontextmenu = function(){return false}
  if(NS4) {
    window.captureEvents(Event.MOUSEDOWN);
    window.onmousedown = function(e){
        if(e.target==document)return false;
    }
  }
  else {
    document.onmousedown = function(){return false}
  }
*/

// statusMessage
statusmsg = new Array (
    "Enter Date of Birth, Gender, Risk and Tobacco Use Information, then click the 'Proceed to Survey' button.",
    "Select a Coverage Amount, then a Coverage Type, then click the 'Proceed to Survey' button.",
    "Select a Joint Coverage type, then click the 'Proceed to Survey' button.",
    "Choose the number of ranked results appearing on the report, then click the 'Proceed to Survey' button.",
    "Choose the premium payment schedule, then click the 'Proceed to Survey' button",
    "Rank report",
    "Coverage and Premiums survey"
);

function statmsg(msg)  {
  window.status = "";
  window.status = statusmsg[msg];
};

function openerWin(url)  {
//  window.open(url,'','dependent=yes,toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=600,height=400');
//  window.open(url,'','dependent=yes,scrollbars=yes,resizable=yes,width=600,height=400');
  window.open(url,'','dependent=yes,scrollbars=yes,resizable=yes,width=600,height=450,screenX=10,screenY=10,Left=10,Top=10');
};

function closerWin()  {
  window.close();
};


