function submitemail (f) {
	a = f.email.value;
	f.email.value = "";
	if (isValidEmail(a)) {
	        hw = open('https://sg.warrants.com/singapore/en/saveemail.cgi?email=' + a, 'email', 'resizable=yes,scrollbars=yes,width=600,height=250');
        	if (hw != null){if (hw.opener == null) hw.opener = self;}
	        if (hw.focus) hw.focus();
	} else {
		alert("Please Input valid email address");
	}
}
function isValidEmail(str) {
	if ((str.indexOf(".") > 2) && (str.indexOf("@") > 0)) {
		return true;
	} else {
		return false;
	}
}

document.write("            <table border='0' cellspacing='0' cellpadding='0'>");
document.write("              <tr>");
document.write("                <td valign='top'>");
document.write("                  <object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' height='154' width='216'>");
document.write("                    <param name=movie value='/singapore/home4/banners/sgbanner2_e.swf'  width='216' height='154'>");
document.write("                    <param name=quality value=high>");
document.write("                    <embed src='/singapore/home4/banners/sgbanner2_e.swf' quality=high type='application/x-shockwave-flash' height='154' width='216'>");
document.write("                    </embed> ");
document.write("                  </object>");
document.write("                  <img src='/singapore/home4/image/dummy.gif' width=10 height=10>");
document.write("                  <table width='216' border='0' cellspacing='0' cellpadding='1'>");
document.write("                    <tr> ");
document.write("                      <td bgcolor='#231F20'> ");
document.write("                        <table width='100%' border='0' cellspacing='0' cellpadding='1'>");
document.write("                          <tr> ");
document.write("                            <td bgcolor='#FF0000'> <font size='2'><b><img src='/singapore/home4/image/table_title_data_chart.gif' width='203' height='17'></b></font></td>");
document.write("                          </tr>");
document.write("                          <tr> ");
document.write("                            <td bgcolor='#FFFFFF'> ");
document.write("                              <table border='0' cellspacing='0' cellpadding='0' align='center'>");
document.write("                                <tr> ");
document.write("                                  <td rowspan='3' width='63'><img src='/singapore/home4/image/home_chart_decor.gif' width='62' height='67'></td>");
document.write("                                  <td width=132><a href=\"javascript:js_ProcessData('http://sg.warrants.com/singapore/en/sgdata/indicator.cgi')\"><img src='/singapore/home4/image/data_bttn1a.gif' border=0 name=data1></a></td>");
document.write("                                </tr>");
document.write("                                <tr> ");
document.write("                                  <td width=132><a href=\"javascript:js_ProcessData('http://sg.warrants.com/singapore/en/sgdata/chart.cgi')\"><img src='/singapore/home4/image/data_bttn2a.gif' border=0 name=data2></a></td>");
document.write("                                </tr>");
document.write("                                <tr> ");
document.write("                                  <td width=132><a href=\"javascript:js_ProcessData('http://sg.warrants.com/singapore/en/sgdata/calculator.cgi')\"><img src='/singapore/home4/image/data_bttn3a.gif' border=0 name=data3></a></td>");
document.write("                                </tr>");
document.write("                              </table>");
document.write("                            </td>");
document.write("                          </tr>");
document.write("                        </table>");
document.write("                      </td>");
document.write("                    </tr>");
document.write("                  </table><img src='/singapore/home4/image/dummy.gif' width='10' height='10'><table width='216' border='0' cellspacing='0' cellpadding='1'>");
document.write("                    <tr> ");
document.write("                      <td bgcolor='#231F20'> ");
document.write("                        <table width='100%' border='0' cellspacing='0' cellpadding='1'>");
document.write("                          <tr> ");
document.write("                            <td bgcolor='#FF0000'> <font size='2'><b><img src='/singapore/home4/image/table_title_email_update.gif' width='203' height='17'></b></font></td>");
document.write("                          </tr>");
document.write("                          <tr> ");
document.write("                            <td bgcolor='#FFFFFF' align='center'>");
document.write("                              <font face='Verdana' size='1'> </font>");
document.write("                              <table width='180' border='0' cellspacing='0' cellpadding='2'>");
document.write("                                <tr>");
document.write("                                  <td colspan='2'><font face='Verdana' size='1'>Please ");
document.write("                                    enter your email to receive SG warrants update:</font> ");
document.write("                                  </td>");
document.write("                                </tr>");
document.write("                                <form name=e1 action='javascript:submitemail(document.e1)'><tr> ");
document.write("                                  <td> ");
document.write("                                    <input type='text' name='email' size='12'>");
document.write("                                  </td>");
document.write("                                  <td><a href=\"javascript:submitemail(document.e1)\" border=0><img src='/singapore/home4/image/button_submit.gif' width='67' height='22'></a></td>");
document.write("                                </tr></form>");
document.write("                              </table>");
document.write("                            </td>");
document.write("                          </tr>");
document.write("                        </table>");
document.write("                      </td>");
document.write("                    </tr>");
document.write("                  </table><img src='/singapore/home4/image/dummy.gif' width='10' height='10'><table width='216' border='0' cellspacing='0' cellpadding='1'>");
document.write("                    <tr> ");
document.write("                      <td bgcolor='#231F20'> ");
document.write("                        <table width='100%' border='0' cellspacing='0' cellpadding='0'>");
document.write("                          <tr> ");
document.write("                            <td bgcolor='#FF0000'> <font size='2'><b><img src='/singapore/home4/image/table_title_terms.gif' width='203' height='17'></b></font></td>");
document.write("                          </tr>");
document.write("                          <tr> ");
document.write("                            <td bgcolor='#FFFFFF'>");
document.write("                              <a href='http://sg.warrants.com/singapore/en/terms/terms.cgi' onMouseOver=\"MM_swapImage('term1','','/singapore/home4/image/side_terms_menu1b.gif',1)\" onMouseOut=\"MM_swapImgRestore()\"><img src='/singapore/home4/image/side_terms_menu1a.gif' width='214' height='33' border='0' name=term1></a><br>");
document.write("                              <img src='/home4/singapore/home4/image/dummy_white.gif' width='214' height='3'><br>");
document.write("                              <a href='http://sg.warrants.com/singapore/en/terms/listing.cgi' onMouseOver=\"MM_swapImage('term2','','/singapore/home4/image/side_terms_menu2b.gif',1)\" onMouseOut=\"MM_swapImgRestore()\"><img src='/singapore/home4/image/side_terms_menu2a.gif' width='214' height='33' border='0' name=term2></a><br>");
document.write("                              <img src='/home4/singapore/home4/image/dummy_white.gif' width='214' height='3'><br>");
document.write("                              <a href='http://sg.warrants.com/singapore/en/terms/announcement.cgi' onMouseOver=\"MM_swapImage('term3','','/singapore/home4/image/side_terms_menu3b.gif',1)\" onMouseOut=\"MM_swapImgRestore()\"><img src='/singapore/home4/image/side_terms_menu3a.gif' width='214' height='33' border='0' name=term3></a></td>");
document.write("                          </tr>");
document.write("                        </table>");
document.write("                      </td>");
document.write("                    </tr>");
document.write("                  </table>");
document.write("                    <img src='/singapore/home4/image/dummy.gif' width=10 height=10>");
//document.write("                  <object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0' height='540' width='216'>");
//document.write("                    <param name=movie value='/singapore/home4/flash/temp.swf'  width='216' height='556'>");
//document.write("                    <param name=quality value=high>");
//document.write("                    <embed src='/singapore/home4/flash/temp.swf' quality=high pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' height='540' width='216'>");
//document.write("                    </embed> ");
//document.write("                  </object>");
document.write("                </td>");
document.write("              </tr>");
document.write("            </table>");
