I am having trouble getting my calculator to display anything. I have highlighted where I believe the problem is however I am new to this and clueless. Any help would be greatly appreciated.
<html>
<head>
<title>Investment Club Stock</title>
<script LANGUAGE=”JAVASCRIPT”>
<!–Hide from old browsers
[CODE]function diviTime(myform) {
var Time=document.Time.stockPrice.value
var Time=parseInt(Price,10)
if (isNaN(Price)) {
alert(“Enter the Stock Price”)
document.Time.stockPrice.value=” ”
document.Time.stockPrice.focus()
} else {
var Shares=document.Time.numShares.value
var Shares=parseInt(Shares,10)
if (isNaN(Shares)) {
alert(“Enter the number of shares”)
document.Time.numShares.value=” ”
document.Time.numShares.focus()
} else {
diviTimePrice=Price-(stockPrice * numShares)
document.Time.diviTime.value=diviTimePrice
}
}
}
//–>
</script>
</head>
<body>
<h2 align=”center”><font face=”Arial” Color=”blue”>
Investment Club Calculator</font></h2>
<div align=”center”><center>
<FORM></FORM> <Name=”Stock”>
</Name=”Stock”>
<table border=”0″ width=”60%”>
<tr>
<td width=”50%”><p align=”right”>Enter the current price of the stock: </td>
<td width=”50%”><Input Type=”text” Name=”stockPrice” value=” “></td>
</tr>
<tr>
<td width=”50%”><p align=”right”>Enter the number of shares owned: </td>
<td width=”50%”><Input Type=”text” Name=”numShares” value=” “></td>
</tr>
<tr>
<td width=”50%”><p align=”right”>Amount of dividends paid: </td>
<td width=”50%”><Input Type=”text” Name=”diviPaid” value=” “></td>
</tr>
<tr>
<td width=”50%”><p align=”right”>How often dividends are paid: </td>
<td width=”50%”><Input Type=”text” Name=”timePaid” value=” “></td>
</tr>
<tr>
<td width=”50%”><p align=”right”>You will earn a new share: </td>
<td width=”50%”><Input Type=”text” Name=”diviPaid” value=” “></td>
</tr>
<tr>
<td width=”50%”><p align=”right”><Input Type=”Button” Value=”Calculate” onClick=”Time()”></td>
<td width=”50%”><Input Type=”Reset”></td>
</tr>
</table>
</center></div>
</body>
</html>