

function popWinOpen(winW,winH,sUrl,sName,iResize,iScroll,iStatus) {
	if (screen) {
		if ((screen.height - winH) < 150) {
			var winX = (screen.width - winW) / 2;
			var winY = 0;
		} else {
			var winX = (screen.width - winW) / 2;
			var winY = (screen.height - winH) / 2;
		}
		var popWindow = window.open(sUrl,sName,"resizable=" + iResize + ",menubar=0,scrollbars=" + iScroll + ",status=" + iStatus + ",width=" + winW + ",height=" + winH + ",top=" + winY + ",left=" + winX + "");
		if (popWindow) popWindow.focus();
	} else {
		window.open(sUrl,sName,"resizable=" + iResize + ",menubar=0,scrollbars=" + iScroll + ",status=" + iStatus + ",width=" + winW + ",height=" + winH);
	}
}


function addEvent() {
	popWinOpen(400,550,"/jsp/calendar/","addEventWin",1,0,1) ;
}

function viewImage(id, showSmall) {
	popWinOpen(750,600,"/jsp/member/view_image.jsp?id=" + id + (showSmall ? "&small=true" : ""),"albumImageWin",1,0,1) ;
}


function openForum() {
	var oSel = document.getElementById("forumSelect") ;
	var path = oSel.options[oSel.selectedIndex].value ;
	if (path != "") {
		document.location = path ;
	}
}