I have a form feedback_administration.asp and feedback_Administration_update.asp

in feedback_administration.asp I have three submit buttons

<form ACTION="Feedback_Administration_Update.asp" METHOD=POST NAME="form">
I have other html part,which am not posting here.

<input type="button" value="Submit" onclick="javascript:Checkit();" name="btnSubmit">
<input type="reset" value="Reset" onclick="javascript:document.location=location">
<input type="button" value="Send Response to Requester" name="btnSubmit" onclick="javascript:Checkit();"/>

</form>

my javascript function for checkit()

function Checkit() {
var entry_date = document.form.txtentryDt.value;
var closed_date = document.form.txtclsedDt.value;
var eDate = new Date(entry_date);
var cDate = new Date(closed_date);
var compDate = cDate - eDate;

if (compDate < 0) {
alert("Closed date should be greater than Feedback entry date");
return
}
document.form.submit();

}


on feedback_Administration_update.asp page

dim buttonPressed
buttonPressed=Request.Form("btnSubmit")
case "Submit"
<script type="text/javascript" language=javascript>
alert("submit");
</script>

case "Send Response to Requester"
<script type="text/javascript" language=javascript>
alert("response");
</script>
End Select
%>

when I execute,I get to see only the page is redirecting from feedback_Adminsitration.asp tp feedback_Administration_update.asp

the alert part is not working on click of any button.

please help on this.