// JavaScript Documentvar undefined;function LinkAlert(URL,target,type) {	BANKNAME = "Fanning Bank";	MSG = new Array();	// 3rd party link disclosure	MSG[0] = "Links to other web sites found here are provided to assist in locating information.  The link between this web site and another does not constitute a product or program endorsement.  Fannin Bank does not assume responsibility for context of the web sites found at these links, or beyond, and does not attest to the accuracy or propriety of any information located there.  Each linked site may contain a different privacy policy and provide less security than the Fannin Bank web site.";	// email disclosure	MSG[1] = "WARNING: Before sending your e-mail message, please note this is not a secure transmission.  For your protection, please do not send any personal information (i.e., Social Security Number, account number, date of birth, etc.), via this general e-mail system, or any public e-mail system and instead call Fannin Bank at (903) 583-5522 if you wish to exchange such information.";	// calculator disclosure	MSG[2] = "This service is provided as a courtesy to the customer and the calculations are only estimates.  This information should not be relied upon for the customer's personal situation.";		if (type==undefined) type = 0;		if (target!=undefined) {		myTarget = "_blank";		myTarget = target;		if (type!="" && type!=undefined) return confirm(MSG[type]);		else if (confirm(MSG[0])) window.open(URL,myTarget);		}	else return confirm(MSG[0], type);	}function EmailAlert() {	return confirm("This email is NOT secure. DO NOT send sensitive personal or financial information (such as account numbers, passwords, PIN numbers or SSN numbers) using this email address.");	}function LaunchCalc(URL) {	URL = "https://gateway.fundsxpress.com/calculators/" + URL;	if ( LinkAlert('','',2) ) window.open (URL,'myCalculator','width=580,height=450');	}function isValidEmail(parmValue) {	var rex = new RegExp("^[\\w\\+-]+(\\.[\\w\\+-]+)?@((\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3})\|([\\w\\+-]+\\.[a-zA-Z]{2,}))$");	var pos = parmValue.search(rex);	if (pos < 0) {		return false;		} 	else {		return true;		}	}function mail(link_string,user,domain,nickname,subject) {    var nn = "";    var s = "";    if (nickname != "") nn = nickname + " ";	else  nn = make_nickname(link_string);    if (subject != "") s = "?subject=" + subject ;    document.write(link_string.link(make_href(user,domain,nn,s)));  } function make_href(user,domain,nickname,subject) {    address = "mail" + "to" + ":" + nickname + make_address(user,domain);	if (subject!=undefined) address = address + subject;	return address;    }function make_address(user,domain) {    return "&lt;" + user + "@" + domain + "&gt;" ;    }function make_nickname(link_string) {    var names = link_string.split(",");    if (names.length == 2) {      return names[1] + " " + names[0] + " ";    } else {      return "";    }  }
