<head><title>test</title>
<script type="text/javascript">
function recalc()
{
document.testform.c1.value = 2;
}
</script>
</head>
<body>
<form action="" method="POST" name="testform" >
<input name="c1" type="text" size="15" maxlength="15">
</form>
<input name="LALA" value="Click Here" onclick="recalc()" type="button">
</body>
</html>
<script type="text/javascript">
function recalc()
{
document.testform.c1.value = 2;
}
</script>
</head>
<body>
<form action="" method="POST" name="testform" >
<input name="c1" type="text" size="15" maxlength="15">
</form>
<input name="LALA" value="Click Here" onclick="recalc()" type="button">
</body>
</html>