<!--
//	Financial Calculators, 1998-2007 KJE Computer Solutions, LLC.
//	For more information please see:
//	<A HREF="http://www.dinkytown.net">http://www.dinkytown.net</A>
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(N6){
		return "Netscape 6 is unable to support our detailed reports.  Please upgrade to Nescape 7.<br />";
	}
	if ( IEMAC ) {
		return "<br />";
	}
	return "<form><div id='calcButtons'><input type='button' value='Calculate' name='btnCallCalc' onclick='document.calculator.calculate()'>&nbsp;&nbsp;<input type='button' value='View Report' name='btnOpenNote' onclick='openNote()'></div><div id='calcLink'><a href='/calculators/'>View All Calculators</a></div><div style='clear:both;'></div></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 = " ";
		s=document.calculator.sJavaScriptReport('HTML');
		OpenWindow.document.write(s);
		OpenWindow.document.close();
		OpenWindow.focus();
	}
}
function detect_java(){
 	if(!navigator.javaEnabled()){
 		if(confirm("You need the Java Plugin installed to use the calculators.\nPlease visit http://www.java.com/ to install.")){
 			window.open("http://www.java.com/en/download/manual.jsp","java","width=800")
 		}
 	}
}
window.onload=detect_java;
 //-->