hi all
i wrote the folowing javascript code
<html>
<head>
<script language ="javascript">
function Change()
{
document.test1.tbText1.value = 20
}
</script>


<body>
<form name="test1" method="post" onsubmit ="Change()">
<input type="text" name="tbText1">
<br>
<input type="submit" value="submit">
</form>

when i press on the submit button i cant see value 20 in the textbox
1. why does it happen?
2. as a result how do i cange in the same way checkbox??
thanks alot
Ron