// for ag_links.htm, hotlinks.htm, index.shtml, pb_apply.htm, weather.htm
function leaveSite(url) {
	if (confirm("You are leaving Mound City Bank website and linking to a non-affiliated third party site. Please be advised that you will then link to " +
				"a website hosted by another party, where you will no longer be subject to, or under the protection of, the privacy and security policies " +
				"of Mound City Bank. We recommend that you review and evaluate the privacy and security policies of the site that you are entering. " +
				"Mound City Bank assumes no liability for the content, information, security, policies or transactions provided by these other sites. ")) {
		window.open(url);
	}
}

// Popup for search function on home page index.html
function leaveSite_search() {
	if (confirm("You are leaving Mound City Bank website and linking to a non-affiliated third party site. Please be advised that you will then link to " +
				"a website hosted by another party, where you will no longer be subject to, or under the protection of, the privacy and security policies " +
				"of Mound City Bank. We recommend that you review and evaluate the privacy and security policies of the site that you are entering. " +
				"Mound City Bank assumes no liability for the content, information, security, policies or transactions provided by these other sites. ")) {
		switch(ch) {
			case "y":
				window.open("http://search.yahoo.com/bin/search?p="+g);
				break;
			case "g":
				window.open("http://www.google.com/search?hl=en&q="+g);
				break;
			case "s":
				window.open("http://www.search.com/search?channel=1&tag=st.se.fd..sch&q="+g);
				break;
			case "r":
				window.open("http://search.rediff.com/dirsrch/default.asp?MT="+g+"&act.search.x=11&act.search.y=13");
				break;
			case "l":
				window.open("http://search.lycos.com/main/default.asp?lpv=1&loc=searchhp&query="+g+"&x=17&y=8");
				break;
			case "d":
				window.open("http://download.cnet.com/downloads/1,10150,0-10000-103-0-1-7,00.html?tag=srch&qt="+g+"&cn=Web+Authoring&ca=10000");
				break;
		}
	}
}