﻿function signInClick()
{
	var signInSelect = document.getElementById("signInSelect");
	var option = signInSelect.options[signInSelect.selectedIndex].value;
	if (option == "InternetBanking")
	{
		goToInternetBanking();
	}
	else if (option == "clientResearch")
	{
		goToClientResearch();
	}
}

function goToInternetBanking()
{
	var width = getFullScreenWidth();
	var height = getFullScreenHeight();
	var ibwin = window.open("/Internet_Banking_Alert/index.asp","internetbanking","width=" + width + ",height=" + height + ",scrollbars=1,status=1,top=0,left=0,directories=0,location=0,menubar=0,toolbar=0,resizable=1,screenX=0,screenY=0,hotkeys=0");
}

function getFullScreenWidth() {
	if (screen.availWidth >= 0)
		return (screen.availWidth - 10);
	return (screen.width - 10);
}

function getFullScreenHeight() {
	if (screen.availHeight >= 0)
		return (screen.availHeight - 45);
	return (screen.height - 75);
}


function goToClientResearch()
{
	switch (window.location.hostname)
	{
		default:
			window.open("/sites/far/");
        	break;
	}
}