var header = '<TR><TD align=right bgColor=#f86004 colSpan=2 height=28>'
+'<IMG src="images/text.gif">'
+'</TD></TR>'
+'<TR><TD bgColor=#fb9a60 colSpan=2>'
+'<IMG height=3 src="images/pix.gif">'
+'</TD></TR>'
+'<TR><TD colSpan=2>'
+'<A href="index.htm"><IMG src="images/logo.gif" border=0></A>'
+'<IMG src="images/house.gif" border=0>'
+'</TD></TR>'
+'<TR><TD bgColor=#fb9a60 colSpan=2>'
+'<IMG height=3 src="images/pix.gif">'
+'</TD></TR>'
+'<TR><TD bgColor=#f86004 colSpan=2 height=20>'
+'<IMG height=1 src="images/pix.gif">'
+'</TD></TR>';

var footer = '<TD bgColor=#cccccc><IMG src="images/pix.gif"></TD>'
+'<TD><TABLE cellSpacing=0 cellPadding=3 width=607 border=0><TBODY><TR>'
+'<TD align=middle width=423 bgColor=#ececeb>'
+'<A class=black href="TermsOfUse.htm">Terms of Use</A> | ' 
+'<A class=black href="FAQs.htm">FAQs</A> | '
+'<A class=black href="PrivacyPolicySecurity.htm">Privacy Policy &amp; Security</A> | '
+'<A class=black href="ContactUs.htm">Contact Us</A> | '
+'<A class=black href="SiteMap.htm">Site Map</A>'
+'<BR><BR>'
+'<SPAN class=small>&copy; 2010 Discover Bank, Member FDIC.</SPAN>'
+'</TD>'
+'<TD align=middle bgColor=#cccccc>'
+'<IMG src="images/fdic.gif" border=0> &nbsp;<IMG src="images/housinglender.gif" border=0>'
+'</TD>'
+'</TR></TBODY></TABLE></TD>';

var menu = '<TD align=left bgColor=#cccccc><IMG height=2 src="images/pix.gif" border=0>'
+'<DIV><DIV><DIV style="DISPLAY: none">'
+'<UL id=imenus0 style="WIDTH: 160px">'
+'<LI id="home" style="WIDTH: 100%"><A href="index.htm">Home</A></LI>'
+'<LI id="bankCtr" style="WIDTH: 100%"><A href="BankingCenter.htm">Banking Center</A>'
+'<DIV><DIV style="LEFT: 160px; WIDTH: 146px; TOP: -26px">'
+'<UL><LI><A href="https://demo1.onlinebank.com/vtg/login.htm?banknr=1299">Take a tour</A></LI>'
+'<LI><A href="https://global1.onlinebank.com/vtgv/vtgr.htm?tmpl=reginfo.htm&amp;banknr=1299">Register here</A></LI>'
+'</UL></DIV></DIV></LI>'
+'<LI id="prodServ" style="WIDTH: 100%"><A href="ProductsServices.htm">Products and Services</A>'
+'<DIV><DIV style="LEFT: 160px; WIDTH: 146px; TOP: -27px">'
+'<UL><LI><A href="Checking.htm">Checking</A>'
+'<DIV><DIV style="LEFT: 140px; WIDTH: 150px; TOP: -27px">'
+'<UL><LI><A href="Checking.htm#per">Personal Checking</A></LI>'
+'<LI><A href="Checking.htm#sup">Super Now Checking</A></LI>'
+'<LI><A href="Checking.htm#55">55 + Checking</A></LI>'
+'<LI><A href="Checking.htm#bus">Business Checking</A></LI>'
+'</UL></DIV></DIV></LI>'
+'<LI><A href="Savings.htm">Savings</A>'
+'<DIV><DIV style="LEFT: 140px; WIDTH: 150px; TOP: -22px">'
+'<UL><LI><A href="StatementSavings.htm">Statement Savings</A></LI>'
+'<LI><A href="BusinessSavings.htm">Business Savings</A></LI>'
+'<LI><A href="MoneyMarketSavings.htm">Money Market Account</A></LI>'
+'<LI><A href="SavingsClub.htm">Savings Club</A></LI>'
+'<LI><A href="CDSavings.htm">Certificate of Deposit (CD)</A></LI>'
+'<LI><A href="IRASavings.htm">Individual Retirement Account (IRA)</A></LI>'
+'</UL></DIV></DIV></LI>'
+'<LI><A href="Loans.htm">Loans</A>'
+'<DIV><DIV style="LEFT: 140px; WIDTH: 150px; TOP: -23px">'
+'<UL><LI><A href="PersonalLoans.htm">Personal Loans - Secured &amp; Unsecured</A></LI>'
+'<LI><A href="ResidentialMortgages.htm">Residential Mortgages</A></LI>'
+'</UL></DIV></DIV></LI>'
+'<LI><A href="SpecialServices.htm">Special Services</A>'
+'</UL></DIV></DIV></LI>'
+'<LI id="ratesCal" style="WIDTH: 100%"><A href="RatesCalculators.htm">Rates and Calculators</A>'
+'<DIV><DIV style="LEFT: 160px; WIDTH: 146px; TOP: -26px">'
+'<UL><LI><A href="Rates.htm">Product Rate Schedule</A></LI>'
+'<LI><A href="Calculator.htm">Calculators</A></LI>'
+'</UL></DIV></DIV></LI>'
+'<LI id="aboutUs" style="WIDTH: 100%;"><A href="AboutUs.htm">About Us</A>'
+'<DIV><DIV style="LEFT: 160px; WIDTH: 150px; TOP: -26px">'
+'<UL><LI><A href="History.htm">History</A></LI>'
+'<LI><A href="CommunityDevelopmentInvestments.htm">Discover Community Development Investments</A></LI>'
+'<LI><A href="LocalEfforts.htm">Local Efforts</A></LI>'
+'<LI><A href="ScholarshipOpportunities.htm">Scholarship Opportunities</A></LI>'
+'</UL></DIV></DIV></LI></UL>'
+'<DIV style="CLEAR: left"></DIV></DIV></DIV></DIV>'
+'<div style="text-align: center; margin-top: 20px;">'
/*+'<a href="http://www.discoverbank.perkseveryday.com">'
+'<img src="images/perks2.gif" height="125" width="125" alt="perks" border="0" /></a>'*/
+'</div>'
+'<!-- Do not change the location of below script tag -->'
+'<script src="js/menuScript.js" type="text/javascript" charset="utf-8"></script>'
+'<BR><BR><P align=center><A href="http://www.discovercard.com/" target=_blank>'
+'<IMG src="images/discovercard.gif" border=0></A></P>'
+'<BR><BR><P align=center><IMG src="images/FDICDisclosure_mydiscoverbank.jpg" border=0></P>'
+'</TD>';

//********************************** Menu Settings & Styles **********************************
function imenus_data0()
{
	this.unlock = "Add your unlock code here."
	this.enable_visual_design_mode = false
	this.main_is_horizontal = false
	this.menu_showhide_delay = 138

	/*---------------------------------------------
	Images (expand and pointer icons)
	---------------------------------------------*/
	
	this.main_expand_image_width = '0'
	this.main_expand_image_height = '0'
	this.main_expand_image_offx = '0'
	this.main_expand_image_offy = '0'

	this.sub_expand_image = 'images/arrow_sub.gif'
	this.sub_expand_image_hover = 'images/arrow_sub.gif'
	this.sub_expand_image_width = '10'
	this.sub_expand_image_height = '13'
	this.sub_expand_image_offx = '0'
	this.sub_expand_image_offy = '0'

	this.main_pointer_image = 'images/arrow_down.gif'
	this.main_pointer_image_width = '10'
	this.main_pointer_image_height = '11'
	this.main_pointer_image_offx = '-3'
	this.main_pointer_image_offy = '-14'

	this.sub_pointer_image_width = '0'
	this.sub_pointer_image_height = '0'
	this.sub_pointer_image_offx = '0'
	this.sub_pointer_image_offy = '0'

	/*---------------------------------------------
	Global Menu Styles
	---------------------------------------------*/
	
	//Main Menu
	this.main_container_styles = "background-color:#cccccc; border-style:none; border-width:0px; padding:2px; margin:0px; "
	this.main_item_styles = "color:#363636; text-align:left; font-family:Arial; font-size:13px; font-weight:bold; font-style:normal; text-decoration:none; border-style:solid; border-color:#cccccc; border-width:1px; padding:2px 8px; "
	this.main_item_hover_styles = "background-color:#696969; color:#ffffff; text-decoration:none; "
	this.main_item_active_styles = "background-color:#696969; color:#ffffff; text-decoration:none; "

	//Sub Menu
	this.subs_container_styles = "background-color:#ececeb; border-style:solid; border-color:#000000; border-width:1px; padding:5px; margin:4px 0px 0px; "
	this.subs_item_styles = "color:#000000; text-align:left; font-family:Arial; font-size:11px; font-weight:normal; text-decoration:none; border-style:none; border-color:#000000; border-width:1px; padding:2px 5px; "
	this.subs_item_hover_styles = "background-color:#f86004; color:#ffffff; text-decoration:underline; "
	this.subs_item_active_styles = "background-color:#f86004; color:#ffffff; "
}

function popWindow(page,xwidth,ywidth,sScroll,ToolBr) 
{
	var winPar='width='+xwidth+',height='+ywidth+',screenX=100,left=50,resizable=0,screenY=50,screenX=50,top=50,toolbar='+ToolBr+',scrollbars='+sScroll
	window.open(page,'window1',winPar);
}
function popUp(URL) 
{
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=1,scrollbars=1,location=1,statusbar=0,menubar=1,resizable=1,width=800,height=300');");
}
//new code
var winUrl = null;
var childWindow = null;

function showWin(url, windowName, features)
{
	window.name = "mainWin";
	winUrl = url;

	 // Simple Browser Check
	var ns4 = (document.layers) ? 1 : 0;
	var ie4 = (document.all) ? 1 : 0;
	var ns6 = (document.getElementById && !document.all) ? 1 : 0;


	// Browser Window Dimensions
	function windowWid()
	{
		return (ns4||ns6) ? window.innerWidth : document.body.clientWidth;
	}
	function windowHei()
	{
		return (ns4||ns6) ? window.innerHeight : screen.height;
	}

	// Example Use
	var displaywidth = windowWid();
	var displayheight = windowHei();

	var percwidth =  Math.round(displaywidth * 0.80);
	var percheight = Math.round(displayheight * 0.50);

	var winAttributes = "width=" + percwidth + ", height=" + percheight + ",top=30,left=30,scrollbars=1,toolbar=1,menubar=1 " +  features;

	//launch the new window and capture a reference to that window
	childWindow = window.open(url,windowName,winAttributes);

	//bring "focus" to the new window so it appears on top of the window stack
	childWindow.focus();
}

function showBrowserWin(url, windowName)
{
     showWin(url, windowName, "resizable,scrollbars,menubar,status,toolbar,location");
}
//end new code

function ShowConfirm(sURL) 
{
	if (confirm("You are exiting the site.")) 
	{
		document.location=(sURL);
	}
}

function forgotpswd() 
{
	 if (document.loginForm.UserID.value.length == 0) 
	 {
		alert("Please enter your User ID");
		document.loginForm.UserID.focus();
	 }
	 else 
	 {
	    document.loginForm.Action.value = "Forgot Password";
	    document.loginForm.submit();
	 }
}

// only allow numbers to be entered
function isValid(parm) 
{
	var numb = '0123456789.';

	for (i=0; i<parm.length; i++) 
	{
		if (numb.indexOf(parm.charAt(i),0) == -1) return false;
  	}
	return true;
}