First of all thanks for everyone who responds to me. I appreciate it.
Here is my problem.
The problem is as follows:
var test = form.value1.value;
var point = document.test.value1.value;
pointcon = point.toString();
var point2 = eval(document.test.value2.value);
var point3 = point + point2;
<form name = "test">
First name: <input type="text" name = "value1" value1 = ""/><br />
Last name: <input type="text" name = "value2" value2 = ""/>
<input type = "button" value = "Submit" onClick="square(this.form)"/>