// JavaScript Documentvar undefined;function LinkAlert(URL,target,type) {	BANKNAME = "Mississippi River Bank";	MSG = new Array();	MSG[0] =       "You are now leaving "+BANKNAME+"'s website and will be redirected to another site. "+BANKNAME+" makes no endorsement or claims about the accuracy or content of information contained within  third party sites to which you may be going. The security and privacy policies on these sites may be different from "+BANKNAME+".";		myTarget = "_blank";	if (target!=undefined) myTarget = target;	if (type!="" && type!=undefined) alert(MSG[type]);	else if (confirm(MSG[0])) window.open(URL,myTarget);	}function LaunchCalc(URL) {	window.open (URL,'myCalculator','width=580,height=450');	}function newWindow() {	window.open("","launch","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=640,height=400");	}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 "";    }  }function ValidateEmailForm(theForm) {	if (theForm['!RFName'].value=="") {		alert("Please provide your name.");		theForm['!RFName'].focus();		return false;		}		if (theForm['!RLName'].value=="") {		alert("Please provide your last name.");		theForm['!RLName'].focus();		return false;		}		if (!isValidEmail(theForm['!REmail'].value)) {		alert("Please provide a valid email address");		theForm['!REmail'].focus();		return false;		}		// check for different types of XSS attacks	x = 0;		while (x < document.forms[theForm.name].elements.length) {		if (document.forms[theForm.name].elements[x].value!="") {			var InputString = document.forms[theForm.name].elements[x].value;			var pattern =/select|ipt>|ipt\s>|<scrip|<\sscrip|&gt|&lt|insert|union|update|delete|drop|--|-\s-|@@|@\s@|1=1|1\s=1|1\s=\s1/gi; 			var result;			while ((result=pattern.exec(InputString)) != null)				{					alert("The input you supplied contains invalid characters or words.\nDue to security reasons the following words are not accepted:\n\"Select\"\n\"Insert\"\n\"Update\"\n\"Delete\"\n\"Drop\"\n\"<\"\n\">\"\nPlease try to replace any of those works with:\nChoose, Add, Revise, Less Than, More Than or Remove\nPlease try again.")										//check if there are any tabs and show the tab before setting the focus					document.forms[theForm.name].elements[x].focus();					document.forms[theForm.name].elements[x].select();					return false;				}			}		x++;		}	// all checks pass, allow the form to submit	document.EmailUs.action = "https://secure.fundsxpress.com/cgi/benmail+";	return true;	}// This layer finds an object by ID and is cross-browser compliant.function getObj(name){ if (document.getElementById) {	   this.obj = document.getElementById(name);	   this.style = document.getElementById(name).style; } else if (document.all) {	   this.obj = document.all[name];	   this.style = document.all[name].style; } else if (document.layers) {	   if (document.layers[name])	   {	   	this.obj = document.layers[name];	   	this.style = document.layers[name];	   }	   else	   {	    this.obj = document.layers.testP.layers[name];	    this.style = document.layers.testP.layers[name];	   } }}