//---------------
function getStyleObject(objectId){
if (document.getElementById && document.getElementById(objectId)){
return document.getElementById (objectId).style;
} else if (document.all && document.all(objectId)){
return document.all(objectId).style;
} else {
return false;
}
}
//---------------
function changeDiv(the_div,the_change){
var the_style = getStyleObject(the_div);
if (the_style != false){
the_style.display = the_change;
}
}
//---------------

function hideAll(){
 changeDiv('page1','none');
 changeDiv('page2','none');
}
//---------------


function showPage1(){
 changeDiv('page1','block');
 changeDiv('page2','none');
}
//---------------

function showPage2(){
 changeDiv('page1','none');
 changeDiv('page2','block');
}
//---------------

//----------------------------------------------------------------------------------------
function openCalculator(string){
	var url = "https://securepaydayloanapplication.com/scripts/LoanCalculator/loan_calculator.php?"+string;
	window.open(url,'LoanCalculator','status=0,toolbar=0,location=0,menubar=0,directories=0,resizable=0,scrollbars=0,width=400,height=350');
}
