// JavaScript Document

var undefined;
var BankName = "Washington State Bank"
var MSG = "The " + BankName + " web site provides links to other web sites ";
	MSG = MSG + "for convenience and informational purposes only. Users should ";
	MSG = MSG + "be aware that when you select a link on the " + BankName + "'s web ";
	MSG = MSG + "site to an external web site, they are leaving " + BankName + "'s site.";
	MSG = MSG + "";
	MSG = MSG + "Linked sites are not under the control of " + BankName + ".";
	MSG = MSG + BankName + " is not responsible for the contents of any linked site ";
	MSG = MSG + "or any link contained in a linked site, or any changes or updates ";
	MSG = MSG + "to such sites. The inclusion of a link does not imply endorsement ";
	MSG = MSG + "by " + BankName + " of the site, its content, advertisers or sponsors. ";
	MSG = MSG + "External sites may contain information that is copyrighted with ";
	MSG = MSG + "restrictions on reuse. Permission to use copyrighted materials must ";
	MSG = MSG + "be obtained from the original source and cannot be obtained ";
	MSG = MSG + "from " + BankName + ".";

function LaunchCalc(myURL)
	{
	myBase = "https://gateway.fundsxpress.com/calculators/";
	window.open(myBase + myURL,'','width=585,height=450,scrollbars=yes,resizable=yes');
	}

function LinkAlert(URL,target)

	{
	myTarget = "_blank";
	if (target!=undefined) myTarget = target;
	if (confirm(MSG)) window.open(URL,myTarget);
	}

function EmailAlert() {
	msg = "THIS EMAIL ADDRESS IS NOT SECURE. \n\nDO NOT send sensitive personal or financial information such as Social Security numbers, account numbers, ATM PIN, etc. using this email address. Please log in to Internet banking and use the secure messaging tool there. \n\nFor your safety and privacy, specific account questions will not be answered that are initiated via this unsecured form.";
	return confirm(msg);
	}

function FormAlert()
	{
	return confirm(MSG);
	}
