﻿// JScript File

function popNewWindowWarning(gotoURL) {
		msg = 'You are leaving First Mutual Bank\'s website. Please read that website\'s Terms of Use.';
        doyou = confirm(msg);
    if (doyou == true){
	    var windowSettings="scrollbars=yes,toolbar=yes,directories=no,menubar=yes,resizable=yes,status=yes";
	    newwindow=open('http://'+gotoURL+'','post_window',windowSettings);
	}
	else{history.go(-0);
	}
}

function popNewWindowWarningSecure(gotoURL) {
		msg = 'You are leaving First Mutual Bank\'s website. Please read that website\'s Terms of Use.';
        doyou = confirm(msg);
if (doyou == true){
	var windowSettings="scrollbars=yes,toolbar=yes,directories=no,menubar=yes,resizable=yes,status=yes";
	newwindow=open('https://'+gotoURL+'','post_window',windowSettings);
	}
	else{history.go(-0);
	}
}

function popNewWindowEmailForm(gotoURL) {
	var windowSettings="scrollbars=yes,toolbar=yes,directories=no,menubar=yes,resizable=yes,status=yes,width=500,height=560,left=20,top=20";
	newwindow=open(gotoURL,'contact_window',windowSettings);
}
