var DHTML = false;
var IE4 = (document.all && !document.getElementById) ? true : false;
var NS4 = (document.layers) ? true : false;
var IE_DHTML = (document.all && document.getElementById) ? true : false;
var NS_DHTML = (document.getElementById && !document.all) ? true : false;

if (NS_DHTML || IE_DHTML)
  DHTML = true;

  document.oncontextmenu = function(){return false}

  if(NS4) {
    window.captureEvents(Event.MOUSEDOWN);
    window.onmousedown = function(e){
        if(e.target==document)return false;
    }
  }


// statusMessage
statusmsg = new Array (
    "Enter Date of Birth, Gender, Health 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');
};

function closerWin()  {
  window.close();
};

function check_win_size(winHeight)  {
  if (winHeight > screen.height)  {
    winHeight = winHeight - 195;
  }
  return winHeight;
}

