// popwin.js

function openWindow(winUrl, winName, winWidth, winHeight, winResize, winCenter, winScroll) {
	if ( document.all || document.layers || document.getElementById ){
		screenWidthCenter = screen.availWidth / 2;
		screenHeightCenter = screen.availHeight / 2;
	} else {
		winCenter = 0;	
	}
	if ( winScroll == 1 ) { winScroll = "yes"; } else { winScroll = "no"; }
	if ( winCenter == 1 ) {
		Winoption= "toolbar=no,location=no,directories=no,status=no,menubar=no,width=580,height=650,scrollbars=" + winScroll + ",resizable=" + winResize + ",width=" + winWidth + ",height=" + winHeight + ",left=" + (screenWidthCenter - ((winWidth + 25) / 2)) + ",top=" + (screenHeightCenter - ((winHeight) / 2));
	} else if( winCenter == 0) {
		Winoption= "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=" + winScroll + ",width=580,height=650";
	}
	window.open(winUrl,winName,Winoption);
}
