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;
    }
  }


function openerHelp()  {
  alert("Disability Income Needs Analysis for LifeGuide\nCopyright 1998-2001 CompuOffice Software Inc.\n\nFor more information, please call CompuOffice Software Inc.,\ntel.(905) 886-3314." );
}

function openerWin(url, w, h) {
  var winX = 10;
  var winY = 10;

//  winStyle = 'height='+h+',width='+w+',screenX='+winX+',screenY='+winY+',left='+winX+',top='+winY+',dependent=yes,scrollbars=yes,menubar=no,toolbar=no,status=yes,location=yes';
  winStyle = 'height='+h+',width='+w+',screenX='+winX+',screenY='+winY+',left='+winX+',top='+winY+',dependent=yes,resizable=yes';
  win = window.open(url, '', winStyle);  win.window.focus();
}
function closerWin()  {
  window.close();
};

function check_win_size(winHeight)  {
  if (winHeight > screen.height)  {
    winHeight = winHeight - 195;
  }
  return winHeight;
}

//statusMessage
statusmsg = new Array (
	"Welcome to Planner.ca",
    "click for the Commuted Value calculator",
    "click for the Commuted Rate calculator",
    "click for the Commuted Period calculator",
    "click for the Commuted Income calculator",
    "click for the Present Value calculator",
    "click for the Quick Life Insurance Needs Estimator",
    "click for the Step-by-Step Life Insurance Needs Analysis",
    "click for the Ledger Style Life Insurance Needs Analysis",
    "click for the Step-by-Step Retirement Income Needs Analysis",
    "click for the Detailed & Comprehensive Retirement Income Needs Analysis",
    "click for the Step-by-Step Disability Income Needs Analysis",
    "click for the Detailed & Comprehensive Disability Income Needs Analysis",
    "LifeGuide&reg; Mortgage Investment & Loan Analysis (MILA&trade;)"
);

function statmsg(msg)
{
  window.status = "";
  window.status = statusmsg[msg];
};

