﻿function submitForm(Domain, email)
{
    var sData = "";

    sData += '<div>Loading...</div><div style="display:none" >';
    sData += '<form action="' + Domain + '" method="post" id="SubForm" name="SubForm" class="validate" style="font: normal 100% Arial;font-size: 12px;">';
    sData += '<fieldset style="-moz-border-radius: 4px;border-radius: 4px;-webkit-border-radius: 4px;border: 0px solid #000000;padding-top: 1.5em;margin: .5em 0;background-color: #ffffff;color: #333333;text-align: left;">';
    sData += '<div class="mc-field-group" style="margin: 1.3em 5%;clear: both;overflow: hidden;">';
    sData += '<label for="mce-EMAIL" style="display: block;margin: .3em 0;line-height: 1em;font-weight: bold;">Email Address </label>';
    sData += '<input type="text" value="' + email + '" name="EMAIL" class="required email" id="mce-EMAIL" style="margin-right: 1.5em;padding: .2em .3em;width: 90%;float: left;z-index: 999;">';
    sData += '</div>';
    sData += '<div id="mce-responses" style="float: left;top: -1.4em;padding: 0em .5em 0em .5em;overflow: hidden;width: 90%;margin: 0 5%;clear: both;">';
    sData += '<div class="response" id="mce-error-response" style="display: none;margin: 1em 0;padding: 1em .5em .5em 0;font-weight: bold;float: left;top: -1.5em;z-index: 1;width: 80%;background: #FFEEEE;color: #FF0000;"></div>';
    sData += '<div class="response" id="mce-success-response" style="display: none;margin: 1em 0;padding: 1em .5em .5em 0;font-weight: bold;float: left;top: -1.5em;z-index: 1;width: 80%;background: #;color: #529214;"></div>';
    sData += '</div>';
    sData += '<div><input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="btn" style="clear: both;width: auto;display: block;margin: 1em 0 1em 5%;"></div>';
    sData += '</fieldset>';
    sData += '<a href="#" id="mc_embed_close" class="mc_embed_close" style="display: none;">Close</a>';
    sData += '</form>';
    sData += "<script type='text/javascript'>";
    sData += "document.SubForm.submit();</sc" + "ript>";
    sData += '</div';

    OpenWindow = window.open("", "newwin", 'width=625,height=600');
    OpenWindow.document.write(sData);
    OpenWindow.document.close()

    return false;
}
