<!--

	function NewWindow(mypage, myname, w, h, scroll) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=0'
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
	}


	function openBr(theURL,winName,features) {
		newWin = window.open(theURL,winName,features);
	}
		
// Digital Motorwork's JavaScript Payment Calculator
// with thanks to Netscape Communications, Inc.

    function checkNumber(input, min, max, msg) {

        msg = msg + " field has invalid data: " + input.value;
        var str = input.value;
        for (var i = 0; i < str.length; i++) {
            var ch = str.substring(i, i + 1)
            if ((ch < "0" || "9" < ch) && ch != '.') {
                alert(msg);
                return false;
            }
        }
        var num = 0 + str
        if (num < min || max < num) {
            alert(msg + " not in range [" + min + ".." + max + "]");
            return false;
        }
        input.value = str;
        return true;
    }

    function computeField(input) {
        if (input.value != null && input.value.length != 0)
            input.value = "" + eval(input.value);
        compute(input.form);
    }

    function compute(form) {
        var Price = form.price.value;
        if (!checkNumber(form.down, 0, Price, "Down Payment")) {
            form.payment.value = "Invalid";
            return;
        }
        Price = Price - form.down.value;
        var Interest = form.Interest.value;
            var i = Interest;
        if (i > 0.0)
            {
             i = i / 100.0;
             form.Interest.value = i * 100;
            }
        i /= 12;

        var pow = 1;
        for (var j = 0; j < form.Months.options[form.Months.options.selectedIndex].value; j++)
            pow = pow * (1 + i);
        form.payment.value = Math.round((Price * pow * i) / (pow - 1))
    }

    function clearForm(form) {
        form.payment.value = "";
          }

	function done() {
      top.window.close()
	}
				
		function emailChk () {
			var myForm = document.emailForm;
			
			if (myForm.emailto.value == "") {
				alert ("Please fill in your friend's email address");
				myForm.emailto.focus();
				return (false);
			}
			
			if (myForm.emailfrom.value == "") {
				alert ("Please fill in your email address");
				myForm.emailfrom.focus();
				return (false);
			}
			
			return (true);
		}
		
//-->