<!--
function createSelection() {
	var i;
	var item=new Array(
		{text:'Select an investment'},
		{text:'======================'},
		{text:'Securities Services', link:'/hsb/eng/per/invs/hsss/home/index.html'},
		{text:'- Securities Express', link:'/hsb/eng/per/invs/com/redir-efinet.html?p=pop&s=width=800,height=500,top=0,left=0,scrollbars=1,status=1,resizable=1&n=secWin'},
		{text:'- Current Promotion Offers', link:'/hsb/eng/per/invs/hsss/cpo/index.html'},
		{text:'- Local Securities Services', link:'/hsb/eng/per/invs/hsss/lss/home/index.html'},
		{text:'- Global Securities Services', link:'/hsb/eng/per/invs/hsss/gss/index.html'},
//		{text:'- Real-time Stock Alert Services', link:'/hsb/eng/per/invs/hsss/ress/index.html'},
		{text:'- Securities Service Charges', link:'/hsb/eng/per/invs/pdf/secu_char.pdf?p=pop&s=width=600,height=500,top=0,left=0,scrollbars=1,status=1,resizable=1'},
		{text:'- Share Margin Services', link:'/hsb/eng/per/invs/hsss/sms/home/index.html'},
		{text:'- CBBC Supermarket', link:'http://www.hangseng.com/einvc/eng/getpage.asp?app=EinvcCBBCHome?p=pop&s=toolbar=yes,scrollbars=yes,resizable=yes,top=0,left=0,width=780,height=500&n=eINVCWeb'},
		{text:'- Warrant Supermarket', link:'/einvc/eng/getpage.asp?app=EinvcWarrantHome&frhase=eInvsHome?p=pop&s=toolbar=yes,scrollbars=yes,resizable=yes,top=0,left=0,width=780,height=500&n=eINVCWeb'},
		{text:'- IPO Stocks Services', link:'/eipo/eng/home/index.html'},
		{text:'- Monthly Investment Plan for', link:'/hsb/eng/per/invs/hsss/hsmip/home/index.html'},
		{text:'&nbsp;&nbsp;Stocks', link:'/hsb/eng/per/invs/hsss/hsmip/home/index.html'},		
		{text:'- Instant Order Confirmation Service', link:'/hsb/eng/per/invs/hsss/iocs/index.html'},
		{text:'- Market Express', link:'/e_investment/indexes.asp'},
		//{text:'- News and Market Event', link:'/hsb/eng/per/invs/com/redir_efinet_nme.html?p=pop&s=width=800,height=500,top=0,left=0,scrollbars=1,status=1,resizable=1&n=secWin'},
		//{text:'- Indexes and Top Movers', link:'/hsb/eng/per/invs/com/redir_efinet_itm.html?p=pop&s=width=800,height=500,top=0,left=0,scrollbars=1,status=1,resizable=1&n=secWin'},
//		{text:'- Market Focus', link:'/einvc/eng/getpage.asp?app=eINVCThemStock&frhase=eInvsHome?p=pop&s=toolbar=yes,scrollbars=yes,resizable=yes,top=0,left=0,width=780,height=500&n=eINVCWeb'},
		{text:'- Exchange Traded Funds (ETF)', link:'/hsb/eng/per/invs/hsss/etf2/home/main.html?p=pop&s=width=700,height=510,top=5,left=5,scrollbars=1,resizable=1'},
		{text:'- "e-InvestAdvice" Service', link:'/hsb/eng/pmo/grp01/p08/index.html'},
//		{text:'- ETF Websites', link:'/hsb/eng/per/invs/hsss/etf2/home/main.html?p=pop&s=width=700,height=510,top=5,left=5,scrollbars=1,resizable=1'},
//		{text:'- ETF Quote List', link:'/hsb/eng/user/sec/etf/main01.html?p=pop&s=width=715,height=550,top=5,left=5,toolbar=0,menubar=0,location=0,scrollbars=1,status=0,resizable=1'},		
		{text:'&nbsp;'},

		{text:'Investment Fund Services', link:'/invs/eng/ifs/index.html'},
		{text:'- Hang Seng Fund SuperMart', link:'/einvc/eng/disclm.asp?app=eINVCFundFrontPage?p=pop&s=width=700,height=550,top=0,left=0,scrollbars=1,toolbar=1,resizable=1&n=eINVCWeb'},
		//{text:'- Hang Seng Fund SuperMart', link:'#'},
		//{text:'&nbsp;&nbsp;e-Guide', link:'#'},
		//{text:'- Investment Fund Services', link:'#'},
		//{text:'&nbsp;&nbsp;Overview', link:'#'},		
		{text:'- Monthly Investment Plan for', link:'/einvc/eng/disclm.asp?app=eINVCFundMIPFrontPage?p=pop&s=width=700,height=550,top=0,left=0,scrollbars=1,toolbar=1,resizable=1&n=eINVCWeb'},
		{text:'&nbsp;&nbsp;Funds', link:'/einvc/eng/disclm.asp?app=eINVCFundMIPFrontPage?p=pop&s=width=700,height=550,top=0,left=0,scrollbars=1,toolbar=1,resizable=1&n=eINVCWeb'},
		{text:'- Hang Seng Investment Series', link:'/hsb/eng/per/invs/ifs/hsis/home/index.html'},
		{text:'- Hang Seng Islamic Investment Series', link:'/hsb/eng/per/invs/ifs/hsiis/index.html'},
		{text:'- "e-InvestAdvice" Service', link:'/hsb/eng/pmo/grp01/p08/index.html'},
		{text:'&nbsp;'},
		
		{text:'Forex & Gold Margin Services', link:'/hsb/eng/per/invs/rmt/home/index.html'},
		{text:'- Current Promotion Offers', link:'/hsb/eng/per/invs/rmt/cpo/index.html'},
		{text:'- FlexiForex Trading Services', link:'/hsb/eng/per/invs/rmt/flexi/index.html'},
		{text:'- FlexiGold Trading Services', link:'/hsb/eng/per/invs/rmt/fgold/index.html'},
		{text:'- ProForex Trading Services', link:'/hsb/eng/per/invs/rmt/pro/index.html'},
		{text:'- ProGold Trading Services', link:'/hsb/eng/per/invs/rmt/pgold/index.html'},
		{text:'- Online Forex and Gold', link:'/hsb/eng/per/invs/rmt/onl/index.html'},
		{text:'&nbsp;&nbsp;Margin Trading', link:'/hsb/eng/per/invs/rmt/onl/index.html'},
		{text:'- Forex Margin Trading Return', link:'http://eba.hangseng.com/eLoanCentre/FMTReturnCalculator.jsp?lang=enu '},
		{text:'&nbsp;&nbsp;Calculator', link:'http://eba.hangseng.com/eLoanCentre/FMTReturnCalculator.jsp?lang=enu '},		
		{text:'&nbsp;'},
		
		{text:'Structured Products', link:'/hsb/eng/per/invs/eli/home/index.html'},
		{text:'- Current Promotion Offers', link:'/hsb/eng/per/invs/eli/cpo/main.050304.html'},
		{text:'- General Overview of Bull Equity', link:'/hsb/eng/per/invs/eli/ovw/home/disclaimer.asp?toURL=/hsb/eng/per/invs/eli/ovw/home/index.html'},		
		{text:'&nbsp;&nbsp;Linked Investment (Bull ELI)', link:'/hsb/eng/per/invs/eli/ovw/home/disclaimer.asp?toURL=/hsb/eng/per/invs/eli/ovw/home/index.html'},		
		{text:'- Bull ELI - Offered by Hang Seng', link:'/hsb/eng/per/invs/eli/ovw/heli/disclaimer.asp?toURL=/hsb/eng/per/invs/eli/ovw/heli/index.html'},		
		{text:'&nbsp;&nbsp;Bank Limited', link:'/hsb/eng/per/invs/eli/ovw/heli/disclaimer.asp?toURL=/hsb/eng/per/invs/eli/ovw/heli/index.html'},		
		{text:'- Bull ELI - Offered by Macquarie', link:'/hsb/eng/per/invs/eli/ovw/meli/disclaimer.asp?toURL=/hsb/eng/per/invs/eli/ovw/meli/index.html'},		
		{text:'&nbsp;&nbsp;Structured Products Asia Limited', link:'/hsb/eng/per/invs/eli/ovw/meli/disclaimer.asp?toURL=/hsb/eng/per/invs/eli/ovw/meli/index.html'},		
		{text:'- Other Structured Products', link:'/hsb/eng/per/invs/eli/ssp/index.html'},
		{text:'&nbsp;'},
		
		{text:'Capital Protected Investment Deposit', link:'/hsb/eng/per/invs/eli/cpihome/index.html'},
		{text:'- Currency-Linked Capital Protected', link:'/hsb/eng/per/invs/eli/cpi/index.html'},
		{text:'&nbsp;&nbsp;Investment Deposit', link:'/hsb/eng/per/invs/eli/cpi/index.html'},
		{text:'- Gold-Linked Capital Protected', link:'/hsb/eng/per/invs/eli/glc/main.html'},				
		{text:'&nbsp;&nbsp;Investment Deposit', link:'/hsb/eng/per/invs/eli/glc/main.html'},				
		{text:'&nbsp;'},
		
		{text:'MaxiInterest Investment Deposit', link:'/hsb/eng/per/invs/hsmipd/index.html'},
		{text:'&nbsp;'},
		
		{text:'Certificates of Deposit Services', link:'/hsb/eng/per/invs/cd/home/index.html'},
		{text:'- Certificates of Deposit Overview', link:'/hsb/eng/per/invs/cd/index.html'},
		{text:'- IPO CD Services', link:'/eipocd/eng/home/index.html'},	
		//{text:'&nbsp;'},
		//{text:'Hang Seng A Share Investment', link:'/hsb/eng/per/invs/qfii/sha/home/index.html'},
		//{text:'Services', link:'/hsb/eng/per/invs/qfii/sha/home/index.html'}
		{text:'&nbsp;'},						
		
		{text:'Treasury Services', link:'/hsb/eng/per/invs/try/home/index.html'},
		{text:'- Foreign Exchange Services', link:'/hsb/eng/per/invs/try/fxs/index01.htm'},
		{text:'- Interest Rate Services', link:'/hsb/eng/per/invs/try/irs/index02.htm'},
		{text:'- Equity Services', link:'/hsb/eng/per/invs/try/enqu/index03a.htm'},
		{text:'- Market Commentaries', link:'/hsb/eng/per/invs/try/mc/index04.htm'},
		{text:'&nbsp;'},		
		
		{text:'Bond Investment Services', link:'/hsb/eng/per/invs/bis/home/index.html'},
		{text:'- Bond Overview', link:'/hsb/eng/per/invs/bis/index.html'},
		{text:'- IPO Bond Services', link:'/bonds/eng/home/index.html'},
		{text:'&nbsp;'},
		
		//{text:'Option Investment Service', link:'/hsb/eng/per/invs/ois/curopt/home/index.html'},
	    //{text:'&nbsp;'},
	  
	  {text:'Forward Contract Services', link:'/hsb/eng/per/invs/rmb/ndf/index.html'},	
	  {text:'&nbsp;'},
	  {text:'Opportunity to Invest in Hong Kong', link:'/e_investment/invest_in_hk.html'}	
	);

	var html='';

	html+='<table width="171" border="0" cellspacing="0" cellpadding="0"><form><tr>';
	html+='<td width="163" align=right><font class="formsmall"><select class="formsmall" onchange="gotoURL(this.options[this.selectedIndex].value)">';
	for (i=0;i<item.length;i++)
		html+='<option value="'+(item[i].link?item[i].link:'')+'">'+item[i].text+'</option>';
	html+='</select></font></td>';
	html+='</tr></form></table>';
	
	document.write(html);
}

function gotoURL(x) {
	y=x.indexOf("?p=self");
	if (y>0)
	{
		x=x.substr(0,y)
		self.location.href=x;
	}
	else
	{
		y=x.indexOf("?p=top");
		if (y>0)
		{
			x=x.substr(0,y)
			parent.location.href=x;
		}
		else
		{
			y=x.indexOf("?p=pop");
			if (y>0)
			{
				i=x.indexOf("&s=");
				a=x.substr(i+3);
				d=a.indexOf("&");
				if (d >= 0)
					s=a.substr(0,d);
				else
					s=a;
				j=a.indexOf("&n=");
				if (j >= 0)
					n=a.substr(j+3);
				else
					n='';
				x=x.substr(0,y);
				window.open(x,n,s);
			}
			else
			{
				if (x!='')
					parent.location.href=x;
			}
		}
	}
	return false;
}

function gotoURLbk(x) {
	y=x.indexOf("?self");
	if (y>0)
	{
		x=x.substr(0,y)
		self.location.href=x;
	}
	else if (x!='')
		parent.location.href=x;
	return false;
}

function createOpenAcct() {
	var i;
	var item=new Array(
		{text:'Securities', 		link:'href="https://www.hangseng.com/logon/eng/pib/logon.asp?srvc=ivtde"'},
		{text:'Investment Funds', 	link:'href="https://www.hangseng.com/logon/eng/pib/logon.asp?srvc=utff"'},
		{text:'Forex Margin', 		link:'href="https://www.hangseng.com/logon/eng/pib/logon.asp?srvc=ermtin"'}
	);


	var html='';

	html+='<table width="171" border="0" cellspacing="0" cellpadding="0">';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr>';
	html+='<tr><td colspan="6"><IMG src="/hsb/eng/per/invs/image/r_open.gif" width="171" height="19"></td></tr>';
	html+='<tr><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="5"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="10" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="141" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	for (i=0;i<item.length;i++) {
		html+='<tr valign="top"><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td>';
		html+='<td></td>';
		html+='<td><IMG src="/hsb/eng/per/invs/image/r_arw.gif" width="6" height="9" vspace=3"></td>';
		html+='<td><a ' + item[i].link + ' class="greyc" target="EbankControl" onClick="window.open(\'\',\'EbankControl\',\'width=600,height=400,directories=no,toolbar=no,location=no,resizable=yes,menubar=no,scrollbars=yes,status=yes,screenX=80,screenY=80\')">' + item[i].text + '</a></td>';
		html+='<td></td>';
		html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	}
	html+='<tr valign="top">';
	html+='<td rowspan="2" colspan="2"><IMG src="/hsb/eng/per/invs/image/r_lcon.gif" width="10" height="8"></td>';
	html+='<td colspan="2"><IMG src="/hsb/com/spacer.gif" width="1" height="6"></td>';
	html+='<td rowspan="2" colspan="2"><IMG src="/hsb/eng/per/invs/image/r_rcon.gif" width="10" height="8"></td></tr>';
	html+='<tr><td colspan="2" bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="1" height="2"></td></tr>';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr></table>';

  document.write(html);

}

function createOpenAcctInvs() {
	var i;
//	var item=new Array(
//		{text:'Securities', 		link:'href="/invs/eng/pib/invpiblogon.asp?srvc=sts"'},
//		{text:'Investment Funds', 	link:'href="/invs/eng/pib/invpiblogon.asp?srvc=ifs"'},
//		{text:'Forex Margin', 		link:'href="/invs/eng/pib/invpiblogon.asp?srvc=rmt"'}
//	);
	var item=new Array(
		{text:'Securities', 		link:'href="https://www.hangseng.com/logon/eng/pib/logon.asp?srvc=ivtde"'},
		{text:'Investment Funds', 	link:'href="https://www.hangseng.com/logon/eng/pib/logon.asp?srvc=utff"'},
		{text:'Forex Margin', 		link:'href="https://www.hangseng.com/logon/eng/pib/logon.asp?srvc=ermtin"'}
	);


	var html='';

	html+='<table width="192" border="0" cellspacing="0" cellpadding="0">';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr>';
	html+='<tr><td colspan="6"><IMG src="/invs/eng/home/images/r_open.gif" width="192" height="19"></td></tr>';
	html+='<tr><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="5"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="10" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="162" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	for (i=0;i<item.length;i++) {
		html+='<tr valign="top"><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td>';
		html+='<td></td>';
		html+='<td><IMG src="/invs/eng/home/images/r_arw.gif" width="6" height="9" vspace=3"></td>';
		html+='<td><a ' + item[i].link + ' class="greyc" target="EbankControl" onClick="window.open(\'\',\'EbankControl\',\'width=600,height=400,directories=no,toolbar=no,location=no,resizable=yes,menubar=no,scrollbars=yes,status=yes,screenX=80,screenY=80\')">' + item[i].text + '</a></td>';
		html+='<td></td>';
		html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	}
	html+='<tr valign="top">';
	html+='<td rowspan="2" colspan="2"><IMG src="/invs/eng/home/images/r_lcon.gif" width="10" height="8"></td>';
	html+='<td colspan="2"><IMG src="/hsb/com/spacer.gif" width="1" height="6"></td>';
	html+='<td rowspan="2" colspan="2"><IMG src="/invs/eng/home/images/r_rcon.gif" width="10" height="8"></td></tr>';
	html+='<tr><td colspan="2" bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="1" height="2"></td></tr>';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr></table>';

  document.write(html);

}

function createEMKTNews() {
	var i;
	var item=new Array(
		{text:'Register Now', 		link:'href="https://www.hangseng.com/ecomm/html/eng/index.asp"'},
		{text:'Update Profile', 	link:'href="https://www.hangseng.com/ecomm/html/eng/infoupd.asp"'},
		{text:'Service Details', 		link:'href="/ecomm/html/eng/index.html"'}
	);

	var html='';

	html+='<table width="171" border="0" cellspacing="0" cellpadding="0">';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr>';
	html+='<tr><td colspan="6"><IMG src="/hsb/eng/per/invs/image/r_emnw.gif" width="171" height="19"></td></tr>';
	html+='<tr><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="5"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="10" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="141" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	for (i=0;i<item.length;i++) {
		html+='<tr valign="top"><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td>';
		html+='<td></td>';
		html+='<td><IMG src="/hsb/eng/per/invs/image/r_arw.gif" width="6" height="9" vspace=3"></td>';
		html+='<td><a ' + item[i].link + ' class="greyc" target="_top">' + item[i].text + '</a></td>';
		html+='<td></td>';
		html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	}
	html+='<tr valign="top">';
	html+='<td rowspan="2" colspan="2"><IMG src="/hsb/eng/per/invs/image/r_lcon.gif" width="10" height="8"></td>';
	html+='<td colspan="2"><IMG src="/hsb/com/spacer.gif" width="1" height="6"></td>';
	html+='<td rowspan="2" colspan="2"><IMG src="/hsb/eng/per/invs/image/r_rcon.gif" width="10" height="8"></td></tr>';
	html+='<tr><td colspan="2" bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="1" height="2"></td></tr>';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr></table>';

  document.write(html);

}

function createEMKTNewsInvs() {
	var i;
	var item=new Array(
		{text:'Register Now', 		link:'href="https://www.hangseng.com/ecomm/html/eng/index.asp"'},
		{text:'Update Profile', 	link:'href="https://www.hangseng.com/ecomm/html/eng/infoupd.asp"'},
		{text:'Service Details', 		link:'href="/ecomm/html/eng/index.html"'}
	);

	var html='';

	html+='<table width="192" border="0" cellspacing="0" cellpadding="0">';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr>';
	html+='<tr><td colspan="6"><IMG src="/invs/eng/home/images/r_emnw.gif" width="192" height="19"></td></tr>';
	html+='<tr><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="5"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="10" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="162" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	for (i=0;i<item.length;i++) {
		html+='<tr valign="top"><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td>';
		html+='<td></td>';
		html+='<td><IMG src="/invs/eng/home/images/r_arw.gif" width="6" height="9" vspace=3"></td>';
		html+='<td><a ' + item[i].link + ' class="greyc" target="_top">' + item[i].text + '</a></td>';
		html+='<td></td>';
		html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	}
	html+='<tr valign="top">';
	html+='<td rowspan="2" colspan="2"><IMG src="/invs/eng/home/images/r_lcon.gif" width="10" height="8"></td>';
	html+='<td colspan="2"><IMG src="/hsb/com/spacer.gif" width="1" height="6"></td>';
	html+='<td rowspan="2" colspan="2"><IMG src="/invs/eng/home/images/r_rcon.gif" width="10" height="8"></td></tr>';
	html+='<tr><td colspan="2" bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="1" height="2"></td></tr>';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr></table>';

  document.write(html);

}

function createOpenAcctHort() {
	var i;
//	var item=new Array(
//		{text:'Securities', link:'href="/invs/eng/pib/invpiblogon.asp?srvc=sts"'},
//		{text:'Investment Funds', link:'href="/invs/eng/pib/invpiblogon.asp?srvc=ifs"'},
//		{text:'Forex Margin<br>&nbsp;', link:'href="/invs/eng/pib/invpiblogon.asp?srvc=rmt"'}
//	);
	var item=new Array(
		{text:'Securities', 		link:'href="https://www.hangseng.com/logon/eng/pib/logon.asp?srvc=ivtde"'},
		{text:'Investment Funds', 	link:'href="https://www.hangseng.com/logon/eng/pib/logon.asp?srvc=utff"'},
		{text:'Forex Margin', 		link:'href="https://www.hangseng.com/logon/eng/pib/logon.asp?srvc=ermtin"'}
	);


	var html='';

	html+='<table width="171" border="0" cellspacing="0" cellpadding="0">';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr>';
	html+='<tr><td colspan="6"><IMG src="/hsb/eng/per/invs/image/r_open.gif" width="171" height="19"></td></tr>';
	html+='<tr><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="5"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="10" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="141" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	for (i=0;i<item.length;i++) {
		html+='<tr valign="top"><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td>';
		html+='<td><IMG src="/hsb/com/spacer.gif" width="1" height="21"></td>';
		html+='<td><IMG src="/hsb/eng/per/invs/image/r_arw.gif" width="6" height="9" vspace=3"></td>';
		html+='<td><a ' + item[i].link + ' class="greyc" target="EbankControl" onClick="window.open(\'\',\'EbankControl\',\'width=600,height=400,directories=no,toolbar=no,status=yes,location=no,resizable=yes,menubar=no,scrollbars=yes,screenX=80,screenY=80\')">' + item[i].text + '</a></td>';
		html+='<td></td>';
		html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	}
	html+='<tr valign="top">';
	html+='<td rowspan="2" colspan="2"><IMG src="/hsb/eng/per/invs/image/r_lcon.gif" width="10" height="8"></td>';
	html+='<td colspan="2"><IMG src="/hsb/com/spacer.gif" width="1" height="6"></td>';
	html+='<td rowspan="2" colspan="2"><IMG src="/hsb/eng/per/invs/image/r_rcon.gif" width="10" height="8"></td></tr>';
	html+='<tr><td colspan="2" bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="1" height="2"></td></tr>';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr></table>';

  document.write(html);

}

function createOpenAcctHortSS() {
	var i;
//	var item=new Array(
//		{text:'Securities', link:'href="/invs/eng/pib/invpiblogon.asp?srvc=sts"'},
//		{text:'Investment Funds', link:'href="/invs/eng/pib/invpiblogon.asp?srvc=ifs"'},
//		{text:'Forex Margin<br>&nbsp;', link:'href="/invs/eng/pib/invpiblogon.asp?srvc=rmt"'}
//	);
	var item=new Array(
		{text:'Securities', 		link:'href="https://www.hangseng.com/logon/eng/pib/logon.asp?srvc=ivtde"'},
		{text:'Investment Funds', 	link:'href="https://www.hangseng.com/logon/eng/pib/logon.asp?srvc=utff"'},
		{text:'Forex Margin', 		link:'href="https://www.hangseng.com/logon/eng/pib/logon.asp?srvc=ermtin"'}
	);

	var html='';

	html+='<table width="171" border="0" cellspacing="0" cellpadding="0">';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr>';
	html+='<tr><td colspan="6"><IMG src="/hsb/eng/per/invs/image/r_open.gif" width="171" height="19"></td></tr>';
	html+='<tr><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="5"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="10" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="141" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	for (i=0;i<item.length;i++) {
		html+='<tr valign="top"><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td>';
		html+='<td><IMG src="/hsb/com/spacer.gif" width="1" height="21"></td>';
		html+='<td><IMG src="/hsb/eng/per/invs/image/r_arw.gif" width="6" height="9" vspace=3"></td>';
		html+='<td><a ' + item[i].link + ' class="greyc" target="EbankControl" onClick="window.open(\'\',\'EbankControl\',\'status=yes,width=600,height=400,directories=no,toolbar=no,location=no,resizable=yes,menubar=no,scrollbars=yes,screenX=80,screenY=80\')">' + item[i].text + '</a></td>';
		html+='<td></td>';
		html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	}
	html+='<tr valign="top">';
	html+='<td rowspan="2" colspan="2"><IMG src="/hsb/eng/per/invs/image/r_lcon.gif" width="10" height="8"></td>';
	html+='<td colspan="2"><IMG src="/hsb/com/spacer.gif" width="1" height="6"></td>';
	html+='<td rowspan="2" colspan="2"><IMG src="/hsb/eng/per/invs/image/r_rcon.gif" width="10" height="8"></td></tr>';
	html+='<tr><td colspan="2" bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="1" height="2"></td></tr>';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr></table>';

  document.write(html);

}

function createOpenAcctHortIF() {
	var i;
//	var item=new Array(
//		{text:'Securities', link:'href="/invs/eng/pib/invpiblogon.asp?srvc=sts"'},
//		{text:'Investment Funds', link:'href="/invs/eng/pib/invpiblogon.asp?srvc=ifs"'},
//		{text:'Forex Margin<br>&nbsp;', link:'href="/invs/eng/pib/invpiblogon.asp?srvc=rmt"'}
//	);

	var item=new Array(
		{text:'Securities', 		link:'href="https://www.hangseng.com/logon/eng/pib/logon.asp?srvc=ivtde"'},
		{text:'Investment Funds', 	link:'href="https://www.hangseng.com/logon/eng/pib/logon.asp?srvc=utff"'},
		{text:'Forex Margin', 		link:'href="https://www.hangseng.com/logon/eng/pib/logon.asp?srvc=ermtin"'}
	);

	var html='';

	html+='<table width="171" border="0" cellspacing="0" cellpadding="0">';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr>';
	html+='<tr><td colspan="6"><IMG src="/hsb/eng/per/invs/image/r_open.gif" width="171" height="19"></td></tr>';
	html+='<tr><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="5"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="10" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="141" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	for (i=0;i<item.length;i++) {
		html+='<tr valign="top"><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td>';
		html+='<td><IMG src="/hsb/com/spacer.gif" width="1" height="21"></td>';
		html+='<td><IMG src="/hsb/eng/per/invs/image/r_arw.gif" width="6" height="9" vspace=3"></td>';
		html+='<td><a ' + item[i].link + ' class="greyc" target="EbankControl" onClick="window.open(\'\',\'EbankControl\',\'status=yes,width=600,height=400,directories=no,toolbar=no,location=no,resizable=yes,menubar=no,scrollbars=yes,screenX=80,screenY=80\')">' + item[i].text + '</a></td>';
		html+='<td></td>';
		html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	}
	html+='<tr valign="top">';
	html+='<td rowspan="2" colspan="2"><IMG src="/hsb/eng/per/invs/image/r_lcon.gif" width="10" height="8"></td>';
	html+='<td colspan="2"><IMG src="/hsb/com/spacer.gif" width="1" height="6"></td>';
	html+='<td rowspan="2" colspan="2"><IMG src="/hsb/eng/per/invs/image/r_rcon.gif" width="10" height="8"></td></tr>';
	html+='<tr><td colspan="2" bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="1" height="2"></td></tr>';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr></table>';

  document.write(html);

}

function createOpenAcctHortFMS() {
	var i;
//	var item=new Array(
//		{text:'Securities', link:'href="/invs/eng/pib/invpiblogon.asp?srvc=sts"'},
//		{text:'Investment Funds', link:'href="/invs/eng/pib/invpiblogon.asp?srvc=ifs"'},
//		{text:'Forex Margin<br>&nbsp;', link:'href="/invs/eng/pib/invpiblogon.asp?srvc=rmt"'}
//	);

	var item=new Array(
		{text:'Securities', 		link:'href="https://www.hangseng.com/logon/eng/pib/logon.asp?srvc=ivtde"'},
		{text:'Investment Funds', 	link:'href="https://www.hangseng.com/logon/eng/pib/logon.asp?srvc=utff"'},
		{text:'Forex Margin', 		link:'href="https://www.hangseng.com/logon/eng/pib/logon.asp?srvc=ermtin"'}
	);

	var html='';

	html+='<table width="171" border="0" cellspacing="0" cellpadding="0">';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr>';
	html+='<tr><td colspan="6"><IMG src="/hsb/eng/per/invs/image/r_open.gif" width="171" height="19"></td></tr>';
	html+='<tr><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="5"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="10" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="141" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	for (i=0;i<item.length;i++) {
		html+='<tr valign="top"><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td>';
		html+='<td><IMG src="/hsb/com/spacer.gif" width="1" height="21"></td>';
		html+='<td><IMG src="/hsb/eng/per/invs/image/r_arw.gif" width="6" height="9" vspace=3"></td>';
		html+='<td><a ' + item[i].link + ' class="greyc" target="EbankControl" onClick="window.open(\'\',\'EbankControl\',\'status=yes,width=600,height=400,directories=no,toolbar=no,location=no,resizable=yes,menubar=no,scrollbars=yes,screenX=80,screenY=80\')">' + item[i].text + '</a></td>';
		html+='<td></td>';
		html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	}
	html+='<tr valign="top">';
	html+='<td rowspan="2" colspan="2"><IMG src="/hsb/eng/per/invs/image/r_lcon.gif" width="10" height="8"></td>';
	html+='<td colspan="2"><IMG src="/hsb/com/spacer.gif" width="1" height="6"></td>';
	html+='<td rowspan="2" colspan="2"><IMG src="/hsb/eng/per/invs/image/r_rcon.gif" width="10" height="8"></td></tr>';
	html+='<tr><td colspan="2" bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="1" height="2"></td></tr>';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr></table>';

  document.write(html);

}

function createOpenAcctHortELI() {
	var i;
//	var item=new Array(
//		{text:'Securities', link:'href="/invs/eng/pib/invpiblogon.asp?srvc=sts"'},
//		{text:'Investment Funds', link:'href="/invs/eng/pib/invpiblogon.asp?srvc=ifs"'},
//		{text:'Forex Margin<br>&nbsp;', link:'href="/invs/eng/pib/invpiblogon.asp?srvc=rmt"'}
//	);

	var item=new Array(
		{text:'Securities', 		link:'href="https://www.hangseng.com/logon/eng/pib/logon.asp?srvc=ivtde"'},
		{text:'Investment Funds', 	link:'href="https://www.hangseng.com/logon/eng/pib/logon.asp?srvc=utff"'},
		{text:'Forex Margin', 		link:'href="https://www.hangseng.com/logon/eng/pib/logon.asp?srvc=ermtin"'}
	);


	var html='';

	html+='<table width="171" border="0" cellspacing="0" cellpadding="0">';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr>';
	html+='<tr><td colspan="6"><IMG src="/hsb/eng/per/invs/image/r_open.gif" width="171" height="19"></td></tr>';
	html+='<tr><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="5"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="10" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="141" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	html+='<tr valign="top"><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="1" height="21"></td>';
	html+='<td colspan="3" class="greyc">Personal e-Banking Customer:</td>';
	html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	for (i=0;i<item.length;i++) {
		html+='<tr valign="top"><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td>';
		html+='<td><IMG src="/hsb/com/spacer.gif" width="1" height="21"></td>';
		html+='<td><IMG src="/hsb/eng/per/invs/image/r_arw.gif" width="6" height="9" vspace="3"></td>';
		html+='<td><a ' + item[i].link + ' class="greyc" target="EbankControl" onClick="window.open(\'\',\'EbankControl\',\'status=yes,width=600,height=400,directories=no,toolbar=no,location=no,resizable=yes,menubar=no,scrollbars=yes,screenX=80,screenY=80\')">' + item[i].text + '</a></td>';
		html+='<td></td>';
		html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	}
	html+='<tr valign="top">';
	html+='<td rowspan="2" colspan="2"><IMG src="/hsb/eng/per/invs/image/r_lcon.gif" width="10" height="8"></td>';
	html+='<td colspan="2"><IMG src="/hsb/com/spacer.gif" width="1" height="6"></td>';
	html+='<td rowspan="2" colspan="2"><IMG src="/hsb/eng/per/invs/image/r_rcon.gif" width="10" height="8"></td></tr>';
	html+='<tr><td colspan="2" bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="1" height="2"></td></tr>';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr></table>';

  document.write(html);

}

function createOpenAcctHortMID() {
	var i;
//	var item=new Array(
//		{text:'Securities', link:'href="/invs/eng/pib/invpiblogon.asp?srvc=sts"'},
//		{text:'Investment Funds', link:'href="/invs/eng/pib/invpiblogon.asp?srvc=ifs"'},
//		{text:'Forex Margin<br>&nbsp;', link:'href="/invs/eng/pib/invpiblogon.asp?srvc=rmt"'}
//	);

	var item=new Array(
		{text:'Securities', 		link:'href="https://www.hangseng.com/logon/eng/pib/logon.asp?srvc=ivtde"'},
		{text:'Investment Funds', 	link:'href="https://www.hangseng.com/logon/eng/pib/logon.asp?srvc=utff"'},
		{text:'Forex Margin', 		link:'href="https://www.hangseng.com/logon/eng/pib/logon.asp?srvc=ermtin"'}
	);


	var html='';

	html+='<table width="171" border="0" cellspacing="0" cellpadding="0">';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr>';
	html+='<tr><td colspan="6"><IMG src="/hsb/eng/per/invs/image/r_open.gif" width="171" height="19"></td></tr>';
	html+='<tr><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="5"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="10" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="141" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	for (i=0;i<item.length;i++) {
		html+='<tr valign="top"><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td>';
		html+='<td><IMG src="/hsb/com/spacer.gif" width="1" height="21"></td>';
		html+='<td><IMG src="/hsb/eng/per/invs/image/r_arw.gif" width="6" height="9" vspace=3"></td>';
		html+='<td><a ' + item[i].link + ' class="greyc" target="EbankControl" onClick="window.open(\'\',\'EbankControl\',\'status=yes,width=600,height=400,directories=no,toolbar=no,location=no,resizable=yes,menubar=no,scrollbars=yes,screenX=80,screenY=80\')">' + item[i].text + '</a></td>';
		html+='<td></td>';
		html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	}
	html+='<tr valign="top">';
	html+='<td rowspan="2" colspan="2"><IMG src="/hsb/eng/per/invs/image/r_lcon.gif" width="10" height="8"></td>';
	html+='<td colspan="2"><IMG src="/hsb/com/spacer.gif" width="1" height="6"></td>';
	html+='<td rowspan="2" colspan="2"><IMG src="/hsb/eng/per/invs/image/r_rcon.gif" width="10" height="8"></td></tr>';
	html+='<tr><td colspan="2" bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="1" height="2"></td></tr>';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr></table>';

  document.write(html);

}

function createOpenAcctHortTry() {
	var i;
//	var item=new Array(
//		{text:'Securities', link:'href="/invs/eng/pib/invpiblogon.asp?srvc=sts"'},
//		{text:'Investment Funds', link:'href="/invs/eng/pib/invpiblogon.asp?srvc=ifs"'},
//		{text:'Forex Margin<br>&nbsp;', link:'href="/invs/eng/pib/invpiblogon.asp?srvc=rmt"'}
//	);
	var item=new Array(
		{text:'Securities', 		link:'href="https://www.hangseng.com/logon/eng/pib/logon.asp?srvc=ivtde"'},
		{text:'Investment Funds', 	link:'href="https://www.hangseng.com/logon/eng/pib/logon.asp?srvc=utff"'},
		{text:'Forex Margin', 		link:'href="https://www.hangseng.com/logon/eng/pib/logon.asp?srvc=ermtin"'}
	);


	var html='';

	html+='<table width="171" border="0" cellspacing="0" cellpadding="0">';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr>';
	html+='<tr><td colspan="6"><IMG src="/hsb/eng/per/invs/image/r_open.gif" width="171" height="19"></td></tr>';
	html+='<tr><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="5"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="10" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="141" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	for (i=0;i<item.length;i++) {
		html+='<tr valign="top"><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td>';
		html+='<td><IMG src="/hsb/com/spacer.gif" width="1" height="21"></td>';
		html+='<td><IMG src="/hsb/eng/per/invs/image/r_arw.gif" width="6" height="9" vspace=3"></td>';
		html+='<td><a ' + item[i].link + ' class="greyc" target="EbankControl" onClick="window.open(\'\',\'EbankControl\',\'status=yes,width=600,height=400,directories=no,toolbar=no,location=no,resizable=yes,menubar=no,scrollbars=yes,screenX=80,screenY=80\')">' + item[i].text + '</a></td>';
		html+='<td></td>';
		html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	}
	html+='<tr valign="top">';
	html+='<td rowspan="2" colspan="2"><IMG src="/hsb/eng/per/invs/image/r_lcon.gif" width="10" height="8"></td>';
	html+='<td colspan="2"><IMG src="/hsb/com/spacer.gif" width="1" height="6"></td>';
	html+='<td rowspan="2" colspan="2"><IMG src="/hsb/eng/per/invs/image/r_rcon.gif" width="10" height="8"></td></tr>';
	html+='<tr><td colspan="2" bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="1" height="2"></td></tr>';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr></table>';

  document.write(html);

}

function createOpenAcctHortBIS() {
	var i;
//	var item=new Array(
//		{text:'Securities', link:'href="/invs/eng/pib/invpiblogon.asp?srvc=sts"'},
//		{text:'Investment Funds', link:'href="/invs/eng/pib/invpiblogon.asp?srvc=ifs"'},
//		{text:'Forex Margin<br>&nbsp;', link:'href="/invs/eng/pib/invpiblogon.asp?srvc=rmt"'}
//	);

	var item=new Array(
		{text:'Securities', 		link:'href="https://www.hangseng.com/logon/eng/pib/logon.asp?srvc=ivtde"'},
		{text:'Investment Funds', 	link:'href="https://www.hangseng.com/logon/eng/pib/logon.asp?srvc=utff"'},
		{text:'Forex Margin', 		link:'href="https://www.hangseng.com/logon/eng/pib/logon.asp?srvc=ermtin"'}
	);


	var html='';

	html+='<table width="171" border="0" cellspacing="0" cellpadding="0">';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr>';
	html+='<tr><td colspan="6"><IMG src="/hsb/eng/per/invs/image/r_open.gif" width="171" height="19"></td></tr>';
	html+='<tr><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="5"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="10" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="141" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	for (i=0;i<item.length;i++) {
		html+='<tr valign="top"><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td>';
		html+='<td><IMG src="/hsb/com/spacer.gif" width="1" height="21"></td>';
		html+='<td><IMG src="/hsb/eng/per/invs/image/r_arw.gif" width="6" height="9" vspace=3"></td>';
		html+='<td><a ' + item[i].link + ' class="greyc" target="EbankControl" onClick="window.open(\'\',\'EbankControl\',\'status=yes,width=600,height=400,directories=no,toolbar=no,location=no,resizable=yes,menubar=no,scrollbars=yes,screenX=80,screenY=80\')">' + item[i].text + '</a></td>';
		html+='<td></td>';
		html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	}
	html+='<tr valign="top">';
	html+='<td rowspan="2" colspan="2"><IMG src="/hsb/eng/per/invs/image/r_lcon.gif" width="10" height="8"></td>';
	html+='<td colspan="2"><IMG src="/hsb/com/spacer.gif" width="1" height="6"></td>';
	html+='<td rowspan="2" colspan="2"><IMG src="/hsb/eng/per/invs/image/r_rcon.gif" width="10" height="8"></td></tr>';
	html+='<tr><td colspan="2" bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="1" height="2"></td></tr>';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr></table>';

  document.write(html);

}

function createOpenAcctHortOIS() {
	var i;
//	var item=new Array(
//		{text:'Securities', link:'href="/invs/eng/pib/invpiblogon.asp?srvc=sts"'},
//		{text:'Investment Funds', link:'href="/invs/eng/pib/invpiblogon.asp?srvc=ifs"'},
//		{text:'Forex Margin<br>&nbsp;', link:'href="/invs/eng/pib/invpiblogon.asp?srvc=rmt"'}
//	);

	var item=new Array(
		{text:'Securities', 		link:'href="https://www.hangseng.com/logon/eng/pib/logon.asp?srvc=ivtde"'},
		{text:'Investment Funds', 	link:'href="https://www.hangseng.com/logon/eng/pib/logon.asp?srvc=utff"'},
		{text:'Forex Margin', 		link:'href="https://www.hangseng.com/logon/eng/pib/logon.asp?srvc=ermtin"'}
	);

	var html='';

	html+='<table width="171" border="0" cellspacing="0" cellpadding="0">';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr>';
	html+='<tr><td colspan="6"><IMG src="/hsb/eng/per/invs/image/r_open.gif" width="171" height="19"></td></tr>';
	html+='<tr><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="5"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="10" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="141" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	for (i=0;i<item.length;i++) {
		html+='<tr valign="top"><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td>';
		html+='<td><IMG src="/hsb/com/spacer.gif" width="1" height="21"></td>';
		html+='<td><IMG src="/hsb/eng/per/invs/image/r_arw.gif" width="6" height="9" vspace=3"></td>';
		html+='<td><a ' + item[i].link + ' class="greyc" target="EbankControl" onClick="window.open(\'\',\'EbankControl\',\'status=yes,width=600,height=400,directories=no,toolbar=no,location=no,resizable=yes,menubar=no,scrollbars=yes,screenX=80,screenY=80\')">' + item[i].text + '</a></td>';
		html+='<td></td>';
		html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	}
	html+='<tr valign="top">';
	html+='<td rowspan="2" colspan="2"><IMG src="/hsb/eng/per/invs/image/r_lcon.gif" width="10" height="8"></td>';
	html+='<td colspan="2"><IMG src="/hsb/com/spacer.gif" width="1" height="6"></td>';
	html+='<td rowspan="2" colspan="2"><IMG src="/hsb/eng/per/invs/image/r_rcon.gif" width="10" height="8"></td></tr>';
	html+='<tr><td colspan="2" bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="1" height="2"></td></tr>';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr></table>';

  document.write(html);

}
//--2008 June Kacy
function createOpenAcct2008() {
	var i;
	var item=new Array(
		{text:'Securities', 		link:'href="https://www.hangseng.com/logon/eng/pib/logon.asp?srvc=ivtde"'},
		{text:'Investment Funds', 	link:'href="https://www.hangseng.com/logon/eng/pib/logon.asp?srvc=utff"'},
		{text:'Forex Margin', 		link:'href="https://www.hangseng.com/logon/eng/pib/logon.asp?srvc=ermtin"'}
	);


	var html='';

	html+='<table width="171" border="0" cellspacing="0" cellpadding="0">';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr>';
	html+='<tr><td colspan="6"><IMG src="/hsb/eng/per/invs/image/r_open.gif" width="171" height="19"></td></tr>';
	html+='<tr><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="5"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="10" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="141" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	html+='<tr valign="top"><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="1" height="21"></td>';
	html+='<td colspan="3" class="greyc">Personal e-Banking Customer:</td>';
	html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';	
	for (i=0;i<item.length;i++) {
		html+='<tr valign="top"><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td>';
		html+='<td></td>';
		html+='<td><IMG src="/hsb/eng/per/invs/image/r_arw.gif" width="6" height="9" vspace=3"></td>';
		html+='<td><a ' + item[i].link + ' class="greyc" target="EbankControl" onClick="window.open(\'\',\'EbankControl\',\'width=600,height=400,directories=no,toolbar=no,location=no,resizable=yes,menubar=no,scrollbars=yes,status=yes,screenX=80,screenY=80\')">' + item[i].text + '</a></td>';
		html+='<td></td>';
		html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	}
	html+='<tr valign="top">';
	html+='<td rowspan="2" colspan="2"><IMG src="/hsb/eng/per/invs/image/r_lcon.gif" width="10" height="8"></td>';
	html+='<td colspan="2"><IMG src="/hsb/com/spacer.gif" width="1" height="6"></td>';
	html+='<td rowspan="2" colspan="2"><IMG src="/hsb/eng/per/invs/image/r_rcon.gif" width="10" height="8"></td></tr>';
	html+='<tr><td colspan="2" bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="1" height="2"></td></tr>';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr></table>';

  document.write(html);

}

function createContactUs2008() {
	var i;
	var item=new Array(
		{text:'Email us', img: '/hsb/eng/per/invs/image/r_em.gif', link:'href="javascript:;" onClick="MM_openBrWindow(\'https://www.hangseng.com/contactus/eng/form.asp\',\'\',\'status=1,scrollbars=yes,resizable=yes,width=650,height=580\')"'},
		{text:'Call us<br><IMG src="/hsb/eng/per/invs/image/r_arw.gif" width="6" height="9"> Personal customer: 2998 9898<br><IMG src="/hsb/eng/per/invs/image/r_arw.gif" width="6" height="9"> Commercial customer: Business Partner Direct 2198 8000', img: '/hsb/eng/per/invs/image/r_tel.gif'},
		{text:'Visit our branches', img: '/hsb/eng/per/invs/image/r_add.gif', link:'href="/hsb/eng/abo/cu/ba/index.html" target="_top"'}
	);

	var html='';

	html+='<table width="171" border="0" cellspacing="0" cellpadding="0">';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr>';
	html+='<tr><td colspan="6"><a href="/hsb/eng/abo/cu/home/index.html" target="_top"><IMG src="/hsb/eng/per/invs/image/r_cont.gif" width="171" height="19" border="0"></a></td></tr>';
	html+='<tr><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="5"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="25" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="126" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	for (i=0;i<item.length;i++) {
		html+='<tr valign="top"><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td>';
		html+='<td></td>';
		html+='<td><a ' + item[i].link + '><IMG src="' + item[i].img + '" width="21" height="21" border="0"></a></td>';
		html+='<td><a ' + item[i].link + ' class="greyc">' + item[i].text + '</a></td>';
		html+='<td></td>';
		html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	}
	html+='<tr valign="top">';
	html+='<td rowspan="2" colspan="2"><IMG src="/hsb/eng/per/invs/image/r_lcon.gif" width="10" height="8"></td>';
	html+='<td colspan="2"><IMG src="/hsb/com/spacer.gif" width="1" height="6"></td>';
	html+='<td rowspan="2" colspan="2"><IMG src="/hsb/eng/per/invs/image/r_rcon.gif" width="10" height="8"></td></tr>';
	html+='<tr><td colspan="2" bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="1" height="2"></td></tr>';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr></table>';

  document.write(html);

}
//------------------------

function createContactUsFMS() {
	var i;
	var item=new Array(
		{text:'Email us', img: '/hsb/eng/per/invs/image/r_em.gif', link:'href="javascript:;" onClick="MM_openBrWindow(\'https://www.hangseng.com/contactus/eng/form.asp\',\'\',\'status=1,scrollbars=yes,resizable=yes,width=650,height=580\')"'},
		{text:'Call (852) 2822 0228', img: '/hsb/eng/per/invs/image/r_tel.gif'},
		{text:'Visit one of Hang Seng Bank Branches', img: '/hsb/eng/per/invs/image/r_add.gif', link:'href="/hsb/eng/abo/cu/ba/index.html" target="_top"'}
	);

	var html='';

	html+='<table width="171" border="0" cellspacing="0" cellpadding="0">';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr>';
	html+='<tr><td colspan="6"><a href="/hsb/eng/abo/cu/home/index.html" target="_top"><IMG src="/hsb/eng/per/invs/image/r_cont.gif" width="171" height="19" border="0"></a></td></tr>';
	html+='<tr><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="5"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="25" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="126" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	for (i=0;i<item.length;i++) {
		html+='<tr valign="top"><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td>';
		html+='<td></td>';
		html+='<td><a ' + item[i].link + '><IMG src="' + item[i].img + '" width="21" height="21" border="0"></a></td>';
		html+='<td><a ' + item[i].link + ' class="greyc">' + item[i].text + '</a></td>';
		html+='<td></td>';
		html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	}
	html+='<tr valign="top">';
	html+='<td rowspan="2" colspan="2"><IMG src="/hsb/eng/per/invs/image/r_lcon.gif" width="10" height="8"></td>';
	html+='<td colspan="2"><IMG src="/hsb/com/spacer.gif" width="1" height="6"></td>';
	html+='<td rowspan="2" colspan="2"><IMG src="/hsb/eng/per/invs/image/r_rcon.gif" width="10" height="8"></td></tr>';
	html+='<tr><td colspan="2" bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="1" height="2"></td></tr>';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr></table>';

  document.write(html);

}

function createContactUsELI() {
	var i;
	var item=new Array(
		{text:'Email us', img: '/hsb/eng/per/invs/image/r_em.gif', link:'href="javascript:;" onClick="MM_openBrWindow(\'https://www.hangseng.com/contactus/eng/form.asp\',\'\',\'status=1,scrollbars=yes,resizable=yes,width=650,height=580\')"'},
		{text:'Call us<br><IMG src="/hsb/eng/per/invs/image/r_arw.gif" width="6" height="9"> Personal customer: 2998 9898<br><IMG src="/hsb/eng/per/invs/image/r_arw.gif" width="6" height="9"> Commercial customer: Call Business Partner Direct 2198 8000', img: '/hsb/eng/per/invs/image/r_tel.gif'},
		{text:'Visit our branches', img: '/hsb/eng/per/invs/image/r_add.gif', link:'href="/hsb/eng/abo/cu/ba/index.html" target="_top"'}
	);

	var html='';

	html+='<table width="171" border="0" cellspacing="0" cellpadding="0">';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr>';
	html+='<tr><td colspan="6"><a href="/hsb/eng/abo/cu/home/index.html" target="_top"><IMG src="/hsb/eng/per/invs/image/r_cont.gif" width="171" height="19" border="0"></a></td></tr>';
	html+='<tr><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="5"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="25" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="126" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	for (i=0;i<item.length;i++) {
		html+='<tr valign="top"><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td>';
		html+='<td></td>';
		html+='<td><a ' + item[i].link + '><IMG src="' + item[i].img + '" width="21" height="21" border="0"></a></td>';
		html+='<td><a ' + item[i].link + ' class="greyc">' + item[i].text + '</a></td>';
		html+='<td></td>';
		html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	}
	html+='<tr valign="top">';
	html+='<td rowspan="2" colspan="2"><IMG src="/hsb/eng/per/invs/image/r_lcon.gif" width="10" height="8"></td>';
	html+='<td colspan="2"><IMG src="/hsb/com/spacer.gif" width="1" height="6"></td>';
	html+='<td rowspan="2" colspan="2"><IMG src="/hsb/eng/per/invs/image/r_rcon.gif" width="10" height="8"></td></tr>';
	html+='<tr><td colspan="2" bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="1" height="2"></td></tr>';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr></table>';

  document.write(html);

}

function createContactUsTry() {
	var i;
	var item=new Array(
		{text:'Email us', img: '/hsb/eng/per/invs/image/r_em.gif', link:'href="javascript:;" onClick="MM_openBrWindow(\'https://www.hangseng.com/contactus/eng/form.asp?subjcde=TRYSRV\',\'\',\'status=1,scrollbars=yes,resizable=yes,width=650,height=580\')"'}
		//{text:'Call (852) 2198 5566', img: '/hsb/eng/per/invs/image/r_tel.gif'}
	);

	var html='';

	html+='<table width="171" border="0" cellspacing="0" cellpadding="0">';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr>';
	html+='<tr><td colspan="6"><a href="/hsb/eng/abo/cu/home/index.html" target="_top"><IMG src="/hsb/eng/per/invs/image/r_cont.gif" width="171" height="19" border="0"></a></td></tr>';
	html+='<tr><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="5"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="25" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="126" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	for (i=0;i<item.length;i++) {
		html+='<tr valign="middle"><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td>';
		html+='<td></td>';
		html+='<td><a ' + item[i].link + '><IMG src="' + item[i].img + '" width="21" height="21" border="0"></a></td>';
		html+='<td><a ' + item[i].link + ' class="greyc">' + item[i].text + '</a></td>';
		html+='<td></td>';
		html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	}
	html+='<tr valign="top">';
	html+='<td rowspan="2" colspan="2"><IMG src="/hsb/eng/per/invs/image/r_lcon.gif" width="10" height="8"></td>';
	html+='<td colspan="2"><IMG src="/hsb/com/spacer.gif" width="1" height="6"></td>';
	html+='<td rowspan="2" colspan="2"><IMG src="/hsb/eng/per/invs/image/r_rcon.gif" width="10" height="8"></td></tr>';
	html+='<tr><td colspan="2" bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="1" height="2"></td></tr>';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr></table>';

  document.write(html);

}

function createContactUsMID() {
	var i;
	var item=new Array(
		{text:'Email us', img: '/hsb/eng/per/invs/image/r_em.gif', link:'href="javascript:;" onClick="MM_openBrWindow(\'https://www.hangseng.com/contactus/eng/form.asp\',\'\',\'status=1,scrollbars=yes,resizable=yes,width=650,height=580\')"'},
		{text:'Call (852) 2822 0228', img: '/hsb/eng/per/invs/image/r_tel.gif'},
		{text:'Visit one of Hang Seng Bank Branches', img: '/hsb/eng/per/invs/image/r_add.gif', link:'href="/hsb/eng/abo/cu/ba/index.html" target="_top"'}
	);

	var html='';

	html+='<table width="171" border="0" cellspacing="0" cellpadding="0">';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr>';
	html+='<tr><td colspan="6"><a href="/hsb/eng/abo/cu/home/index.html" target="_top"><IMG src="/hsb/eng/per/invs/image/r_cont.gif" width="171" height="19" border="0"></a></td></tr>';
	html+='<tr><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="5"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="25" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="126" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	for (i=0;i<item.length;i++) {
		html+='<tr valign="top"><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td>';
		html+='<td></td>';
		html+='<td><a ' + item[i].link + '><IMG src="' + item[i].img + '" width="21" height="21" border="0"></a></td>';
		html+='<td><a ' + item[i].link + ' class="greyc">' + item[i].text + '</a></td>';
		html+='<td></td>';
		html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	}
	html+='<tr valign="top">';
	html+='<td rowspan="2" colspan="2"><IMG src="/hsb/eng/per/invs/image/r_lcon.gif" width="10" height="8"></td>';
	html+='<td colspan="2"><IMG src="/hsb/com/spacer.gif" width="1" height="6"></td>';
	html+='<td rowspan="2" colspan="2"><IMG src="/hsb/eng/per/invs/image/r_rcon.gif" width="10" height="8"></td></tr>';
	html+='<tr><td colspan="2" bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="1" height="2"></td></tr>';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr></table>';

  document.write(html);

}

function createContactUsBIS() {
	var i;
	var item=new Array(
		{text:'Email us', img: '/hsb/eng/per/invs/image/r_em.gif', link:'href="javascript:;" onClick="MM_openBrWindow(\'https://www.hangseng.com/contactus/eng/form.asp\',\'\',\'status=1,scrollbars=yes,resizable=yes,width=650,height=580\')"'},
		{text:'Call (852) 2822 0228', img: '/hsb/eng/per/invs/image/r_tel.gif'},
		{text:'Visit one of Hang Seng Bank Branches', img: '/hsb/eng/per/invs/image/r_add.gif', link:'href="/hsb/eng/abo/cu/ba/index.html" target="_top"'}
	);

	var html='';

	html+='<table width="171" border="0" cellspacing="0" cellpadding="0">';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr>';
	html+='<tr><td colspan="6"><a href="/hsb/eng/abo/cu/home/index.html" target="_top"><IMG src="/hsb/eng/per/invs/image/r_cont.gif" width="171" height="19" border="0"></a></td></tr>';
	html+='<tr><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="5"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="25" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="126" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	for (i=0;i<item.length;i++) {
		html+='<tr valign="top"><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td>';
		html+='<td></td>';
		html+='<td><a ' + item[i].link + '><IMG src="' + item[i].img + '" width="21" height="21" border="0"></a></td>';
		html+='<td><a ' + item[i].link + ' class="greyc">' + item[i].text + '</a></td>';
		html+='<td></td>';
		html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	}
	html+='<tr valign="top">';
	html+='<td rowspan="2" colspan="2"><IMG src="/hsb/eng/per/invs/image/r_lcon.gif" width="10" height="8"></td>';
	html+='<td colspan="2"><IMG src="/hsb/com/spacer.gif" width="1" height="6"></td>';
	html+='<td rowspan="2" colspan="2"><IMG src="/hsb/eng/per/invs/image/r_rcon.gif" width="10" height="8"></td></tr>';
	html+='<tr><td colspan="2" bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="1" height="2"></td></tr>';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr></table>';

  document.write(html);

}

function createContactUsOIS() {
	var i;
	var item=new Array(
		{text:'Email us', img: '/hsb/eng/per/invs/image/r_em.gif', link:'href="javascript:;" onClick="MM_openBrWindow(\'https://www.hangseng.com/contactus/eng/form.asp\',\'\',\'status=1,scrollbars=yes,resizable=yes,width=650,height=580\')"'},
		{text:'Call (852) 2822 0228', img: '/hsb/eng/per/invs/image/r_tel.gif'},
		{text:'Visit one of Hang Seng Bank Branches', img: '/hsb/eng/per/invs/image/r_add.gif', link:'href="/hsb/eng/abo/cu/ba/index.html" target="_top"'}
	);

	var html='';

	html+='<table width="171" border="0" cellspacing="0" cellpadding="0">';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr>';
	html+='<tr><td colspan="6"><a href="/hsb/eng/abo/cu/home/index.html" target="_top"><IMG src="/hsb/eng/per/invs/image/r_cont.gif" width="171" height="19" border="0"></a></td></tr>';
	html+='<tr><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="5"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="25" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="126" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	for (i=0;i<item.length;i++) {
		html+='<tr valign="top"><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td>';
		html+='<td></td>';
		html+='<td><a ' + item[i].link + '><IMG src="' + item[i].img + '" width="21" height="21" border="0"></a></td>';
		html+='<td><a ' + item[i].link + ' class="greyc">' + item[i].text + '</a></td>';
		html+='<td></td>';
		html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	}
	html+='<tr valign="top">';
	html+='<td rowspan="2" colspan="2"><IMG src="/hsb/eng/per/invs/image/r_lcon.gif" width="10" height="8"></td>';
	html+='<td colspan="2"><IMG src="/hsb/com/spacer.gif" width="1" height="6"></td>';
	html+='<td rowspan="2" colspan="2"><IMG src="/hsb/eng/per/invs/image/r_rcon.gif" width="10" height="8"></td></tr>';
	html+='<tr><td colspan="2" bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="1" height="2"></td></tr>';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr></table>';

  document.write(html);

}

function createContactUsIF() {
	var i;
	var item=new Array(
		{text:'Email us', img: '/hsb/eng/per/invs/image/r_em.gif', link:'href="javascript:;" onClick="MM_openBrWindow(\'https://www.hangseng.com/contactus/eng/form.asp\',\'\',\'status=1,scrollbars=yes,resizable=yes,width=650,height=580\')"'},
		{text:'Call (852) 2998 9898', img: '/hsb/eng/per/invs/image/r_tel.gif'},
		{text:'Visit one of Hang Seng Bank Branches', img: '/hsb/eng/per/invs/image/r_add.gif', link:'href="/hsb/eng/abo/cu/ba/index.html" target="_top"'}
	);

	var html='';

	html+='<table width="171" border="0" cellspacing="0" cellpadding="0">';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr>';
	html+='<tr><td colspan="6"><a href="/hsb/eng/abo/cu/home/index.html" target="_top"><IMG src="/hsb/eng/per/invs/image/r_cont.gif" width="171" height="19" border="0"></a></td></tr>';
	html+='<tr><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="5"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="25" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="126" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	for (i=0;i<item.length;i++) {
		html+='<tr valign="top"><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td>';
		html+='<td></td>';
		html+='<td><a ' + item[i].link + '><IMG src="' + item[i].img + '" width="21" height="21" border="0"></a></td>';
		html+='<td><a ' + item[i].link + ' class="greyc">' + item[i].text + '</a></td>';
		html+='<td></td>';
		html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	}
	html+='<tr valign="top">';
	html+='<td rowspan="2" colspan="2"><IMG src="/hsb/eng/per/invs/image/r_lcon.gif" width="10" height="8"></td>';
	html+='<td colspan="2"><IMG src="/hsb/com/spacer.gif" width="1" height="6"></td>';
	html+='<td rowspan="2" colspan="2"><IMG src="/hsb/eng/per/invs/image/r_rcon.gif" width="10" height="8"></td></tr>';
	html+='<tr><td colspan="2" bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="1" height="2"></td></tr>';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr></table>';

  document.write(html);

}

function createContactUsSS() {
	var i;
	var item=new Array(
		{text:'Email us', img: '/hsb/eng/per/invs/image/r_em.gif', link:'href="javascript:;" onClick="MM_openBrWindow(\'https://www.hangseng.com/contactus/eng/form.asp\',\'\',\'status=yes,scrollbars=yes,resizable=yes,width=650,height=580\')"'},
		{text:'Call (852) 2998 9898', img: '/hsb/eng/per/invs/image/r_tel.gif'},
		{text:'Visit our branches', img: '/hsb/eng/per/invs/image/r_add.gif', link:'href="/hsb/eng/abo/cu/ba/index.html" target="_top"'}
	);

	var html='';

	html+='<table width="171" border="0" cellspacing="0" cellpadding="0">';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr>';
	html+='<tr><td colspan="6"><a href="/hsb/eng/abo/cu/home/index.html" target="_top"><IMG src="/hsb/eng/per/invs/image/r_cont.gif" width="171" height="19" border="0"></a></td></tr>';
	html+='<tr><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="5"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="25" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="126" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	for (i=0;i<item.length;i++) {
		html+='<tr valign="top"><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td>';
		html+='<td></td>';
		html+='<td><a ' + item[i].link + '><IMG src="' + item[i].img + '" width="21" height="21" border="0"></a></td>';
		html+='<td><a ' + item[i].link + ' class="greyc">' + item[i].text + '</a></td>';
		html+='<td></td>';
		html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	}
	html+='<tr valign="top">';
	html+='<td rowspan="2" colspan="2"><IMG src="/hsb/eng/per/invs/image/r_lcon.gif" width="10" height="8"></td>';
	html+='<td colspan="2"><IMG src="/hsb/com/spacer.gif" width="1" height="6"></td>';
	html+='<td rowspan="2" colspan="2"><IMG src="/hsb/eng/per/invs/image/r_rcon.gif" width="10" height="8"></td></tr>';
	html+='<tr><td colspan="2" bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="1" height="2"></td></tr>';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr></table>';

  document.write(html);

}

function createContactUs() {
	var i;
	var item=new Array(
		{text:'Email us', img: '/hsb/eng/per/invs/image/r_em.gif', link:'href="javascript:;" onClick="MM_openBrWindow(\'https://www.hangseng.com/contactus/eng/form.asp\',\'\',\'status=1,scrollbars=yes,resizable=yes,width=650,height=580\')"'},
		{text:'Call (852) 2998 9898', img: '/hsb/eng/per/invs/image/r_tel.gif'},
		{text:'Visit one of our Hang Seng Bank Branches', img: '/hsb/eng/per/invs/image/r_add.gif', link:'href="/hsb/eng/abo/cu/ba/index.html" target="_top"'}
	);

	var html='';

	html+='<table width="171" border="0" cellspacing="0" cellpadding="0">';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr>';
	html+='<tr><td colspan="6"><a href="/hsb/eng/abo/cu/home/index.html" target="_top"><IMG src="/hsb/eng/per/invs/image/r_cont.gif" width="171" height="19" border="0"></a></td></tr>';
	html+='<tr><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="5"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="25" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="126" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	for (i=0;i<item.length;i++) {
		html+='<tr valign="top"><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td>';
		html+='<td></td>';
		html+='<td><a ' + item[i].link + '><IMG src="' + item[i].img + '" width="21" height="21" border="0"></a></td>';
		html+='<td><a ' + item[i].link + ' class="greyc">' + item[i].text + '</a></td>';
		html+='<td></td>';
		html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	}
	html+='<tr valign="top">';
	html+='<td rowspan="2" colspan="2"><IMG src="/hsb/eng/per/invs/image/r_lcon.gif" width="10" height="8"></td>';
	html+='<td colspan="2"><IMG src="/hsb/com/spacer.gif" width="1" height="6"></td>';
	html+='<td rowspan="2" colspan="2"><IMG src="/hsb/eng/per/invs/image/r_rcon.gif" width="10" height="8"></td></tr>';
	html+='<tr><td colspan="2" bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="1" height="2"></td></tr>';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr></table>';

  document.write(html);

}

function createContactUsInvs() {
	var i;
	var item=new Array(
		{text:'Email us', img: '/invs/eng/home/images/r_em.gif', link:'href="javascript:;" onClick="MM_openBrWindow(\'https://www.hangseng.com/contactus/eng/form.asp\',\'\',\'status=1,scrollbars=yes,resizable=yes,width=650,height=580\')"'},
		{text:'Call (852) 2998 9898', img: '/invs/eng/home/images/r_tel.gif'},
		{text:'Visit our branches', img: '/invs/eng/home/images/r_add.gif', link:'href="/hsb/eng/abo/cu/ba/index.html" target="_top"'}
	);

	var html='';

	html+='<table width="192" border="0" cellspacing="0" cellpadding="0">';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr>';
	html+='<tr><td colspan="6"><a href="/hsb/eng/abo/cu/home/index.html" target="_top"><IMG src="/invs/eng/home/images/r_cont.gif" width="192" height="19" border="0"></a></td></tr>';
	html+='<tr><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="5"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="25" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="147" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	for (i=0;i<item.length;i++) {
		html+='<tr><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td>';
		html+='<td></td>';
		html+='<td><a ' + item[i].link + '><IMG src="' + item[i].img + '" width="21" height="21" border="0"></a></td>';
		html+='<td><a ' + item[i].link + ' class="greyc">' + item[i].text + '</a></td>';
		html+='<td></td>';
		html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	}
	html+='<tr valign="top">';
	html+='<td rowspan="2" colspan="2"><IMG src="/invs/eng/home/images/r_lcon.gif" width="10" height="8"></td>';
	html+='<td colspan="2"><IMG src="/hsb/com/spacer.gif" width="1" height="6"></td>';
	html+='<td rowspan="2" colspan="2"><IMG src="/invs/eng/home/images/r_rcon.gif" width="10" height="8"></td></tr>';
	html+='<tr><td colspan="2" bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="1" height="2"></td></tr>';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr></table>';

  document.write(html);

}

function createRHSContactUsFMS() {
	var i;
	var item=new Array(
		{text:'Email us', img: '/hsb/eng/per/invs/image/r_em.gif', link:'href="javascript:;" onClick="MM_openBrWindow(\'https://www.hangseng.com/contactus/eng/form.asp\',\'\',\'status=1,scrollbars=yes,resizable=yes,width=650,height=580\')"'},
		{text:'Call (852) 2822 0228', img: '/hsb/eng/per/invs/image/r_tel.gif'},
		{text:'Visit one of our Hang Seng Bank Branches', img: '/hsb/eng/per/invs/image/r_add.gif', link:'href="/hsb/eng/abo/cu/ba/index.html" target="_top"'}
	);

	var html='';

	html+='<table width="171" border="0" cellspacing="0" cellpadding="0">';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr>';
	html+='<tr><td colspan="6"><a href="/hsb/eng/abo/cu/home/index.html" target="_top"><IMG src="/hsb/eng/per/invs/image/r_cont.gif" width="171" height="19" border="0"></a></td></tr>';
	html+='<tr><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="5"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="25" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="126" height="1"></td>';
	html+='<td><IMG src="/hsb/com/spacer.gif" width="8" height="1"></td>';
	html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	for (i=0;i<item.length;i++) {
		html+='<tr valign="top"><td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td>';
		html+='<td></td>';
		html+='<td><a ' + item[i].link + '><IMG src="' + item[i].img + '" width="21" height="21" border="0"></a></td>';
		html+='<td><a ' + item[i].link + ' class="greyc">' + item[i].text + '</a></td>';
		html+='<td></td>';
		html+='<td bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="2" height="1"></td></tr>';
	}
	html+='<tr valign="top">';
	html+='<td rowspan="2" colspan="2"><IMG src="/hsb/eng/per/invs/image/r_lcon.gif" width="10" height="8"></td>';
	html+='<td colspan="2"><IMG src="/hsb/com/spacer.gif" width="1" height="6"></td>';
	html+='<td rowspan="2" colspan="2"><IMG src="/hsb/eng/per/invs/image/r_rcon.gif" width="10" height="8"></td></tr>';
	html+='<tr><td colspan="2" bgcolor="#696abd"><IMG src="/hsb/com/spacer.gif" width="1" height="2"></td></tr>';
	html+='<tr><td colspan="6"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr></table>';

  document.write(html);

}

function createBottomBannerSS() {
	var i;
	var item=new Array(
		//{icon:'/hsb/eng/per/invs/image/mf_171x36_e.gif', text: '/hsb/eng/per/invs/image/mf_171x36_e.gif', link:'href="/einvc/eng/getpage.asp?app=eINVCThemStock" target="_blank"'},
		{icon:'/hsb/eng/per/invs/image/eipo_171x36_e.gif', text: '/hsb/eng/per/invs/image/eipo_171x36_e.gif', link:'href="/eipo/eng/home/index.html" target="_top"'}
	);
	var html='';
	html+='<IMG src="/hsb/com/spacer.gif" width="1" height="5">';	
	for (i=0;i<item.length;i++) {
		html+='<br><a ' + item[i].link + '><IMG src="' + item[i].icon + '" width="171" height="36" border="0"></a>';
		html+='<br><IMG src="/hsb/com/spacer.gif" width="1" height="5">';		
	}
	document.write(html);
}

function createBottomBannerIF() {
	var i;
	var item=new Array(
		//{icon:'/hsb/eng/per/invs/image/mf_171x36_e.gif', text: '/hsb/eng/per/invs/image/mf_171x36_e.gif', link:'href="javascript:PopUp(\'/einvc/eng/getpage.asp?app=eINVCThemStock&frhase=eInvsHome\',\'eINVCWeb\',\'toolbar=yes,scrollbars=yes,resizable=yes,top=0,left=0,width=780,height=500\');"'},
		{icon:'/hsb/eng/per/invs/image/eipo_171x36_e.gif', text: '/hsb/eng/per/invs/image/eipo_171x36_e.gif', link:'href="/eipo/eng/home/index.html" target="_top"'}
	);
	var html='';
	html+='<IMG src="/hsb/com/spacer.gif" width="1" height="5">';	
	for (i=0;i<item.length;i++) {
		html+='<br><a ' + item[i].link + '><IMG src="' + item[i].icon + '" width="171" height="36" border="0"></a>';
		html+='<br><IMG src="/hsb/com/spacer.gif" width="1" height="5">';		
	}
	document.write(html);
}

function createBottomBannerFMS() {
	var i;
	var item=new Array(
		//{icon:'http://www.hangseng.com/hsb/eng/per/invs/image/ermtq404_171x36_e.gif', text: 'http://www.hangseng.com/hsb/eng/per/invs/image/ermtq404_171x36.gif', link:'href="http://www.hangseng.com/hsb/eng/per/invs/rmt/cpo/index.html" target="_top"'},
		//{icon:'/hsb/eng/per/invs/image/171x36_e.gif', link:'href="/hsb/eng/pmo/invs/elipm1/index.html" target="_top"'},
		{icon:'/hsb/eng/per/invs/image/eipo_171x36_e.gif', text: '/hsb/eng/per/invs/image/eipo_171x36_e.gif', link:'href="/eipo/eng/home/index.html" target="_top"'}
	);
	var html='';
	html+='<IMG src="/hsb/com/spacer.gif" width="1" height="5">';	
	for (i=0;i<item.length;i++) {
		html+='<br><a ' + item[i].link + '><IMG src="' + item[i].icon + '" width="171" height="36" border="0"></a>';
		html+='<br><IMG src="/hsb/com/spacer.gif" width="1" height="5">';		
	}
	document.write(html);
}

function createBottomBannerELI() {
	var i;
	var item=new Array(
		{icon:'/hsb/eng/per/invs/image/171x78_e.gif', link:'href="http://www.hangseng.com/hsb/eng/pmo/grp18/p09/index.html" target="_blank"'}
		);
	var html='';
	html+='<IMG src="/hsb/com/spacer.gif" width="1" height="5">';	
	for (i=0;i<item.length;i++) {
		html+='<br><a ' + item[i].link + '><IMG src="' + item[i].icon + '" width="171" height="78" border="0"></a>';
		html+='<br><IMG src="/hsb/com/spacer.gif" width="1" height="5">';		
	}
	if(item.length > 0)
		createCommercialBannerHeading();
	document.write(html);
}

function createRotaBottomBannerELI() {
	var i;
	var promo_pool=new Array(
		//{pic:'http://www.hangseng.com/hsb/eng/per/invs/image/171x78_e.gif',		weight:50, 	effective:new Date('Jan 01, 2005 00:00:00'),	expiry:new Date('Dec 31, 2999 23:59:59'), enabled:true, link:'href="http://www.hangseng.com/hsb/eng/pmo/grp18/p09/index.html" target="_top"'},
	        {pic:'http://www.hangseng.com/hsb/eng/per/invs/image/171x78_e4.gif',		weight:50, 	effective:new Date('Jan 01, 2005 00:00:00'),	expiry:new Date('Dec 31, 2999 23:59:59'), enabled:true, link:'href="http://www.hangseng.com/hsb/eng/pmo/grp02/p08/index.html" target="_top"'}
		);

	var rand;
	var curr;
	var now=new Date();
	var promo_weight=0;
	for (i=0;i<promo_pool.length;i++) {
		if (now<promo_pool[i].effective)
			promo_pool[i].enabled=false;
		if (now>promo_pool[i].expiry)
			promo_pool[i].enabled=false;
		if (promo_pool[i].enabled)
			promo_weight+=promo_pool[i].weight;
	}
	var promo_selected=-1;

	curr=-1;
	rand=Math.random()*promo_weight;
	for (i=0;i<promo_pool.length & rand>0 & curr<0;i++)
		if (promo_pool[i].enabled) {
			if (rand < promo_pool[i].weight)
				curr=i;
			rand-=promo_pool[i].weight;
		}
	if (curr>=0) promo_selected=curr;
		
	var html='';
	html+='<IMG src="http://www.hangseng.com/hsb/com/spacer.gif" width="1" height="5">';	
	
		html+='<br><a ' + promo_pool[promo_selected].link + '><IMG src="' + promo_pool[promo_selected].pic + '" width="171" height="78" border="0"></a>';
		html+='<br><IMG src="http://www.hangseng.com/hsb/com/spacer.gif" width="1" height="5">';		
	
	if(item.length > 0)
		createPersonalBannerHeading();
	document.write(html);
}


function createBottomBannerMID() {
	var i;
	var item=new Array(
		{icon:'/hsb/eng/per/invs/image/mf_171x36_e.gif', text: '/hsb/eng/per/invs/image/mf_171x36_e.gif', link:'href="/einvc/eng/getpage.asp?app=eINVCThemStock" target="_blank"'},
		{icon:'http://www.hangseng.com/hsb/eng/per/invs/image/eipo_171x36_e.gif', text: 'http://www.hangseng.com/hsb/eng/per/invs/image/eipo_171x36_e.gif', link:'href="/eipo/eng/home/index.html" target="_top"'}
	);
	var html='';
	html+='<IMG src="/hsb/com/spacer.gif" width="1" height="5">';	
	for (i=0;i<item.length;i++) {
		html+='<br><a ' + item[i].link + '><IMG src="' + item[i].icon + '" width="171" height="36" border="0"></a>';
		html+='<br><IMG src="/hsb/com/spacer.gif" width="1" height="5">';		
	}
	document.write(html);
}	

function createBottomBannerTry() {
	var i;
	var item=new Array(
		//{icon:'/hsb/eng/per/invs/image/mf_171x36_e.gif', text: '/hsb/eng/per/invs/image/mf_171x36_e.gif', link:'href="/einvc/eng/getpage.asp?app=eINVCThemStock" target="_blank"'},
		{icon:'http://www.hangseng.com/hsb/eng/per/invs/image/eipo_171x36_e.gif', text: 'http://www.hangseng.com/hsb/eng/per/invs/image/eipo_171x36_e.gif', link:'href="/eipo/eng/home/index.html" target="_top"'}
	);
	var html='';
	html+='<IMG src="/hsb/com/spacer.gif" width="1" height="5">';	
	for (i=0;i<item.length;i++) {
		html+='<br><a ' + item[i].link + '><IMG src="' + item[i].icon + '" width="171" height="36" border="0"></a>';
		html+='<br><IMG src="/hsb/com/spacer.gif" width="1" height="5">';		
	}
	document.write(html);
}	

function createBottomBannerBIS() {
	var i;
	var item=new Array(
		//{icon:'/hsb/eng/per/invs/image/mf_171x36_e.gif', text: '/hsb/eng/per/invs/image/mf_171x36_e.gif', link:'href="/einvc/eng/getpage.asp?app=eINVCThemStock" target="_blank"'},
		{icon:'/hsb/eng/per/invs/image/eipo_171x36_e.gif', text: '/hsb/eng/per/invs/image/eipo_171x36_e.gif', link:'href="/eipo/eng/home/index.html" target="_top"'}
	);
	var html='';
	html+='<IMG src="/hsb/com/spacer.gif" width="1" height="5">';	
	for (i=0;i<item.length;i++) {
		html+='<br><a ' + item[i].link + '><IMG src="' + item[i].icon + '" width="171" height="36" border="0"></a>';
		html+='<br><IMG src="/hsb/com/spacer.gif" width="1" height="5">';		
	}
	document.write(html);
}	

function createBottomBannerOIS() {
	var i;
	var item=new Array(
		{icon:'/hsb/eng/per/invs/image/eipo_171x36_e.gif', text: '/hsb/eng/per/invs/image/eipo_171x36_e.gif', link:'href="/eipo/eng/home/index.html" target="_top"'},
		{icon:'/hsb/eng/per/invs/image/mf_171x36_e.gif', text: '/hsb/eng/per/invs/image/mf_171x36_e.gif', link:'href="/einvc/eng/getpage.asp?app=eINVCThemStock" target="_blank"'}
	);
	var html='';
	html+='<IMG src="/hsb/com/spacer.gif" width="1" height="5">';	
	for (i=0;i<item.length;i++) {
		html+='<br><a ' + item[i].link + '><IMG src="' + item[i].icon + '" width="171" height="36" border="0"></a>';
		html+='<br><IMG src="/hsb/com/spacer.gif" width="1" height="5">';		
	}
	document.write(html);
}	

function createRightLinks() {
	var i;
	var item=new Array(
		{icon:'/hsb/eng/per/invs/image/r_newsg.gif', text: '/hsb/eng/per/invs/image/r_news.gif', link:'href="#"'},
		{icon:'/hsb/eng/per/invs/image/r_edug.gif', text: '/hsb/eng/per/invs/image/r_edu.gif', link:'href="http://main.hangseng.com/eng/ref/sic/poll.jsp" target="mywin"'},
		//{icon:'/hsb/eng/per/invs/image/r_eipog.gif', text: '/hsb/eng/per/invs/image/r_eipo.gif', link:'href="/hsb/eng/per/invs/hsss/ipo/index.html" target="_top"'},
		{icon:'/hsb/eng/per/invs/image/r_enewsg.gif', text: '/hsb/eng/per/invs/image/r_enews.gif', link:'href="#"'}
	);

	var html='';
	html+='<table width="171" border="0" cellspacing="0" cellpadding="0">';
	html+='<tr><td colspan="2"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr>';
	for (i=0;i<item.length;i++) {
		html+='<tr><td><a ' + item[i].link + '><IMG src="' + item[i].icon + '" width="22" height="21" border="0"></a></td>';
		html+='<td><a ' + item[i].link + '><IMG src="' + item[i].text + '" width="149" height="21" border="0"></a></td></tr>';
		html+='<tr><td colspan="2"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr>';
	}
	
	html+='</table>';
  document.write(html);
}

function createHomeRightLinks() {
	var i;
	var item=new Array(
		{icon:'/hsb/eng/per/invs/image/r_pollg.gif', text: '/hsb/eng/per/invs/image/r_poll.gif', link:'href="#"'},
		{icon:'/hsb/eng/per/invs/image/r_edug.gif', text: '/hsb/eng/per/invs/image/r_edu.gif', link:'href="http://main.hangseng.com/eng/ref/sic/poll.jsp" target="mywin"'},
		{icon:'/hsb/eng/per/invs/image/r_eipog.gif', text: '/hsb/eng/per/invs/image/r_eipo.gif', link:'href="/hsb/eng/per/invs/hsss/ipo/index.html" target="_top"'},
		{icon:'/hsb/eng/per/invs/image/r_enewsg.gif', text: '/hsb/eng/per/invs/image/r_enews.gif', link:'href="#"'}
	);

	var html='';
	html+='<table width="171" border="0" cellspacing="0" cellpadding="0">';
	html+='<tr><td colspan="2"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr>';
	for (i=0;i<item.length;i++) {
		html+='<tr><td><a ' + item[i].link + '><IMG src="' + item[i].icon + '" width="22" height="21" border="0"></a></td>';
		html+='<td><a ' + item[i].link + '><IMG src="' + item[i].text + '" width="149" height="21" border="0"></a></td></tr>';
		html+='<tr><td colspan="2"><IMG src="/hsb/com/spacer.gif" width="1" height="5"></td></tr>';
	}
	
	html+='</table>';
  document.write(html);
}

function createPersonalBannerHeading() {
	var html = '<table border="0"><tr><td><font class="greyc">Personal customer can enjoy :</font></td></tr></table>';
	document.write(html);
}

function createCommercialBannerHeading() {
	var html = '<table border="0"><tr><td><font class="greyc">Commercial customer can enjoy :</font></td></tr></table>';
	document.write(html);
}
//->
