
well after I asked for help how I can refer to both textfields, I got answer from Mary.
The first way is showed here, but it is not working fine.
Source:
</STYLE>
<SCRIPT LANGUAGE='JavaScript' TYPE='TEXT/JAVASCRIPT'>
function showit() {
alert(document.myform.fld1.value);
alert(document.myform.fld2.value);
}
</SCRIPT>
After this I tried the second way and now it worked just fine. You can find here the example