Thanks Bhoge, I'll come back to you if I encounter a problem.
I have another problem at this moment. I have to use java script for client script (due to browser compatibility) and leave vbscript for server script. I have several radio buttons in one question, so I'm using java script to create a function AllRadioButtons() to loop through these buttons and check if at least one is checked, if yes, then it will return true, else return false. Then I create another function that relates to submit button to call that AllRadioButtons function. This function will check if AllRadioButtons is false, then alert message will be thrown, if true, then it should process the asp form action at the server side, i.e. collect data submitted by user and insert data to the database. However, I can't have any reaction from my Submit1_Onclick() function. What is wrong? Here is the code:
<!-- Client-side form validation code -->
<script Language="JavaScript">
function Submit1_Onclick()
{
if(AllRadioButtons() == true)
{
document.frmFB.submit;
}
else
{
alert("Please make a selection to the question."

;
}
}
function AllRadioButtons()
{
var checkAllRadioButtons;
for(i=0;i<document.frmFB.frequency.length;i++)
{
if(document.frmFB.frequency
.checked == true)
{
checkAllRadioButtons = true;
return true;
}
else
{
checkAllRadioButtons = false;
return false;
}
}
}
</script>
'Here comes server side script in VBScript language
.
.
.
<FORM action=blabla.asp method=post name=frmFB id=frmFB></TABLE>
.
.
.
<INPUT type=button id=Submit1 name=Submit1 value="Send Feedback"></p>
.
.
.
Thanks a lot, I'm very frustrated with this one.
Regards,
Sandra