<!--Hide this file from non-JavaScript supporting browsers!

function purchaserates() {
	var newWindow = open("Rates_gif/print_purchase_rates.htm", "secondWindow","scrollbars,width=650,height=400");
}

function aboutbuybroker() {
	var newWindow = open("about_buybroker.htm", "secondWindow","scrollbars,width=650,height=400");
}

function privacy() {
   var newWindow = open("privacy.htm", "secondWindow", "scrollbars,width=350,height=300");
}

function patriot_act() {
   var newWindow = open("patriot_act.htm", "secondWindow", "scrollbars,width=650,height=350");
}

function rates_adjust() {
   var newWindow = open("rates_adjust.htm", "secondwindow", "scrollbars,width=350,height=300");
}		

function calcRebate() {
	if (document.RebateForm.priceAmt.value>0) {
	var price = parseInt(document.RebateForm.priceAmt.value);
	var commission = parseInt(price * 0.06);
	var split = parseInt(commission / 2);
	var rebate = parseInt(split / 3);
		document.RebateForm.sixAmt.value = commission;
		document.RebateForm.threeAmt.value = split;	
		document.RebateForm.twentyAmt.value = rebate;
}
else {
	alert("Please enter a correct Home Price amount!")
	document.RebateForm.priceAmt.value = 150000
	document.RebateForm.sixAmt.value = 9000
	document.RebateForm.threeAmt.value = 4500
	document.RebateForm.twentyAmt.value = 1500
}
}

function reset() {
	document.RebateForm.priceAmt.value = 150000
	document.RebateForm.sixAmt.value = 9000
	document.RebateForm.threeAmt.value = 4500
	document.RebateForm.twentyAmt.value = 1500
}

function Contact() {
alert("The Contact Form is now loading from our secure server and will take a few extra seconds to complete.")

}

function showCU() {

alert("The On-line Mortgage Application module is now loading from our secure server and will take a few extra seconds to complete.")
}

function showCAL() {

alert("Want to estimate closing costs?    Use our worksheet calculator.  CLICK ON LINK AT BOTTOM ON THE FAR LEFT SIDE OF THIS PAGE.")
}

// stop the hiding -->