var undefined;

function LaunchCalc(myURL)
	{
	myBase = "http://gateway.fundsxpress.com/calculators/";
	window.open(myBase + myURL,'','width=585,height=450,scrollbars=yes,resizable=yes');
	}

function LaunchBPCalc(myURL)
	{
	myBase = "calculator/CheckFree-Calculator/";
	window.open(myBase + myURL,'','width=450,height=240,scrollbars=yes,resizable=yes');
	}
	
function LinkAlert(URL)
	{
	MSG =       "You are leaving First National Bank of Liverpool's website and will be redirected to another site. ";
	MSG = MSG + "First National Bank of Liverpool makes no endorsements or claims about the accuracy or content of ";
	MSG = MSG + "the information contained in these sites.  The security and privacy policies on ";
	MSG = MSG + "these sites may be different than those of First National Bank of Liverpool.";
	if (URL!=undefined) 
		{
		if (confirm(MSG)) window.open(URL,"_blank");
		}
	else return confirm(MSG);
	}
	
function SearchSite()
	{
	myQuery = document.f.NewQuery.value;
	UpdateQuery = myQuery + " site:www.resourcebk.com";
	document.f.q.value = UpdateQuery;
	}

function write_mail(mailbox,domain,link_text) {
		text = (link_text!=undefined) ? link_text : make_address(mailbox,domain);
		document.write ("<a href='mailto:"+make_address(mailbox,domain)+"'>"+text+"</a>");
		}
	
function make_address(mailbox,domain) {
	return mailbox + "@" + domain;
	}

