Hello everyone.
Quick newbie question, i'm sure it is simple to you, but i cant get my head around to figure out why my code wont work. Checked online, seems that i'm doing everything fine, but still wont work... All i'm trying to do, is to make simple calc and display that in diff field.
Here's my code:

<script type="text/javascript">
		function calculate(){
		var a = document.calculate.first.value;
		var b = document.calculate.second.value;
		var c = parseInt(a) + parseInt(b);
		document.calculate.result.value = c;

	<form name="calculate">
		<input type="text" name="first" size="5">
		<input type="text" name="second" size="5">
		<input type="button" onclick="calculate()">
		<input type="text" name="result" id="result" size="5">
by the way i'm using IE10, if that makes any difference.