function fnUpdateBusinessCombo()
	{
		var strCountry, objBusiness

		strCountry = document.form1.selCountry.options[document.form1.selCountry.selectedIndex].text;
		objBusiness = document.form1.selBusiness

		intLength = objBusiness.options.length;
		//alert(intLength);
		for (var i=(intLength-1); i>=0; i--) 
			objBusiness.options[i] = null;

		// BUSINESS DATA TO BE CHANGED
		switch (strCountry) 
		{
			case "Singapore" :
				objBusiness.options[objBusiness.options.length] = new Option( "Personal Banking", "1", false, false);
				objBusiness.options[objBusiness.options.length] = new Option( "Small & Medium Businesses", "2", false, false);
				objBusiness.options[objBusiness.options.length] = new Option( "Corporate & Institutional", "3", false, false);
				break
			case "Malaysia" :
				objBusiness.options[objBusiness.options.length] = new Option( "Personal Banking", "1", false, false);
				objBusiness.options[objBusiness.options.length] = new Option( "Small & Medium Businesses", "2", false, false);
				objBusiness.options[objBusiness.options.length] = new Option( "Corporate & Institutional", "3", false, false);
				break;
			case "China" :
				objBusiness.options[objBusiness.options.length] = new Option( "Personal Banking", "1", false, false);
				objBusiness.options[objBusiness.options.length] = new Option( "Corporate & Institutional", "2", false, false);
				break;
		}
		// END DATA CHANGE

	}
	

function fnUpdateServiceCombo()
	{
		var strCountry2, objBusiness2

		strCountry2 = document.form1.selCountry2.options[document.form1.selCountry2.selectedIndex].text;
		objBusiness2 = document.form1.selService

		intLength = objBusiness2.options.length;
		for (var i=(intLength-1); i>=0; i--) 
			objBusiness2.options[i] = null;

		// BUSINESS DATA TO BE CHANGED
		switch (strCountry2) 
		{
			case "Singapore" :
				objBusiness2.options[objBusiness2.options.length] = new Option( "Personal Banking", "1", false, false);
				objBusiness2.options[objBusiness2.options.length] = new Option( "Small & Medium Businesses", "2", false, false);
				objBusiness2.options[objBusiness2.options.length] = new Option( "Corporate & Institutional", "3", false, false);
				break
			case "Malaysia" :
				objBusiness2.options[objBusiness2.options.length] = new Option( "Personal Banking", "1", false, false);
				objBusiness2.options[objBusiness2.options.length] = new Option( "Small & Medium Businesses", "2", false, false);
				objBusiness2.options[objBusiness2.options.length] = new Option( "Corporate & Institutional", "3", false, false);
				break;
			case "China" :
				objBusiness2.options[objBusiness2.options.length] = new Option( "Personal Banking", "1", false, false);
				objBusiness2.options[objBusiness2.options.length] = new Option( "Corporate & Institutional", "2", false, false);
				break;
		}
		// END DATA CHANGE

	}	
	
	function fnShowTradingService()
	{

		var strTradingService

		
		strTradingService = document.form1.selTradingService.options[document.form1.selTradingService.selectedIndex].value;
		switch (strTradingService)
				{
					case "1" :	document.location.href = "https://www1.iocbc.com/iocbc_secure_client.jsp"; break;
					case "2" :	document.location.href = "http://www.ocbcresearch.com/"; break;
					case "3" :	document.location.href = "http://www.iocbc.com/"; break;
				}				
	}

	function fnShowBusiness()
	{
		//if (document.form1.selBusiness.selectedIndex == "0")
		//{
		//	alert("Please select a Business");
		//	return;
		//}

		var strCountry, strBusiness

		strCountry = document.form1.selCountry.options[document.form1.selCountry.selectedIndex].text;
		strBusiness = document.form1.selBusiness.options[document.form1.selBusiness.selectedIndex].value;

		// URL DATA TO BE CHANGED
		switch (strCountry) 
		{
			case "Singapore" :
				switch (strBusiness)
				{
					case "1" :	location.href = "/personal-banking/"; break;
					case "2" :	location.href = "/sme-banking/"; break;
					case "3" :	location.href = "/corp-banking/"; break;
				}				
				break;

			case "Malaysia" :
				switch (strBusiness)
				{
					case "1" :	location.href ="http://www.ocbc.com.my/personal-banking/main/index.shtm"; break;
					case "2" :	location.href ="http://www.ocbc.com.my/sme-banking/main/index.shtm"; break;
					case "3" :	location.href ="http://www.ocbc.com.my/corporate-banking/main/index.shtm"; break;
				}				
				break;
			case "China" :
				switch (strBusiness)
				{
					case "1" :	location.href ="http://www.ocbc.com.cn/html_english/html/personal_banking.shtm"; break;
					case "2" :	location.href ="http://www.ocbc.com.cn/html_english/html/corporate_institutional.shtm"; break;
				}				
				break;
		}
		// END URL DATA

	}

function fnShowBusiness2()
	{

		var strCountry2, strBusiness2

		strCountry2 = document.form1.selCountry2.options[document.form1.selCountry2.selectedIndex].text;
		strBusiness2 = document.form1.selService.options[document.form1.selService.selectedIndex].value;

		// URL DATA TO BE CHANGED
		switch (strCountry2) 
		{
			case "Singapore" :
				switch (strBusiness2)
				{					
					case "1" :	location.href = "https://www.ocbc.com/internet-banking/"; break;
					case "2" :	location.href = "/velocity/sg/"; break;
					case "3" :	location.href = "/velocity/sg/"; break;
				}				
				break;

			case "Malaysia" :
				switch (strBusiness2)
				{
					case "1" :	location.href = "https://www.ocbc.com.my/internet-banking/"; break;
					case "2" :	location.href = "/velocity/my/"; break;
					case "3" :	location.href = "/velocity/my/"; break;
				}				
				break;
			case "China" :
				switch (strBusiness2)
				{
					case "1" :	location.href = "https://www.ocbc.com.cn/internet-banking/"; break;
					case "2" :	location.href = "http://www.ocbc.com.cn/html_english/html/corporate_institutional.shtm"; break;
				}				
				break;
		}
		// END URL DATA

	}

	function fnGoToContactUs()
	{
		var strCountry;
		strCountry = document.form1.selCountry3.options[document.form1.selCountry3.selectedIndex].text;

		switch (strCountry) 
		{
			case "Singapore" :
				location.href = "/global/contactus/Gco_Con_TollFree.shtm"; break;				
				break;
			case "Malaysia" :
				location.href = "http://www.ocbc.com.my/personal-banking/Help_Centre/help_contact_us.shtm"; break;
				break;
			case "China" :
				location.href = "http://www.ocbc.com.cn/html_english/html/contact_us.shtm?bcid=M4_1"; break;		
				break;
		}
	}
	
		function fnGoToContactUsComplaint()
	{
		var strCountry;
		strCountry = document.form1.selCountry4.options[document.form1.selCountry4.selectedIndex].text;

		switch (strCountry) 
		{
			case "Singapore" :
				location.href = "/global/contactus/Gco_Con_CMP.shtm"; break;				
				break;
			case "Malaysia" :
				location.href = "http://www.ocbc.com.my/personal-banking/Help_Centre/helpctr_dispute.shtm"; break;
				break;
			
		}
	}
					

	
