// JavaScript Document

var undefined;
var active_button;


function LinkAlert(URL,target)

	{

	BankName = "First Bank of Owasso";
	MSG = "The First Bank of Owasso's web site provides links to other web sites for convenience and informational purposes only. Users should be aware that when you select a link on the First Bank of Owasso's web site to an external web site, they are leaving First Bank of Owasso‘s site. Linked sites are not under the control of First Bank of Owasso. First Bank of Owasso is not responsible for the contents of any linked site or any link contained in a linked site, or any changes or updates to such sites. The inclusion of a link does not imply endorsement by First Bank of Owasso of the site, its content, advertisers or sponsors. External sites may contain information that is copyrighted with restrictions on reuse. Permission to use copyrighted materials must be obtained from the original source and cannot be obtained from First Bank of Owasso.\n\n Press OK to go to the link that you have selected.";
	
	myTarget = "_blank";
	if (target!=undefined) myTarget = target;
	if (confirm(MSG)) window.open(URL,myTarget);
	}

function openNewWindow()
{
	newNewWindow=window.open("https://secure2.fundsxpress.com/secure/X2ZFBOO/new_account_app.htm","NewAccount","status=yes,width=683,height=450,scrollbars=yes,top=0,left=0,resizable=yes,toolbar=yes");
	if (navigator.appVersion.toLowerCase().indexOf("msie") != -1 && parseInt(navigator.appVersion) <= 4 && navigator.appVersion.toLowerCase().indexOf("msie 5.0") == -1) 
	{
		//Older versions of IE can't handle the focus
	}
	else newNewWindow.focus();
}

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://gateway.fundsxpress.com/calculators/MortgageQualifier.html","HomeAfford","status=yes,width=540,height=450,scrollbars=yes,menubar=yes,top=0,left=0,resizable=yes,");
	if (navigator.appVersion.toLowerCase().indexOf("msie") != -1 && parseInt(navigator.appVersion) <= 4 && navigator.appVersion.toLowerCase().indexOf("msie 5.0") == -1) 
	{
		//Older versions of IE can't handle the focus
	}
	else newHomeWindow.focus();
}
function openCollegeWindow()
{
	newCollegeWindow=window.open("http://gateway.fundsxpress.com/calculators/CollegeSavings.html","College","status=yes,width=540,height=450,scrollbars=yes,menubar=yes,top=0,left=0,resizable=yes,");
	if (navigator.appVersion.toLowerCase().indexOf("msie") != -1 && parseInt(navigator.appVersion) <= 4 && navigator.appVersion.toLowerCase().indexOf("msie 5.0") == -1) 
	{
		//Older versions of IE can't handle the focus
	}
	else newCollegeWindow.focus();
}
function openRentvsBuyWindow()
{
	newRentWindow=window.open("http://gateway.fundsxpress.com/calculators/MortgageRentvsBuy.html","RentVsBuy","status=yes,width=540,height=450,scrollbars=yes,menubar=yes,top=0,left=0,resizable=yes,");
	if (navigator.appVersion.toLowerCase().indexOf("msie") != -1 && parseInt(navigator.appVersion) <= 4 && navigator.appVersion.toLowerCase().indexOf("msie 5.0") == -1) 
	{
		//Older versions of IE can't handle the focus
	}
	else newRentWindow.focus();
}
function openRetireWindow()
{
	newRetireWindow=window.open("http://gateway.fundsxpress.com/calculators/RetirementPlan.html","Retire","status=yes,width=540,height=450,scrollbars=yes,menubar=yes,top=0,left=0,resizable=yes,");
	if (navigator.appVersion.toLowerCase().indexOf("msie") != -1 && parseInt(navigator.appVersion) <= 4 && navigator.appVersion.toLowerCase().indexOf("msie 5.0") == -1) 
	{
		//Older versions of IE can't handle the focus
	}
	else newRetireWindow.focus();
}
function openInstallWindow()
{
	newInstallmentWindow=window.open("http://gateway.fundsxpress.com/calculators/MortgageLoan.html","Retire","status=yes,width=540,height=450,scrollbars=yes,menubar=yes,top=0,left=0,resizable=yes,");
	if (navigator.appVersion.toLowerCase().indexOf("msie") != -1 && parseInt(navigator.appVersion) <= 4 && navigator.appVersion.toLowerCase().indexOf("msie 5.0") == -1) 
	{
		//Older versions of IE can't handle the focus
	}
	else newInstallmentWindow.focus();
}
