// JavaScript Document
var undefined;



function LinkAlert(URL,target)

	{

	BankName = "Farmers Bank"
	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);
	}

function Calculator(myURL)
	{
	myBase = "https://gateway.fundsxpress.com/calculators/";
	window.open(myBase + myURL,'','width=585,height=450,scrollbars=yes,resizable=yes');
	}


function EmailWarning()  {
        if(confirm("Please do NOT transmit any confidential material via the e-mail address on this page. If you are sending us any personal or account information, please use our secure e-mail function through our online banking service. To access our secure e-mail service, log onto your Online bank account and click on Messages and then select Contact Us.")) { return true;
} 
history.go(0);
return false;
}

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 "";
    }
  }


<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

theImages[0] = 'images/photos/masthead_1.jpg'
theImages[1] = 'images/photos/masthead_2.jpg'
theImages[2] = 'images/photos/masthead_3.jpg'
theImages[3] = 'images/photos/masthead_4.jpg'
theImages[4] = 'images/photos/masthead_5.jpg'
theImages[5] = 'images/photos/masthead_6.jpg'
theImages[6] = 'images/photos/masthead_7.jpg'
theImages[7] = 'images/photos/masthead_8.jpg'
theImages[8] = 'images/photos/masthead_9.jpg'
theImages[9] = 'images/photos/masthead_10.jpg'
theImages[10] = 'images/photos/masthead_11.jpg'
theImages[11] = 'images/photos/masthead_12.jpg'
theImages[12] = 'images/photos/masthead_13.jpg'
theImages[13] = 'images/photos/masthead_14.jpg'
theImages[14] = 'images/photos/masthead_15.jpg'
theImages[15] = 'images/photos/masthead_16.jpg'
theImages[16] = 'images/photos/masthead_17.jpg'
theImages[17] = 'images/photos/masthead_18.jpg'
theImages[18] = 'images/photos/masthead_19.jpg'
theImages[19] = 'images/photos/masthead_20.jpg'
theImages[20] = 'images/photos/masthead_21.jpg'
theImages[21] = 'images/photos/masthead_22.jpg'

// do not edit anything below this line

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'">');
}

//  End -->