
function formSubmition() {
	var sel = document.getElementById('menu_F').selectbox.value;
	window.location.href= sel;
}

function formvalue(){
	var curpage = window.location.href;
    if (curpage.indexOf('javascript:stock_quote()')>=0) 
    document.getElementById('menu_F').selectbox.selectedIndex = 0;
    else if (curpage.indexOf('javascript:menu_Go()')>=0);
    document.getElementById('menu_F').selectbox.selectedIndex = 1;
}

function stock_quote() {
  var stockcheck = /\D+/;

  var T1 = document.getElementById('menu_F').T1.value;
  document.getElementById('menu_F').T1.value = "";
  var stocklen = T1.length;
  
  if (document.getElementById('menu_F').type) {
	  var aaurl = document.getElementById('menu_F').type.value;
  } else {
	  var aaurl;
	if (mstrLang == "e"){
	  aaurl = "http://www.aastocks.com/pkages/web/fubon/eng/stock/quote.asp";
	}else{
	  aaurl = "http://www.aastocks.com/pkages/web/fubon/chi/stock/quote.asp";
	}
  }

  document.getElementById ("contentframe").src=aaurl + '?symbol=' + T1;
}


function mtdCreateLeftIndex(){
	var html="";

if (mstrLang == "e"){
if (mstrSection == "hkmarket_se"){

html +="<script language='javascript' src='../js/menuSet.js'></script>";
html +="<script language='javascript' src='../js/mIncludeFiles.js'></script>";
html +="<table width='192' border='0' cellpadding='0' cellspacing='0'>";
html +="<tr>";
html +="<td height='26' colspan='3' valign='top' background='../image/boxheader_hkquote_e.gif'>&nbsp;</td>";
html +="</tr>";
html +="<tr>";
html +="<td valign='top' background='../image/box_left.gif'>&nbsp;</td>";
html +="<td style='padding:8px 0px 0px 0px'><table width='100%' border='0' cellpadding='0' cellspacing='0'>";
html +="<tr>";
html +="<form name='menu_F' id='menu_F' method='post' action='javascript:formSubmition()'><td width='100%' colspan='2' valign='top' style='padding:4px 0px 4px 0px'>";
html +="<table border='0' width='100%'  cellpadding='1' cellspacing='1'>";
html +="<tr>";
html +="<td valign='top' colspan='3' width='150px'>Enter Stock Code";  
html +="</td>";
html +="</tr>"
html +="<tr>"
html +="<td valign='top'><input type='text' name='T1' style='width:40px; font-size:11px;' /></td>";
html +="<td valign='top' style='padding-top:2px'><select name='selectbox' style='font-size:8pt; background:#FFFFFF ; width:65px '>";
html +="<option selected='selected' value='javascript:stock_quote()'>HK</option>",
html +="<option value='javascript:menu_Go()'>Taiwan</option>";
html +="</select>";
html +="</td>";
html +="<td valign='top'><input type='image' src='../image/go_01_e.gif' /></td>";
html +="</tr>";
html +="</table>";
html +="</tr>";
html +="</table></td>";
html +="<td valign='top' background='../image/box_right.gif'>&nbsp;</td>";
html +="</tr>";
html +="<tr>";
html +="<td valign='top'><img src='../image/box_leftcorner_e.gif'  width='10' height='10' border='0' /></td>";
html +="<td width='278' background='../image/btn_bottom.gif'>&nbsp;</td>";
html +="<td valign='top'><img src='../image/box_rightcorner_e.gif'  width='10'  height='10' border='0'  /></td>";
html +="</tr>";
html +="</table>";
html +="<br />";

}

else if (mstrSection == "twmarket_se"){
html +="<script language='javascript' src='../js/menuSet.js'></script>";
html +="<script language='javascript' src='../js/mIncludeFiles.js'></script>";
html +="<table width='192' border='0' cellpadding='0' cellspacing='0'>";
html +="<tr>";
html +="<td height='26' colspan='3' valign='top' background='../image/boxheader_hkquote_e.gif'>&nbsp;</td>";
html +="</tr>";
html +="<tr>";
html +="<td valign='top' background='../image/box_left.gif'>&nbsp;</td>";
html +="<td style='padding:8px 0px 0px 0px'><table width='100%' border='0' cellpadding='0' cellspacing='0'>";
html +="<tr>";
html +="<form name='menu_F' id='menu_F' method='post' action='javascript:formSubmition()'><td width='100%' colspan='2' valign='top' style='padding:4px 0px 4px 0px'>";
html +="<table border='0' width='100%'  cellpadding='1' cellspacing='1'>";
html +="<tr>";
html +="<td valign='top' colspan='3'>Enter Stock Code";
html +="</td>";
html +="</tr>"
html +="<tr>"
html +="<td valign='top'><input type='text' name='T1' style='width:40px; font-size:11px;' /></td>";
html +="<td valign='top' style='padding-top:2px'><select name='selectbox' style='font-size:8pt; background:#FFFFFF ; width:65px '>";
html +="<option selected='selected' value='javascript:stock_quote()'>HK</option>",
html +="<option value='javascript:menu_Go()'>Taiwan</option>";
html +="</select>";
html +="</td>";
html +="<td valign='top'><input type='image' src='../image/go_01_e.gif' /></td>";
html +="</tr>";
html +="</table>";
html +="</tr>";
html +="</table></td>";
html +="<td valign='top' background='../image/box_right.gif'>&nbsp;</td>";
html +="</tr>";
html +="<tr>";
html +="<td valign='top'><img src='../image/box_leftcorner_e.gif'  width='10'  height='10' border='0' /></td>";
html +="<td width='278' background='../image/btn_bottom.gif'>&nbsp;</td>";
html +="<td valign='top'><img src='../image/box_rightcorner_e.gif'  width='10' height='10' border='0'  /></td>";
html +="</tr>";
html +="</table>";
html +="<br />";
	
}

else if (mstrSection == "contact_se" ||  "services_se"){
html +="<table width='192' border='0' cellpadding='0' cellspacing='0'>";
html +="<tr>";
html +="<td height='26' colspan='3' valign='top' background='../image/boxheader_hotline_e.gif'>&nbsp;</td>";
html +="</tr>";
html +="<tr>";
html +="<td valign='top' background='../image/box_left.gif'>&nbsp;</td>";
html +="<td style='padding:8px 0px 0px 0px'>";
html +="<table width='100%' border='0' cellpadding='0' cellspacing='0'>";
html +="<tr>";
html +="<td valign='top' style='padding:2px 2px 0px 0px ; font-size:95%' colspan='3'>For enquiry, please contact our Securities Service Hotline or visit <a href='../contactus/contact_branch_e.html' class='blue'>Fubon Service Outlets</a> during office hours*.  <br><br></td>";
html +="</tr>";
html +="<tr>";
html +="<td valign='top' style='padding:2px 2px 0px 0px ; font-size:95%'><b>Hong Kong</b></td>";
html +="<td valign='top' align='left' style='padding:2px 0px 0px 0px'><img src='../image/ico_tel_s.gif' border='0'  /></td>";
html +="<td valign='top' style='padding:2px 0px 0px 0px'><span style='font-size:95%'  width='120px'>(852) 2842 6262</span></td>";
html +="</tr>";
html +="<tr>";
html +="<td valign='top' style='padding:2px 2px 0px 0px; font-size:95%' width='80px' style><b>Taiwan </b><br>(Toll Free)</td>";
html +="<td valign='top' align='left' width='13px' style='padding:2px 0px 0px 0px'><img src='../image/ico_tel_s.gif' border='0'  /></td>";
html +="<td valign='top' width='150px' style='padding:2px 0px 0px 0px'><span style='font-size:95%'>0080 1 855 978</span></td>";
html +="</tr>";
html +="</table>";
html +="</br>";
html +="<span style='font-size:95%'><table><tr><td valign='top'>*</td><td valign='top'>Office hours: Monday to Friday, 8:30am - 5:30pm (Except Public Holidays)</td></tr></table>";
html +="</td>";
html +="<td valign='top' background='../image/box_right.gif'>&nbsp;</td>";
html +="</tr>";
html +="<tr>";
html +="<td valign='top'><img src='../image/box_leftcorner_e.gif' width='10' height='10' border='0' /></td>";
html +="<td width='278' background='../image/btn_bottom.gif'>&nbsp;</td>";
html +="<td valign='top'><img src='../image/box_rightcorner_e.gif' width='10' height='10' border='0'  /></td>";
html +="</tr>";
html +="</table>";
html +="<br/>";
html +="<table width='192' border='0' cellpadding='0' cellspacing='0'>";
html +="<tr>";
html +="<td width='192' height='26' valign='top' background='../image/boxheader_promo2_e.gif'>&nbsp;</td>";
html +="</tr>";
html +="<tr>";
html +="<td valign='top'><table width='100%' border='0' cellpadding='0' cellspacing='0'>";
html +="<tr>";
html +="<td width='100%' colspan='2'><a href='../services/services_promotion_e.html'><img src='../image/promtion_banner2_e.gif' width='192' height='81' border='0' /></a><br /></td>";
html +="</tr>";
html +="</table></td>";
html +="</tr>";
html +="</table>";
html +="<br />";
}

else if (mstrSection == "other"){
html +="<table width='192' border='0' cellpadding='0' cellspacing='0'>";
html +="<tr>";
html +="<td height='26' colspan='3' valign='top' background='../image/boxheader_hotline_e.gif'>&nbsp;</td>";
html +="</tr>";
html +="<tr>";
html +="<td valign='top' background='../image/box_left.gif'>&nbsp;</td>";
html +="<td style='padding:8px 0px 0px 0px'>";
html +="<table width='100%' border='0' cellpadding='0' cellspacing='0'>";
html +="<tr>";
html +="<td valign='top' style='padding:2px 2px 0px 0px ; font-size:95%' colspan='3'>For enquiry, please contact our Securities Service Hotline or visit <a href='../contactus/contact_branch_e.html' class='blue'>Fubon Service Outlets</a> during office hours*.  <br><br></td>";
html +="</tr>";
html +="<tr>";
html +="<td valign='top' style='padding:2px 2px 0px 0px ; font-size:95%'><b>Hong Kong</b></td>";
html +="<td valign='top' align='left' style='padding:2px 0px 0px 0px'><img src='../image/ico_tel_s.gif' border='0'  /></td>";
html +="<td valign='top' style='padding:2px 0px 0px 0px'><span style='font-size:95%'  width='120px'>(852) 2842 6262</span></td>";
html +="</tr>";
html +="<tr>";
html +="<td valign='top' style='padding:2px 2px 0px 0px; font-size:95%' width='80px' style><b>Taiwan </b><br>(Toll Free)</td>";
html +="<td valign='top' align='left' width='13px' style='padding:2px 0px 0px 0px'><img src='../image/ico_tel_s.gif' border='0'  /></td>";
html +="<td valign='top' width='150px' style='padding:2px 0px 0px 0px'><span style='font-size:95%'>0080 1 855 978</span></td>";
html +="</tr>";
html +="</table>";
html +="</br>";
html +="<span style='font-size:95%'><table><tr><td valign='top'>*</td><td valign='top'>Office hours: Monday to Friday, 8:30am - 5:30pm (Except Public Holidays)</td></tr></table>";
html +="</td>";
html +="<td valign='top' background='../image/box_right.gif'>&nbsp;</td>";
html +="</tr>";
html +="<tr>";
html +="<td valign='top'><img src='../image/box_leftcorner_e.gif' width='10' height='10' border='0' /></td>";
html +="<td width='278' background='../image/btn_bottom.gif'>&nbsp;</td>";
html +="<td valign='top'><img src='../image/box_rightcorner_e.gif' width='10' height='10' border='0'  /></td>";
html +="</tr>";
html +="</table>";
html +="<br/>";
html +="<table width='192' border='0' cellpadding='0' cellspacing='0'>";
html +="<tr>";
html +="<td width='192' height='26' valign='top' background='../image/boxheader_promo2_e.gif'>&nbsp;</td>";
html +="</tr>";
html +="<tr>";
html +="<td valign='top'><table width='100%' border='0' cellpadding='0' cellspacing='0'>";
html +="<tr>";
html +="<td width='100%' colspan='2'><a href='../services/services_promotion_e.html'><img src='../image/promtion_banner2_e.gif' width='192' height='81' border='0' /></a><br /></td>";
html +="</tr>";
html +="</table></td>";
html +="</tr>";
html +="</table>";
html +="<br />";
//html +="<br />";
//html +="<table width='192' border='0' cellpadding='0' cellspacing='0'>";
//html +="<tr>";
//html +="<td height='35' colspan='3' valign='top' background='image/boxheader_globalquote.gif'>&nbsp;</td>";
//html +="</tr>";
//html +="<tr>";
//html +="<td valign='top' background='image/box_left.gif'>&nbsp;</td>";
//html +="<td style='padding:8px 0px 0px 0px'><table width='100%' border='0' cellpadding='0' cellspacing='0'>";
//html +="<tr>";
//html +="<td width='100%' colspan='2' valign='top' style='padding:4px 0px 4px 0px'>";
//html +="<applet code='ZAA1.class' codebase='http://sod.fbs.com.tw/z/za/zaa/' name='Applet3' width='165' height='400' hspace='0' vspace='0' archive='ZAA1.jar' id='Applet' border='0' viewastext='VIEWASTEXT'>";
//html +="<param name='TXT' value='/Z/ZA/ZAA/CZAA1_3.DJBCD' />";
//html +="<param name='SHORT' value='Y' />";
//html +="</applet></td>";
//html +="</tr>";
//html +="</table></td>";
//html +="<td valign='top' background='image/box_right.gif'>&nbsp;</td>";
//html +="</tr>";
//html +="<tr>";
//html +="<td valign='top'><img src='image/box_leftcorner.gif' height='13' border='0' /></td>";
//html +="<td width='278' background='image/btn_bottom.gif'>&nbsp;</td>";
//html +="<td valign='top'><img src='image/box_rightcorner.gif'  height='13' border='0'/></td>";
//html +="</tr>";
//html +="</table>";
}
    }
else{
}

	document.write(html);
}

mtdCreateLeftIndex();
