function ShowMortgage(price, downPayment, numYears, interestRate, submit) {   
	// open the popup window
	//var popupURL = "/calculator.php?price=" + price + "&downPayment=" + downPayment + "&numYears="
	//		+ numYears + "&interestRate=" + interestRate; 
	var popupURL = "http://www.netmovein.com/info/landscape?cid=18896&jpid=MortgageTools&agid=800001713&st_bnemail=jackie.meisinger@mortgagefamily.com&st_bnphone=4062403587&st_bnname=jackiemeisinger&st_lo_phone=(406)%20240-3587&st_lo_phone_ext=&st_lo_fname=Jackie&st_lo_mname=&st_lo_lname=Meisinger&st_lo_cell=(406)%20214-4487&st_lo_fax=&st_lo_address=&st_lo_address_additional=&st_lo_city=&st_lo_state=&st_lo_zip=&st_presclub=false&st_cnode=jackiemeisinger&st_domain=eramortgage&st_bnlopage=lo&st_rank=MA";
	//var popup = window.open(popupURL, "Mortgage", 'width=235,height=360');
	var popup = window.open(popupURL, "Mortgage", 'width=800,height=600');

	// set the opener if it's not already set.  it's set automatically
	// in netscape 3.0+ and ie 3.0+.
	if (navigator.appName.substring(0,8) == "Netscape") {
		popup.location = popupURL;  
		popup.opener = self;
	}
}

function popup(mylink, windowname) {
	var href;
	var hWin;

	if (!window.focus)
		return true;
	if (typeof(mylink) == 'string')
		href = mylink;
	else
		href = mylink.href;
	hWin = window.open(href, windowname, 'toolbar=no,width=536,height=460,scrollbars,resizable');
	hWin.focus();
	return false;
}

function popupTB(mylink, windowname) {
	var href;
	var hWin;

	if (!window.focus)
		return true;
	if (typeof(mylink) == 'string')
		href = mylink;
	else
		href = mylink.href;
	hWin = window.open(href, windowname, 'toolbar=yes,width=630,height=580,scrollbars,resizable');
	hWin.focus();
	return false;
}

function popupMap(mylink, windowname) {
	var href;
	var hWin;

	if (!window.focus)
		return true;
	if (typeof(mylink) == 'string')
		href = mylink;
	else
		href = mylink.href;
	hWin = window.open(href, windowname, 'toolbar=no,width=660,height=630,scrollbars,resizable');
	hWin.focus();
	return false;
}

function popupVT(szHref, iW, iH) {
	var href;
	var hWin;

	if (!window.focus)
		return true;
	hWin = window.open(szHref, "VTWin", 'toolbar=no,width=' + iW + ',height=' + iH + ',resizable');
	hWin.focus();
	return false;
}

function popupRMap(hForm) {
	var href;
	var hWin;

	if (!window.focus)
		return true;
	hWin = window.open("", "MapWin", 'toolbar=no,width=660,height=630,scrollbars,resizable');
	hWin.document.writeln("<HTML><BODY BGCOLOR=\"#FFFFFF\"><CENTER><BR><BR>Accessing Map Server...</CENTER></BODY></HTML>");
	hForm.target="MapWin";
	hWin.focus();
	return false;
}

