I have an asp.net page with a nested master page. Parent master page has form tag like this:
 <form runat="server">
 ...
 ....
 </form>
and in child master page. I have a side bar where I have another form ( not runat=server") like this:
<form method="post" action="https://app.icontact.com/icp/signup.php" name="icpsignup" id="icpsignup3297" accept-charset="UTF-8" onsubmit="return verifyRequired3297();" >
<input type="hidden" name="redirect" value="http://www.abconline.com/newsletter-sign-up.aspx">
<input type="hidden" name="errorredirect" value="http://www.icontact.com/www/signup/error.html">
....
....
....
<input type="submit" name="Submit" value="Get Deals">
</form>
<script type="text/javascript">
    var icpForm3297 = document.getElementById('icpsignup3297');
    if (document.location.protocol === "https:")
        icpForm3297.action = "https://app.icontact.com/icp/signup.php";
    function verifyRequired3297() {
        if (icpForm3297["fields_email"].value == "") {
            icpForm3297["fields_email"].focus();
            alert("The Email field is required.");
            return false;
        }
        return true;
    }
</script>
but when I hit submit button, post back happens but javascript function is not called and form is not redirected to post url of child master page. It works fine if i use this form in a standalone page without master pages.
Please suggest how to force form inside child master page to go to post URL ?
 
     
     
    