// JavaScript Document

var undefined;

function LinkAlert(URL,target,type)

	{

	BANKNAME = "Farmers State 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(myURL)
	{
	window.open("https://gateway.fundsxpress.com/calculators/" + myURL,'myCalc','width=585,height=450,scrollbars=auto,resizable=yes');
	}
function LaunchMiniCalc() {
	
	window.open("/fabtvla/simple_calculator.html","mycalc","width=180,height=225,scrolling=no,resizable=no");
	}

function HREF(myURL,myTarget,myAttributes)
	{
	if (myTarget=="" || myTarget==undefined) myTarget="_self";
	if (myAttributes=="" || myAttributes==undefined) myAttributes="width=400,height=400";
	window.open(myURL, myTarget, myAttributes);
	}
