Why isn't this Submit Button working?
<p>I have a submit button on my site that stopped working. Two weeks ago it was working. I have recently made changes to the site to speed it up, however I think I have already backtracked and tested and replaced the new with the old slow original, but it didn't fix the button. I'll put the code here and include some notes at the end.</p>

<pre><code>&lt;script type="text/javascript"&gt;
    function formsubmit(task) {
        var form = document.subscribeFormModule;
        if(task == "addSubscriber") {
            if(form.name.value== "") {
                alert('&lt;?php echo $parameters['namewarning']; ?&gt;');
                form.name.focus();
                return false;
            } else if(form.email.value == "") {
                alert('&lt;?php echo $parameters['emailwarning']; ?&gt;');
                form.email.focus();
                return false
            } else if(( form.email.value.search("@") == -1) || ( form.email.value.search("[.*]" ) == -1 )) {
                alert('&lt;?php echo $parameters['emailwarning']; ?&gt;');
                form.email.focus();
                return false;
            }
            &lt;?php if($parameters['showterm']) { ?&gt;
            else if(form.terms_condition_ch.checked == false) {
              alert ('&lt;?php echo $parameters['terms_cond_warn']; ?&gt;');
            }
            &lt;?php
        }    
        ?&gt;
        else {
            form.task.value = "addSubscriber";
            form.submit();
        }
    } else if(task == "removeSubscriberByEmail") {
        if(form.email.value == "") {
            alert('&lt;?php echo $parameters['emailwarning']; ?&gt;');
        } else if(( form.email.value.search("@") == -1) || ( form.email.value.search("[.*]" ) == -1 )) {
            alert('&lt;?php echo $parameters['emailwarning']; ?&gt;');
        } else {
            form.task.value = "removeSubscriberByEmail";
            form.submit();
        }
    }
}
&lt;/script&gt;
&lt;table&gt;
    &lt;tr&gt;&lt;td class="regular12 mt20"&gt;Name&lt;/td&gt;&lt;td&gt;&lt;input name="name" id="name" type="text" class="home-tbo" /&gt;&lt;/td&gt;&lt;/tr&gt;
    &lt;tr&gt;&lt;td class="regular12 mt20"&gt;Email&lt;/td&gt;&lt;td&gt;&lt;input name="email" id="email" type="text" class="home-tbo" /&gt;&lt;/td&gt;&lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;&amp;nbsp;&lt;/td&gt;
        &lt;td&gt;&lt;input class="button" type="image" id="addSubscriber" name="addSubscriber" src="&lt;?php echo $baseurl; ?&gt;templates/mysite/images/submit-but.jpg" onclick="return formsubmit('addSubscriber');"/&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;input type="hidden" name="option" value="com_ccnewsletter" /&gt;
    &lt;!--&lt;input type="hidden" name="task" value="addSubscriber" /&gt;--&gt;
    &lt;input type="hidden" name="task" value="" /&gt;
&lt;/table&gt;

&lt;div class="regular12 mt6 pdl16"&gt;&lt;strong&gt;Sign up&lt;/strong&gt; for the following ESL resources and guides: &lt;a href="starters-guide"&gt;starters guide&lt;/a&gt;, &lt;a href="esl-teacher-training-ebook"&gt;ebook&lt;/a&gt; and &lt;em&gt;future&lt;/em&gt; developments.&lt;/div&gt;
</code></pre>

<p>I think I tested and replaced all of these with the originals, but here are some changes I made that might affect this:</p>

<ol>
<li>Compressed and deleted unused CSS</li>
<li>Compressed javascript in this module</li>
<li>Compressed site on server</li>
<li>Compressed Mootools</li>
<li>Compressed Caption.JS</li>
<li>Compressed HtmL index.php</li>
<li>Compressed Javascript in the simple flash player module</li>
</ol>

<p>I have tested all of these individually actually by replacing the new with the old, but no luck. Either something I forgot, a combination of two or more things, a missing space or something. I don't know.</p>
