Question : What's wrong with my Fahrenheit-converter in JavaScript?

What's wrong with my Fahrenheit-converter in JavaScript?

I want the user to type a number for degrees Celsius, press the button "Konvertera till Fahrenheit" and the result is displayed in the text field (<input type="text" name="fahrenheit" />).

But when I press the button, I receive the error message 'Fahrenheit is not null or is not an object.'.
Why? What should I change to get it to work?
Attachments:
 
Fahrenheit-converter in JavaScript
 

Answer : What's wrong with my Fahrenheit-converter in JavaScript?

better :

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 
<html>
<head>
<title>Temperatur</title>
<link rel="stylesheet" type="text/css" href="css/stylesheet.css" />
<script language="JavaScript" type="text/javascript">
<!--
		function graderfahrenheit()
		{
			document.forms["formular"].fahrenheit.value = document.forms["formular"].celsius.value*(9/5)+32
		}
//-->
</script>
</head>
<body>
    <form name="formular">
        <input type="text" name="celsius" size="4" />°C &nbsp;&nbsp;
        <input type="button" value="Konvertera till Fahrenheit" onClick="graderfahrenheit()" /> &nbsp;>>>
        <input type="text" name="fahrenheit" size="4" />°F
    </form>
</body>
</html>
Random Solutions  
 
programming4us programming4us