// JavaScript Document

var undefined;

function LinkAlert(URL,target)
	{
	BankName = "Sidney 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 LaunchCalc(Name)
	{
	myCalc = "https://gateway.fundsxpress.com/calculators/" + Name +".html";
	window.open(myCalc,'myCalculator','width=600,height=450,resizable=yes,scrollbars=yes');
	}
	
function openHomeAffordWindow()
{
	newHomeWindow=window.open("http://www.c2commerce.com/c2calculators/sidney/homeafford.asp","HomeAfford","status=yes,width=582,height=450,scrollbars=yes,menubar=yes");
	newHomeWindow.focus();
}
function openCollegeWindow()
{
	newCollegeWindow=window.open("http://www.c2commerce.com/c2calculators/sidney/college.asp","College","status=yes,width=582,height=450,scrollbars=yes,menubar=yes");
	newCollegeWindow.focus();
}
function openRentvsBuyWindow()
{
	newRentWindow=window.open("http://www.c2commerce.com/c2calculators/sidney/rentvsbuy.asp","RentVsBuy","status=yes,width=582,height=450,scrollbars=yes,menubar=yes");
	newRentWindow.focus();
}
function openRetirementWindow()
{
	newRetireWindow=window.open("http://www.c2commerce.com/c2calculators/sidney/retire.asp","Retire","status=yes,width=582,height=450,scrollbars=yes,menubar=yes");
	newRetireWindow.focus();
}
