	// Global Variables //
	var _isMoz = (navigator.appName == "Netscape");
	var _isIE = (navigator.appName == "Microsoft Internet Explorer");
	var _isLoaded = false, _timeOut = 0, _numMenus = 0;

	if (_isIE) {
		var _outLinkMsg = "West Suburban Bank has no control over information at any site hyperlinked to from this Site and makes no\n";
		_outLinkMsg += "representation concerning and is not responsible for the quality, content, nature, or reliability of any hyperlinked site \n";
		_outLinkMsg += "and is providing this hyperlink to you only as a convenience. The inclusion of any hyperlink does not imply any \n";
		_outLinkMsg += "endorsement, investigation, verification or monitoring by West Suburban Bank of any information in any hyperlinked \n";
		_outLinkMsg += "site. In no event shall West Suburban Bank be responsible for your use of a hyperlinked site. To remain at our site, \n";
		_outLinkMsg += "click Cancel. To leave our site for the link you selected, click OK. Thank you for visiting our site.";
	} else {
		var _outLinkMsg = "West Suburban Bank has no control over information at any site hyperlinked to from this Site and makes no representation concerning and is not responsible for the quality, content, ";
		_outLinkMsg += "nature, or reliability of any hyperlinked site  and is providing this hyperlink to you only as a convenience. The inclusion of any hyperlink does not imply any endorsement, investigation, ";
		_outLinkMsg += "verification or monitoring by West Suburban Bank of any information in any hyperlinked site. In no event shall West Suburban Bank be responsible for your use of a hyperlinked site. To remain ";
		_outLinkMsg += "at our site, click Cancel. To leave our site for the link you selected, click OK. Thank you for visiting our site.";
	}


	// getElementById //
	$ = function(_elementID) {
		return document.getElementById(_elementID);
	}

	// init function //
	init = function() {
		addLoadEvent(onLoad,"load");
	}

	// Manage onLoad events //
	addLoadEvent = function(_function,_event) {
		if ((document.all) && (window.attachEvent)) {
			window.attachEvent("on" + _event,_function);
		} else if (window.addEventListener) {
			window.addEventListener(_event,_function,false);
		}
	}

	// onLoad //
	onLoad = function() {
		var _ypos = new Array();
		var _queryString = window.location.search;
		var _regExp = /ypos=(\d+)/;
		_isLoaded = true;

		// If the url tells y us to scroll, then do so.
		if (_regExp.test(_queryString)) {
			_ypos = _regExp.exec(_queryString);
			_ypos = parseInt(_ypos[1]);

			if (_ypos > 0) {
				window.scroll(0,_ypos);
			}
		}
	}

	// Swap one image with another, '_on' & '_off' being the switches //
	swapImage = function(_elementID,_src) {
		var _element = "";
		if (_element = _src.match(/(.+)_off\.png$/)) {
			$(_elementID).src = _element[1] + "_on.png";
		} else {
			$(_elementID).src = _src.match(/(.+)_on\.png$/)[1] + "_off.png";
		}
	}

// Menu //
	menuOpen = function(_elementID) {
		hideAllMenus();
		$(_elementID).style.display = "block";
	}

	menuOver = function() {
		clearTimeout(_timeOut);
	}

	menuOut = function() {
		_timeOut = setTimeout("hideAllMenus()",500);
	}

	hideAllMenus = function() {
		for (_i=0;_i<_numMenus;_i++) {
			$("menuCat" + _i).style.display = "none";
		}
	}

	closeMenuAction = function(_elementID) {
		if (!_menuHasFocus) {
			$(_elementID).style.display = "none";
		}
	}
// End Menu //

	// When someone uses the dropdown on the deafault page //
	dropDownAction = function(_elementID,_index) {
		var _url = $(_elementID).options[_index].value;
		if (_url != "") {
			outLink(_url);
		}
		// Reset Dropdown //
		$(_elementID).selectedIndex = 0;
	}

	// Manage out links //
	outLink = function(_url) {
		if (confirm(_outLinkMsg)) {
			if (_isIE) {
				window.open(_url);
			} else {
				window.open(_url,_url);
			}
		}
	}

	// Echoes an eMail address //
	echoEmail = function(_user,_domain,_content) {
		document.write("<a href=\"mailto:" + _user + "@" + _domain + "\">" + _content + "</a>");
	}

	// Verify object //
	objectVerify = function() {
		_elements = new Array;
		this._i = 0;

		this.addElement = function(_elementID,_vType,_errMsg,_vPassive) {
			_elements[this._i] = [_elementID,_vType,_errMsg,_vPassive];
			this._i++;
		}

		this.getElement = function(_elementID) {
			return _elements[_elementID];
		}
	}

	// Pop uo window function //
	popUp = function(_file,_anchor,_width,_height) {
		if (!_width || !_height) {
			_width = 500;
			_height = 400;
		}
		if (_anchor != "") {
			_anchor = ("#" + _anchor);
		}
		window.open(_file + ".asp" + _anchor,_file,"width=" + _width + ",height=" + _height + ",menubar=yes,location=no,resizable=yes,scrollbars=yes,status=no");
	}

	// Form verification //
	verifyByObject = function(_vO,_submitBtnText,_submitBtnID) {
		var _vO = eval(_vO), _submitForm = true, _submitBtn = "", _i, _vField, _vType, _vPassive, _continue = true, _msg = "";
		var _errMsg = "Please Fill out all required fields";
		_submitBtnID = (_submitBtnID) ? _submitBtnID : "submitBtn";

		for (_i=0;_i<_vO._i;_i++) {
			if (_vField = $(_vO.getElement(_i)[0])) {
				if (!_vField.disabled) {
					_vType = _vO.getElement(_i)[1];
					_vErrMsg = _vO.getElement(_i)[2];
					_vPassive = _vO.getElement(_i)[3];
					_vField.style.borderColor = "";

					if ((_vPassive) && (_vField.value == "")) {
						_continue = true;
					} else {
						_continue = false;
					}

					if (!_continue) {
						// eMail verification //
						if (_vType == "eMail") {
							if (_vField.value.match(/[a-zA-Z0-9._%-]+@[a-zA-Z0-9._%-]+\.[a-zA-Z]{2,4}/) != _vField.value) {
								_submitForm = false;
								_vField.style.borderColor = "#ff0000";
								_msg = (_msg != _errMsg) ? "Value must be an eMail Address\nex: User@Domain.com" : _msg;
							}
						// Zip code verification //
						} else if (_vType == "zip") {
							if (_vField.value.match(/[0-9]{5}/) != _vField.value) {
								_submitForm = false;
								_vField.style.borderColor = "#ff0000";
								_msg = (_msg != _errMsg) ? "Value must be a Zip Code\nex: 97220" : _msg;
							}
						// "checked" verification //
						} else if (_vType == "checked") {
							if (!_vField.checked) {
								_submitForm = false;
								_msg = (_msg != _errMsg) ? _vErrMsg : _msg;
							}
						// Numerical verification //
						} else if (_vType == "numeric") {
							var _regEx = /[0-9]/;
							if (!_regEx.test(_vField.value)) {
								_submitForm = false;
								_vField.style.borderColor = "#ff0000";
								_msg = (_msg != _errMsg) ? "Value must be a Number\nex: 1219" : _msg;
							}
						// Check multiple checkboxes for "checked", at least one must be checked //
						} else if (_vType == "multChecked") {
							var _j, _checkArray = _vErrMsg, _checkCount = 0;

							for (_j=1;_j<_checkArray.length;_j++) {
								if ($(_checkArray[0] + _checkArray[_j]).checked) {
									_checkCount++;
								}
							}

							if (_checkCount == 0) {
								_submitForm = false;
								_msg = (_msg != _errMsg) ? _oErrMsg : _msg;
							}
						// Check if given select's selected element's value is not "" //
						} else if (_vType == "select") {
							if (_vField.options[_vField.selectedIndex].value == "") {
								_submitForm = false;
								_vField.style.borderColor = "#ff0000";
								_msg = (_msg != _errMsg) ? _vErrMsg : _msg;
							}
						// Checks two password fields //
						} else if (_vType == "passwd") {
							var _checkArray = _vErrMsg, _badPasswd = false;
							_badPasswd = ($(_checkArray[2]).value != $(_checkArray[3]).value) ? true : _badPasswd;
							_badPasswd = ($(_checkArray[2]).value.length < _checkArray[1]) ? true : _badPasswd;
							_badPasswd = ($(_checkArray[3]).value.length < _checkArray[1]) ? true : _badPasswd;
							_badPasswd = ($(_checkArray[3]).value.search(/[0-9]/) == -1) ? true : _badPasswd;
							_badPasswd = ($(_checkArray[3]).value.search(/[a-zA-Z]/) == -1) ? true : _badPasswd;
							if (_badPasswd) {
								_submitForm = false;
								$(_checkArray[2]).style.borderColor = "#ff0000";
								$(_checkArray[3]).style.borderColor = "#ff0000";
								_msg = (_msg != _errMsg) ? _checkArray[0] : _msg;
							} else {
								$(_checkArray[2]).style.borderColor = "";
								$(_checkArray[3]).style.borderColor = "";
							}
						// Radio verification //
						} else if (_vType == "radio") {
							var _j, _checkArray = _vErrMsg, _checkCount = 0;

							for (_j=0;_j<_checkArray.length;_j++) {
								if ($(_checkArray[_j]).checked) {
									_checkCount++;
								}
							}

							if (_checkCount == 0) {
								_submitForm = false;
								_msg = (_msg != _errMsg) ? _oErrMsg : _msg;
							}
						// Phone # //
						} else if (_vType == "phone") {
							var _regEx = /\(?[0-9]{3}\)?[ -.]?[0-9]{3}[ -.]?[0-9]{4}( ext\. [0-9]+)?/;
							if (!_regEx.test(_vField.value)) {
								_submitForm = false;
								_vField.style.borderColor = "#ff0000";
								_msg = (_msg != _errMsg) ? _vErrMsg : _msg;
							}
						// Phone # //
						} else if (_vType == "date") {
							var _regEx = "/[0-9]{2}[-/][0-9]{2}[-/](19|20)?([0-9]{2})/";
							if (!_regEx.test(_vField.value)) {
								_submitForm = false;
								_vField.style.borderColor = "#ff0000";
								_msg = (_msg != _errMsg) ? _vErrMsg : _msg;
							}
						// Normal verification //
						} else if (_vField.value == "") {
							_submitForm = false;
							_vField.style.borderColor = "#ff0000";
							_msg = _errMsg;
						}
					}
				}
			} else {
				window.alert("'" + _vO.getElement(_i)[0] + "' does not exist.");
			}
		}

		if (_submitForm == true) {
			if (_submitBtn = $(_submitBtnID)) {
				_submitBtn.disabled = true;
				_submitBtn.value = _submitBtnText;
			}
			return true;
		} else {
			window.alert(_msg);
			return false;
		}
	}

// From old site //
	function open1window() {
		new1window = window.open("locationTimes.asp#101 North Lake Street","HomeAfford","status=yes,width=500,height=220,scrollbars=yes,menubar=yes");
		new1window.focus();
	}
	function open2window() {
		new2window = window.open("locationTimes.asp#2000 west galena boulevard","College","status=yes,width=500,height=230,scrollbars=yes,menubar=yes");
		new2window.focus();
	}
	function open3window() {
		new3window = window.open("locationTimes.asp#335 North Eola Road","RentVsBuy","status=yes,width=500,height=220,scrollbars=yes,menubar=yes");
		new3window.focus();
	}
	function open4window() {
		new4window = window.open("locationTimes.asp#1061 west stearns road","Retire","status=yes,width=500,height=220,scrollbars=yes,menubar=yes");
		new4window.focus();
	}
	function open5window() {
		new5window = window.open("locationTimes.asp#355 west Army trial Road","Retire","status=yes,width=500,height=220,scrollbars=yes,menubar=yes");
		new5window.focus();
	}
	function open6window() {
		new6window = window.open("locationTimes.asp#672 East boughton Road","Retire","status=yes,width=500,height=220,scrollbars=yes,menubar=yes");
		new6window.focus();
	}
	function open7window() {
		new7window = window.open("locationTimes.asp#1104 west boughton road","Retire","status=yes,width=500,height=220,scrollbars=yes,menubar=yes");
		new7window.focus();
	}
	function open8window() {
		new8window = window.open("locationTimes.asp#402 north gary avenue","Retire","status=yes,width=500,height=220,scrollbars=yes,menubar=yes");
		new8window.focus();
	}
	function open9window() {
		new9window = window.open("locationTimes.asp#1380 amry trail road","Retire","status=yes,width=500,height=220,scrollbars=yes,menubar=yes");
		new9window.focus();
	}
	function open10window() {
		new10window = window.open("locationTimes.asp#879 east geneva road","Retire","status=yes,width=500,height=220,scrollbars=yes,menubar=yes");
		new10window.focus();
	}
	function open11window() {
		new11window = window.open("locationTimes.asp#8001 south cass avenue","Retire","status=yes,width=500,height=220,scrollbars=yes,menubar=yes");
		new11window.focus();
	}
	function open12window() {
		new12window = window.open("locationTimes.asp#1005 75th street","Retire","status=yes,width=500,height=220,scrollbars=yes,menubar=yes");
		new12window.focus();
	}
	function open13window() {
		new13window = window.open("locationTimes.asp#2800 South Finley Road","Retire","status=yes,width=500,height=220,scrollbars=yes,menubar=yes");
		new13window.focus();
	}
	function open14window() {
		new14window = window.open("locationTimes.asp#1657 Bloomingdale","Retire","status=yes,width=500,height=220,scrollbars=yes,menubar=yes");
		new14window.focus();
	}
	function open15window() {
		new15window = window.open("locationTimes.asp#711 S. Westmore","Retire","status=yes,width=500,height=220,scrollbars=yes,menubar=yes");
		new15window.focus();
	}
	function open16window() {
		new16window = window.open("locationTimes.asp#707 North Main","Retire","status=yes,width=500,height=220,scrollbars=yes,menubar=yes");
		new16window.focus();
	}
	function open17window() {
		new17window = window.open("locationTimes.asp#10 Saravanos Drive","Retire","status=yes,width=500,height=220,scrollbars=yes,menubar=yes");
		new17window.focus();
	}
	function open18window() {
		new18window = window.open("locationTimes.asp#1122 South Main","Retire","status=yes,width=500,height=220,scrollbars=yes,menubar=yes");
		new18window.focus();
	}
	function open19window() {
		new19window = window.open("locationTimes.asp#1830 Douglas Road","Retire","status=yes,width=500,height=220,scrollbars=yes,menubar=yes");
		new19window.focus();
	}
	function open20window() {
		new20window = window.open("locationTimes.asp#2020 Feldott Lane","Retire","status=yes,width=500,height=220,scrollbars=yes,menubar=yes");
		new20window.focus();
	}
	function open21window() {
		new21window = window.open("locationTimes.asp#17 W 754 22nd","Retire","status=yes,width=500,height=220,scrollbars=yes,menubar=yes");
		new21window.focus();
	}
	function open22window() {
		new22window = window.open("locationTimes.asp#315 South Randall","Retire","status=yes,width=500,height=220,scrollbars=yes,menubar=yes");
		new22window.focus();
	}
	function open23window() {
		new23window = window.open("locationTimes.asp#40 East St. Charles","Retire","status=yes,width=500,height=220,scrollbars=yes,menubar=yes");
		new23window.focus();
	}
	function open24window() {
		new24window = window.open("locationTimes.asp#3 S 041 Rout 59","Retire","status=yes,width=500,height=220,scrollbars=yes,menubar=yes");
		new24window.focus();
	}
	function open25window() {
		new25window = window.open("locationTimes.asp#6400 South Cass","Retire","status=yes,width=500,height=220,scrollbars=yes,menubar=yes");
		new25window.focus();
	}
	function open26window() {
		new26window = window.open("locationTimes.asp#221 South West","Retire","status=yes,width=500,height=220,scrollbars=yes,menubar=yes");
		new26window.focus();
	}
	function open27window() {
		new27window = window.open("locationTimes.asp#295 West Loop","Retire","status=yes,width=500,height=220,scrollbars=yes,menubar=yes");
		new27window.focus();
	}
	function open28window() {
		new28window = window.open("locationTimes.asp#3000 East Main","Retire","status=yes,width=500,height=220,scrollbars=yes,menubar=yes");
		new28window.focus();
	}
	function open29window() {
		new29window = window.open("locationTimes.asp#505 North Weber Road","Retire","status=yes,width=500,height=220,scrollbars=yes,menubar=yes");
		new29window.focus();
	}
	function open30window() {
		new30window = window.open("locationTimes.asp#5330 South Main Street","Retire","status=yes,width=500,height=220,scrollbars=yes,menubar=yes");
		new30window.focus();
	}
	function open31window() {
		new31window = window.open("locationTimes.asp#1870 McDonald Road","Retire","status=yes,width=500,height=220,scrollbars=yes,menubar=yes");
		new31window.focus();
	}
	function open32window() {
		new32window = window.open("locationTimes.asp#1296 East Chicago Avenue","Retire","status=yes,width=500,height=220,scrollbars=yes,menubar=yes");
		new32window.focus();
	}
	function open33window() {
		new33window = window.open("locationTimes.asp#2830 Route 34","Retire","status=yes,width=500,height=220,scrollbars=yes,menubar=yes");
		new33window.focus();
	}
	function open34window() {
		new34window = window.open("locationTimes.asp#1071 Station Dr","Retire","status=yes,width=500,height=220,scrollbars=yes,menubar=yes");
		new34window.focus();
	}
	function LaunchCalc(Name) {
		myCalc = "https://gateway.fundsxpress.com/calculators/" + Name +".html";
			window.open(myCalc,'myCalculator','width=600,height=450,resizable=yes,scrollbars=yes');
	}

	init();
