I've been tryna do this simple danged var assignment all night, now its too late >=[. 

```
<SCRIPT LANGUAGE="JavaScript">
var P;
function save(f1)
{
    P = parseFloat(document.getElementByID('loan1').value);
}

<form name = "form" action = "mortgagecalc.html" id="f1" onSubmit="check_form(form);">
    <b>Loan Amount</b>
    <input type = "text" name = "loan" size = "15" id="loan1" onchange="save(form)"><br>

</form>

```

and every single time I tab out of the loan field the console gives me:

```
Uncaught TypeError: undefined is not a function 

```

for the line P = parse... 

I tried everything!!I followed the examples perfectly. What is up with javascript variables never working for me??? UGHHHHHHH