var undefined;function LaunchCalc(myURL)	{	myBase = "http://gateway.fundsxpress.com/calculators/";	window.open(myBase + myURL,'','width=585,height=450,scrollbars=yes,resizable=yes');	}	function LinkAlert(URL)	{	MSG =       "You are leaving The St. Henry Bank's website and will be redirected to another site.\n";	MSG = MSG + "The St. Henry Bank makes no endorsements or claims about the accuracy or content of \n";	MSG = MSG + "the information contained in these sites.  The security and privacy policies on \n";	MSG = MSG + "these sites may be different than those of The St. Henry Bank.";	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 update(num,element,xmonth)	{	// ******************************************	// Generate a date based on an offset of today's date and return a MM/DD/YYYY formatted string.	// This script is used for placing a current date in an HTML page without a form.	// ******************************************	now = new Date();	date = now.getDate();	if (isNaN(xmonth)) xmonth = 0;	month = now.getMonth()+1+xmonth;	lastMonth = month-1;	year= now.getYear();	date = (date - eval(num));	if (month<=0)		{		if (month==0)			{			month = "12";			year = year - 1;			}		else			{			month = month+12;			year = year -1;			}		}	if (date<=0)		{		month = month-1;		if (month==0)			{			month = "12";			year = year - 1;			}		if (month==2)			{			date = 28 + date;			}		if (month=="4" || month=="6" || month=="9" || month=="11")			{			date = 30 + date;			}		else			{			date = 31 + date;			}		}		if (month>12)			{			month = "1";			year = year + 1;			}	if (month==2 && date>28)		{		month = month + 1;		date = date - 28;		}	if ((month=="4" || month=="6" || month=="9" || month=="11") && date>30)		{		month = month + 1;		date = date - 30;		}	else		{		if (date>31)			{			month = month + 1;			date = date - 31;			}		}	if (year < 1000) year += 1900;	//Building varchar date.	if (month == "1") monthName="January";	if (month == "2") monthName="February";	if (month == "3") monthName="March";	if (month == "4") monthName="April";	if (month == "5") monthName="May";	if (month == "6") monthName="June";	if (month == "7") monthName="July";	if (month == "8") monthName="August";	if (month == "9") monthName="September";	if (month == "10") monthName="October";	if (month == "11") monthName="November";	if (month == "12") monthName="December";	myFullDate = monthName + " " + date + ", " + year;	// Building numerical date.	if (date<10)		{		date = "0" + date;		}	if (month<10)		{		dateStr= "0" + month + "/" + date + "/" + year;		}	else		{		dateStr = month + "/" + date + "/" + year;		}	myDate = dateStr;		// Writing date to specified field.	if (element == undefined) element=-1;	if (element >= 0) document.dateform.elements[element].value = dateStr;	return dateStr;	}