//popup for Community link in mouseover.js

function popWindow(sURL) {
	alert("The Web site you have selected is an external one located on another server. Bay State Savings Bank has no responsibility for any external web site. It neither endorses the information, content, presentation, or accuracy nor makes any warranty, express or implied, regarding any external site.\n\nThank you for visiting the Bay State Savings Bank's Web site.")
	document.location.href=(sURL);
}

function popWindow_old(displaypage,xwidth,ywidth,xloc,yloc,scroll,resize,toolbar,status) {

var winPar

if (xwidth) {

winPar = winPar + ',width='+xwidth
}

if (ywidth) {
	if (document.layers) {
		ywidth = ywidth-75
	}	
	winPar = winPar + ',height='+ywidth
}

if (xwidth) {

winPar = winPar + ',innerwidth='+xwidth
}

if (ywidth) {
	if (document.layers) {
		ywidth = ywidth-75
	}	
	winPar = winPar + ',innerheight='+ywidth
}

if (xloc) {
winPar = winPar + ',screenX='+xloc+',left='+xloc
}

if (yloc) {
winPar = winPar + ',screenY='+yloc+',top='+yloc
}

if (scroll) {
winPar = winPar + ',scrollbars='+scroll
}

if (resize) {
winPar = winPar + ',resizable='+resize
}

if (toolbar) {
winPar = winPar + ',toolbar='+toolbar
}

if (status) {
winPar = winPar + ',status='+status
}

if (winPar) {
	window.open(displaypage,'window1',winPar);
	}
	else {
	window.open(displaypage,'window1');
	}
	
}


function formPull(){
        var url = document.form1.site.options[document.form1.site.selectedIndex].value;
		alert(url);
        if (url == "") return;
        else popWindow(url,600,550,2,2);
}

