I'm pretty much a newb with javascript, I'm trying to do something pretty basic I think but stuck at the last part. Here is a link to the script so you can take a look:
You enter a number in each box then click submit, it will do the functions and display the results. Though, the page gets stuck in a "loading" state after the results are posted and the form doesn't show up again. Not sure why it does that? I just wanted the messages to show up and the form to reload.

<script type="text/javascript">
	function validate_form(form) {

		var number1 = form.number1.value;
		var number12 = Math.sqrt(number1);
		var number2 = form.number2.value;
		var number22 = (number2 / 2);

		document.write('Number1: '+number1+"<br />");
		document.write('Number12:'+number12+"<br />");
		document.write('Number2: '+number2+"<br />");
		document.write('Number22:'+number22+"<br /><br />");
		document.write('Thank you for using this program!');

<form onsubmit="return validate_form(this);">
	Number 1: <input name="number1" type="text" value=""><br />
	Number 2: <input name="number2" type="text" value=""><br />
			  <input type="submit" value="Submit">
Need this finished asap, thanks for any help!