//popup for Community link in mouseover.js

function popWindow(sURL) {
if	(confirm("You are now leaving myNYCB.com and you are entering a site managed by a third-party"))
	{window.open(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);
}

