<form name="calc">
<input type="button" value="c" onClick="calc.display.value = ''">
<input type="text" name="display">
<input type="button"value="1" onClick="calc.display.value ±='1'">
<input type="button"value="="onClick="calc.display.value=eval(calc.display.value)">
</form>