if(window.event + "" == "undefined") event = null;
function HM_f_PopUp(){return false};
function HM_f_PopDown(){return false};
popUp = HM_f_PopUp;
popDown = HM_f_PopDown;


/*
META TAGS CONTENT AND DESCRIPTION BELOW
META TAGS CONTENT AND DESCRIPTION BELOW
META TAGS CONTENT AND DESCRIPTION BELOW
*/
document.write('<meta name="keywords" content="My Valley Bank, Bank, bocokonline, A financial institution of excellence, featuring secure Internet-based services including Home Banking, Bill Payment, Bill Presentment, Quicken and Money interfaces, Stock Quotes, on-line applications, financial calculators, useful links and a wealth of financial information">');


document.write('<meta name="description" content="ATM, ATM Locations, Account Access, Account Transfer, Automobile Loans, AutoVantage, Bank, Bank Account, Banking, Bill Payment, Bill Presentment, Brokerage, Cash, CDs, Certificates of Deposit, Checks, Checking Accounts, Consumer Loans, Convenience Services, Credit, Credit Card, Credit Card Applications, Credit Union, Digital Insight, Finance, Financial Calculator, Financial Institution, Financial Wizard, Loans, Home Loans, IRA, Money, Term Investment, Online Banking, Order Checks, Personal Financial Management, Rates, Mortgage Rates, Loan Rates, Terms, Retirement, Savings Accounts, Savings, Savings and Loan, Stock Quotes, Stocks, Student Loans, Student, Term Share Certificates, Thrifts, Visa Credit Cards">');
/*
META TAGS CONTENT AND DESCRIPTION ABOVE
META TAGS CONTENT AND DESCRIPTION ABOVE
META TAGS CONTENT AND DESCRIPTION ABOVE
*/


/*
CALL TO CORRECT DIRECTORY
CALL TO CORRECT DIRECTORY
CALL TO CORRECT DIRECTORY
CALL TO CORRECT DIRECTORY
*/


//if you are on homepage you need <script> var homepage = "yes";</script> to make codework properly

var imgdir;
var sitedir;
var securedir;
var homedir;

if(window.homepage)
{
imgdir="images/";
sitedir="site/";
securedir="site/";
homedir="";
}
else if(window.absolute)
{
imgdir="http://www.bocokonline.com/images/"
sitedir="http://www.bocokonline.com/site/"
securedir="https://www.bocokonline.com/site/"
homedir="http://www.bocokonline.com/"
}
else if(window.securepage)
{
imgdir="https://www.bocokonline.com/images/"
sitedir="http://www.bocokonline.com/site/"
securedir="https://www.bocokonline.com/site/"
homedir="http://www.bocokonline.com/"
}
else
{
imgdir="../images/";
sitedir="";
securedir="";
homedir="../";
}


// ROLLOVER CODE BELOW ROLLOVER CODE BELOW ROLLOVER CODE BELOW ROLLOVER CODE BELOW
// ROLLOVER CODE BELOW ROLLOVER CODE BELOW ROLLOVER CODE BELOW ROLLOVER CODE BELOW
// ROLLOVER CODE BELOW ROLLOVER CODE BELOW ROLLOVER CODE BELOW ROLLOVER CODE BELOW


browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
if (((browserName == "Netscape") && (browserVer >= 3)) || ((browserName =="Microsoft Internet Explorer") && (browserVer >= 4)))
{
version = "ok";

/*
nav-onlinebanking = new Image(117,45);
nav-onlinebanking.src = imgdir + "nav-onlinebanking.gif";

nav-cashmanagement = new Image(117,45);
nav-cashmanagement.src = imgdir + "nav-cashmanagement.gif";

nav-com_cashmanagement = new Image(117,45);
nav-com_cashmanagement.src = imgdir + "nav-com_cashmanagement.gif";

nav-prodserv = new Image(117,47);
nav-prodserv.src = imgdir + "nav-prodserv.gif";

nav-calculators = new Image(117,45);
nav-calculators.src = imgdir + "nav-calculators.gif";

nav-contactus = new Image(117,45);
nav-contactus.src = imgdir + "nav-contactus.gif";

nav-aboutus = new Image(117,45);
nav-aboutus.src = imgdir + "nav-aboutus.gif";

nav-help = new Image(117,45);
nav-help.src = imgdir + "nav-help.gif";

nav-home = new Image(117,45);
nav-home = imgdir + "nav-home.gif";
*/

}
else
version = "x";

function img_act(imgName)
{
if (version == "ok")
{
imgOn = eval(imgName + "_on.src");
document [imgName].src = imgOn;
}
}

function img_inact(imgName)
{
window.status = "";
 if (version == "ok")
{
imgOff = eval(imgName + "_off.src");
document [imgName].src = imgOff;
}
}

// ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE
// ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE
// ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE

//style sheet sniffer
document.write('<scr' + 'ipt src="' + securedir + '_styles.js"></scr' + 'ipt>');

function showCalc(calc)
{
var pWidth = ( ((parseInt(screen.width) / 2)) - 275)
var pHeight = (((parseInt(screen.height) / 2)) -240)
window.open(calc,"hello","width=550,height=480,left=" + pWidth + ",top=" + pHeight + ",resizable=1,scrollbars=1");

}
function tabover(howmuch)
{
var farover = '';
farover += '<img src="'+imgdir+'clearpix.gif" width="' + howmuch + '" height="1" alt="" border="0">';
document.write(farover);
}

function openWin(page)
{
var pWidth = ( ((parseInt(screen.width) / 2)) - 380)
var pHeight = (((parseInt(screen.height) / 2)) - 250)
bWindow = window.open(page,'newWin',"toolbar=0,location=0,directories=0,status=0,menubar=0,width=760,height=500,top=" + pHeight + ",left=" + pWidth + ",scrollbars=1,resizable=1,status=1,toolbars=1");
}

function open_apps(nameofapp)
{
var pWidth = ( ((parseInt(screen.width) / 2)) - 350)
var pHeight = (((parseInt(screen.height) / 2)) - 300)
aWindow = window.open('https://www.bocokonline.com/Forms/OnlineForm.cgi?form=' + nameofapp,'application',"toolbar=0,location=0,directories=0,status=0,menubar=0,width=700,height=600,top=" + pHeight + ",left=" + pWidth + ",scrollbars=1,resizable=1,status=1");
}


function show_patriot(URL)
{

	//page variables
	var page_bgcolor="#EFEFF7";
	var border_color="#5271AD";
	var table_bgcolor="#EFEFF7";
	var time_visible=30000; //automatically closes after this time

	//content creation
	var content=""
	content+='<html>';
	content+='<head>';
	content+='<title>PATRIOT ACT</title>';
	content+='</head>';
	content+='<body bgcolor="' + page_bgcolor + '" onload=javascript:setTimeout(\'self.close()\','  + time_visible + ')>';
	content+='<table bgcolor="' + border_color + '" align="center" width="300" cellspacing="2" cellpadding="0" border="0">';
	content+='	<tr>';
	content+='	    <td>';
	content+='		<table bgcolor="' + table_bgcolor +'" align="center" width="100%" cellspacing="1" cellpadding="6" border="0">';
	content+='			<tr>';
	content+='	    		<td><font face="Arial,Verdana,Helvetica" size="-1"><b>IMPORTANT INFORMATION<br>ABOUT PROCEDURES FOR<br>OPENING A NEW ACCOUNT<br></b><br><br>To help the government fight the funding of terrorism and money laundering activities, federal law requires all financial institutions to obtain, verify, and record information that identifies each person who opens an account.';                            
	content+='				<br><br>';
	content+='				What this means to you: When you open an account, we will ask for your name, address, date of birth, and other information that will allow us to identify you. We will also ask to see your driver\'s license or other identifying documents.';
	content+='				<br><br>';
	content+='				<br><br>';
	//content+='				 <div align="center"><a href="'+URL+'" target="_blank" onClick="setTimeout(\'self.close()\',3000)"><img src="images/button_continue.gif" border="0" WIDTH="109" HEIGHT="28" alt="continue"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:self.close();"><img src="images/button_cancel.gif" border="0" WIDTH="109" HEIGHT="28" alt="cancel"></a></div>';
	content+='				 <div align="center"><a href="'+URL+'" target="_blank" onClick="setTimeout(\'self.close()\',3000)">I Accept</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:self.close();">I Decline</a></div>';	
	content+='				</td>';
	content+='			</tr>';
	content+='		</table>';
	content+='		</td>';
	content+='	</tr>';
	content+='</table>';
	content+='</body>';
	content+='</html>';

	//actual centering popup code
	outsideURL=URL;
	var pWidth = ((parseInt(screen.width) - 340) / 2); 
	var pHeight = ((parseInt(screen.height) - 570) / 2);
     newwin = window.open("","newwin", "width=340,height=570,left="+pWidth+",top="+pHeight+", scrollbars=0");
 	newwin.document.open();
	newwin.document.write(content);
	newwin.document.close();
}	

function reposition()
{
setTimeout("location.reload();" , 1500);
}

function header() {
var header = '';

header += '<table border="0" width="600" cellspacing="0" cellpadding="0">';
header += '<tr align="left">';
header += '<td width="154"><a name="top"></a><img src="'+imgdir+'hed-logo.gif" width="154" height="82" alt="Bank of Commerce" border="0"></td>';
header += '<td width="446"><img src="'+imgdir+'hed-logotextslogan.gif" width="446" height="82" alt="Bank of Commerce: People You Can Bank On" border="0"></td>';
header += '</tr>';
header += '</table>';

document.write(header);
}

function navigation() {
var navigation = '';

navigation += '<img src="'+imgdir+'pix-clear.gif" width="117" height="15" alt="" border="0"><br>';
navigation += '<a href="https://www.bocokonline.com/onlineserv/HB" target="_new"><img src="'+imgdir+'nav-onlinebanking.gif" width="117" alt="Online Banking" border="0"></a><br>';
navigation += '<a href="https://www.bocokonline.com/onlineserv/CM" target="_new"><img src="'+imgdir+'nav-cashmanagement.gif" width="117" alt="Cash Management" border="0"></a><br>';
navigation += '<a href="https://www.bocokonline.com/onlineserv/CM" target="_new"><img src="'+imgdir+'nav-com_cashmanagement.gif" width="117" alt="Cash Management" border="0"></a><br>';
navigation += '<a href="'+sitedir+'products_services_index.html"><img src="'+imgdir+'nav-prodserv.gif" width="117" height="27" alt="Products & Services" border="0"></a><br>';
navigation += '<a href="'+homedir+'prodserv/rates.html"><img src="'+imgdir+'nav-rates.gif" width="117" height="29" alt="Rates" border="0"></a><br>';
navigation += '<a href="'+sitedir+'calculators.html"><img src="'+imgdir+'nav-calculators.gif" width="117" height="27" alt="Calculators" border="0"></a><br>';
navigation += '<a href="'+sitedir+'contactus.html"><img src="'+imgdir+'nav-contactus.gif" width="117" height="27" alt="Contact Us" border="0"></a><br>';
navigation += '<a href="'+sitedir+'aboutus.html"><img src="'+imgdir+'nav-aboutus.gif" width="117" height="30" alt="About Us" border="0"></a><br>';
navigation += '<a href="'+sitedir+'help.html"><img src="'+imgdir+'nav-help.gif" width=117 height=29 alt="Help" border="0"></a><br>';
navigation += '<a href="'+homedir+'index.html"><img src="'+imgdir+'nav-home.gif" width=117 height=29 alt="Home" border="0"></a><br>';
navigation += '<img src="'+imgdir+'nav-bottom.gif" width=117 height=16 alt="" border="0"><br>';

document.write(navigation);
}

function footer() {
var footer = '';

footer += '<p><br></p>';
footer += '<div align="center">';
footer += '<!-- Begin FDIC DI EHL  Logos -->';
footer += '<table width="400" border="0">';
footer += '<tr>';
footer += '<td align="left"><a href="http://www.fdic.gov" target="_new"><img src="'+imgdir+'fdic.gif" border=0></a></td>';
footer += '<td align="center">';
footer += '<!-- BEGINNING OF DI COPYRIGHT -->';
footer += '<a href="http://www.digitalinsight.com" target="_new"><!--[if lt IE 7]><script type="text/javascript" src="https://www.bocokonline.com/mstinc/web/js/png.js"></script><![endif]--><img src="https://www.bocokonline.com/mstinc/web/images/di_140x34_2c.png" width="140" height="34" border="0" alt="Digital Insight, an Intuit company" /></A>';
footer += '<!-- END OF DI COPYRIGHT -->';
footer += '</td>';
footer += '<td align="right">';
footer += '<img src="'+imgdir+'equalhl.gif">';
footer += '</td>';
footer += '</tr>';
footer += '</table>';
footer += '</div>';
footer += '<br><br>';
footer += '<!-- End FDIC NFRONT EHL  LOGOS -->';
footer += '</td>';
footer += '<td width="5"><img src="'+imgdir+'pix-clear.gif" width="4" height="1" alt="" border="0"></td>';
footer += '</tr>';
footer += '</table>';
footer += '</td>';
footer += '<td width="10" bgcolor="#990033"><img src="'+imgdir+'pix-clear.gif" width="1" height="1" alt="" border="0"></td>';
footer += '</tr>';
footer += '</table>';
footer += '<table border="0" width="600" cellspacing="0" cellpadding="0">';
footer += '<tr>';
footer += '<td width="129"><img src="'+imgdir+'foot-left.gif" width="129" height="20" alt="" border="0"></td>';
footer += '<td width="438" bgcolor="#ffffff"><img src="'+imgdir+'pix-clear.gif" width="438" height="16" alt="" border="0"><br>';
footer += '<img src="'+imgdir+'pix-red.gif" width="438" height="4" alt="" border="0"></td>';
footer += '<td width="33"><img src="'+imgdir+'foot-right.gif" width="33" height="20" alt="" border="0"></td>';
footer += '</tr>';
footer += '<tr>';
footer += '<td colspan="3" background="'+imgdir+'pix-red.gif"><img src="'+imgdir+'pix-red.gif" width="2" height="4" alt="" border="0"></td>';
footer += '</tr>';
footer += '</table>';

document.write(footer);
}
