//pops third party warning then goes to website.
//use like <a href="javascript:third_party('https://www.hotmail.com');">
function third_party(URL3){
alert('You are leaving the credit union web site.  The site you are going to is not operated by the credit union.  The credit union is not responsible for the content of the third party site.  Privacy and security policies may differ from those practiced by the credit union.');
window.open(URL3);
}


/*****************************************************
*	Open Window Function
*****************************************************/

function openWin (url,width,height,extras) {
	if (window.open) {
		if (width < 0 || height < 0) {
			newWin = window.open(url,"new_win",extras);
		} else {
			newWin = window.open(url,"new_win","width="+ width +",height="+ height +","+ extras);
		}
	} else {
		return false;
	}
}

function showDisableAlert()
{
alert("We are currently updating our site.\nThis function will be restored shortly.");
}


var uri = document.location.href;
if (uri.indexOf('www') > -1)
{
	if(typeof(secure) != 'undefined' && secure == true)
	{ if(/^http:/.test(uri)) document.location.replace(uri.replace(/^http/,'https')); }
	else
	{ if(/^https:/.test(uri)) document.location.replace(uri.replace(/^https/,'http')); }
}