/*var undefined;

function LinkAlert(URL,target) {
	BankName = "Citizens State Bank and Trust Company"
	MSG = "The " + BankName + " web site provides links to other web sites \n";
	MSG = MSG + "for convenience and informational purposes only. Users should \n";
	MSG = MSG + "be aware that when you select a link on the " + BankName + "'s web \n";
	MSG = MSG + "site to an external web site, they are leaving " + BankName + "'s site.\n";
	MSG = MSG + "\n";
	MSG = MSG + "Linked sites are not under the control of " + BankName + ".\n";
	MSG = MSG + BankName + " is not responsible for the contents of any linked site \n";
	MSG = MSG + "or any link contained in a linked site, or any changes or updates \n";
	MSG = MSG + "to such sites. The inclusion of a link does not imply endorsement \n";
	MSG = MSG + "by " + BankName + " of the site, its content, advertisers or sponsors. \n";
	MSG = MSG + "External sites may contain information that is copyrighted with \n";
	MSG = MSG + "restrictions on reuse. Permission to use copyrighted materials must \n";
	MSG = MSG + "be obtained from the original source and cannot be obtained \n";
	MSG = MSG + "from " + BankName + ".";
	
	myTarget = "_blank";
	if (target!=undefined) myTarget = target;
	if (confirm(MSG)) window.open(URL,myTarget);
}*/

var emailDisclaimer = "Messages sent to Citizens State Bank and Trust Company via e-mail are sent over the Internet and may not be transmitted in an encrypted or secure form. Caution is urged in the use of confidential information.";
var linkDisclaimer = "The Citizens State Bank and Trust Company web site provides links to other web sites for convenience and informational purposes only. Users should be aware that when you select a link on the Citizens State Bank and Trust Company's web site to an external web site, they are leaving Citizens State Bank and Trust Company's site. \n\nLinked sites are not under the control of Citizens State Bank and Trust Company. Citizens State Bank and Trust Company is not responsible for the contents of any linked site or any link contained in a linked site, or any changes or updates to such sites. The inclusion of a link does not imply endorsement by Citizens State Bank and Trust Company of the site, its content, advertisers or sponsors. External sites may contain information that is copyrighted with restrictions on reuse. Permission to use copyrighted materials must be obtained from the original source and cannot be obtained from Citizens State Bank and Trust Company.";

function mailConfirm(passedAddress) {
	if (confirm(emailDisclaimer)) {
		window.location.href = passedAddress;
	}
}

function disclaimer(passedWebsite) {
	var oWin;
	if (confirm(linkDisclaimer)) {
		oWin = window.open(passedWebsite,"newWindow");
		if (oWin === null || typeof(oWin) === "undefined") {
			window.location.href = passedWebsite;
		} else {
			return true;
		}
	}
}

function LaunchCalc(URL) {
	var calcwindow = window.open(URL,'myCalculator','width=590,height=450,scrollbars=yes,resizable=yes');
	calcwindow.focus();
}
	
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function protectWeatherLinks() {
	if (!document.getElementsByTagName || !document.getElementById) { return false; }
	var weatherContainer, links, i;
	weatherContainer = document.getElementById("wx_module_7430");
	links = weatherContainer.getElementsByTagName("a");
	for (i = 0; i < links.length; i++) {
		links[i].onclick = function() {
			disclaimer(this.href);
			return false;
		};
	}
}
