
function showbuttons() {
    var agt       = navigator.userAgent.toLowerCase();
    var IEMAC     = ((agt.indexOf("msie") != -1) && agt.indexOf("mac")!=-1);
    var N6        = (agt.indexOf("netscape6") != -1 || (agt.indexOf("netscape/6") !=-1 ));

    if ( IEMAC || N6 ) {
      return "<P>";
    }
    return "<P><FORM><INPUT TYPE='button' value='Calculate' Name='btnCallCalc' onClick='document.calculator.calculate()'><INPUT TYPE='button' value='View Report' Name='btnOpenNote' onClick='openNote()'></FORM>";
}


function openNote(){
    var agt=navigator.userAgent.toLowerCase();
    var is_aol   = (agt.indexOf("aol") != -1);
    leftpos=0;
    if (screen) {
    	leftpos=screen.width/2 - 300;
    }

    if (is_aol) {
     	var s = " ";
   	s=document.calculator.sJavaScriptReport('HTML');
    	document.write(s);
    } else {
   	var OpenWindow=window.open("","newwin","toolbar=yes,menubar=yes,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=600,height=380,left="+leftpos+",top=20");
   	var s = " ";
   	if (navigator.appName == "Netscape")
     	    s=document.applets["calculator"].sJavaScriptReport('HTML');
   	else
     	    s=document.calculator.sJavaScriptReport('HTML');
   	OpenWindow.document.write(s);
   	OpenWindow.document.close();
   	OpenWindow.focus();
    }
}

function showDisclosure() {
    document.write("<P class=footer> Information and interactive calculators are made available to you as self-help tools for your independent use. We cannot and do not guarantee their accuracy or their applicability to your circumstances. We encourage you to seek personalized advice from qualified professionals regarding all personal finance issues.</CENTER>");

}	