var action = "";
if (window.XMLHttpRequest || window.ActiveXObject) {
    action = "http://www.freewebsubmission.com/cgi-bin/auto-submit-async.cgi";
}
else {
    action = "http://www.freewebsubmission.com/cgi-bin/auto-submit.cgi";
}
var form = '<div style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; border-top: #4974B9 thick solid; border-bottom: #4974B9 thick solid; background-color: #E8E8E8; color: #000000; width: 250px;">    <div style="text-align: center; padding-bottom: 10px;"><b>Submit your site to<br><a href="http://www.freewebsubmission.com/autosubmitter-information.html" onclick="window.open(\'http://www.freewebsubmission.com/autosubmitter-information.html\'); return false;" style="color: #4974B9">20+ search engines</a></b></div>    <form method="post" action="%ACTION%" style="margin: 0px;">        <input type="hidden" name="fws-code" value="46219c9e90d09f966ecd329a3908b6bc">    <table width="250" style="font-size: 11px;">        <tr><td></td><td></td><td></td></tr>        <tr>            <td width="1%" align="right"><label for="url">URL:</label></td>            <td colspan="2"><input type="text" id="url" name="url" value="http://" size="30" maxlength="255" style="width: 100%"></td>        </tr>        <tr>            <td width="1%" align="right"><label for="email">Email:</label></td>            <td colspan="2"><input type="text" id="email" name="email" value="" size="30" maxlength="255" style="width: 100%"></td>        </tr>        <tr>            <td valign="middle" colspan="2">I agree to the <a href="http://www.freewebsubmission.com/terms.html" onclick="window.open(\'http://www.freewebsubmission.com/terms.html\', \'Terms\', \'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,width=500,height=425\');return false;" style="color: #4974B9">terms</a>: <input type="checkbox" id="Agreed to Terms" name="Agreed to Terms" value="Yes"></td>            <td width="1%"><input type="submit" value="Submit"></td>        </tr>    </table>    </form>    <div style="padding: 5px 2px;">Powered by <a href="http://www.freewebsubmission.com" onclick="window.open(\'http://www.freewebsubmission.com\'); return false;" style="color: #4974B9">FreeWebSubmission.com</a></div></div>';
form = form.replace(/%ACTION%/, action);
document.writeln(form);
