// JavaScript Document
function montremess(quel){
	if(quel == 'help') { 
		var message    = 
		'Input Principal, Interest Rate, Amort. (Yrs), Term (Yrs) and Payment type and \n' +
		'click on \"Calculate Payment\" to calculate the Periodic payment.\n\n'+
		'Or input Payment (bottom of form), Interest Rate, Amort. (Yrs), Term (Yrs) and Payment type\n' +
		'and Click on \"Calculate Principal\" to calculate the value for a FIXED Periodic Payment you type in.\n' +
		'     Example...: \n' + 
		'     With $700 payment and 6 % interest -- what is the Principal ?\n ' +
		'    Type 700 in \"input payment\" (bottom of form), type 6 in Interest Rate and \n' +
		'     Click on \"Calculate Principal\".\n' +
		' \nThanks for visiting.';
		 		
	}
	if(quel == 'about') { 
		var message    = 
				'US Mortgage Calculator.\n\n' + 
				'U.S. Rates compounded each period.\n\n' +
				'This mortgage calculator uses javascript to process its calculations,\n' +
				'your actual mortgage payments might be slightly different than\n' +
				'the results shown here.\n\n' +
				'Thanks for visiting.\n' ;
	}
	alert (message);
}
function popmtg() { 
	winoptions='"toolbar=no,status=yes,location=no,menubar=no,height=256,width=450"';
	MessageWin = window.open("calculator-us.htm", 'Usmort',winoptions);
}
/**********************************************
     JavaScript Popup function
     By: DOMINIQUE PELADEAU
     Url: http://www.1stoppopup.com
**********************************************/
var fenetre=null;
var exit = true;
function GetFvpCookie(DPName){
var Fvpsearch = DPName + "="
var returnFvpValue = "";
if (document.cookie.length > 0){
fvpOffset = document.cookie.indexOf(Fvpsearch)
if (fvpOffset != -1) {
fvpOffset += Fvpsearch.length
fvpend = document.cookie.indexOf(";",fvpOffset);
if (fvpend == -1)
fvpend = document.cookie.length;
returnFvpValue=unescape(document.cookie.substring(fvpOffset, fvpend))
}
}
return returnFvpValue;
}
function dopopup2(mypopurl,mypopname,sizew,sizeh,poppos,auFoyer){
if(exit){
if(GetFvpCookie("poppedup")!=""){return;}
document.cookie="poppedup=yes";
if(poppos=="center"){magauche=(screen.width)?(screen.width-sizew)/2:100;monhaut=(screen.height)?(screen.height-sizeh)/2:100;}
else if((poppos!='center') || poppos==null){magauche=100+0;monhaut=100+0}
reglages="width=" + sizew + ",height=" + sizeh + ",top=" + monhaut + ",left=" + magauche + ",scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes";fenetre=window.open(mypopurl,mypopname,reglages);
fenetre.blur();this.focus();}
}