/* calculator */
<!--
function Morgcal()
{
	form = document.myform
	LoanAmount= form.LoanAmount.value
		
	DownPayment= "0"
	AnnualInterestRate = form.InterestRate.value/100
	Years= form.NumberOfYears.value
		MonthRate=AnnualInterestRate/12
	NumPayments=Years*12
	Prin=LoanAmount-DownPayment
	
	MonthPayment=Math.floor((Prin*MonthRate)/(1-Math.pow((1+MonthRate),(-1*NumPayments)))*100)/100
		form.NumberOfPayments.value=NumPayments
	form.MonthlyPayment.value=MonthPayment
}
 // -->

/* jump menus */
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='listings.php?city="+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}

function MM_jumpMenu2(targ,selObj,restore){ //v3.0
eval(targ+".location='listings.php?type="+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}

// open new page from jump menus
function there(dropdown) {
//	var windowprops = "location=yes,scrollbars=yes,menubar=yes,toolbar=yes,resizable=yes,status=yes";
	var URL = dropdown.options[dropdown.selectedIndex].value;
      if(URL!="") {
           // window.open(URL,"new",windowprops);
           window.open(URL,"new", "");
	  }
}

