//-----------------------------------------
function OpenWindow( aWidth , aHeight , aURL )
{
	var lx = (screen.width - aWidth) / 2, ly = (screen.height - aHeight) / 2;
	var lProperties =
		"Width=" + aWidth + "px, Height=" + aHeight + "px, Left=" + lx + ", Top=" + ly + "," +
		"menubar=no,scrollbars=yes,location=no,titlebar=no,toolbar=no,resizable=no,status=no";
    var lWin = window.open(aURL,"_blank",lProperties);
    return lWin;
}
//-----------------------------------------
function OpenWindow( aWidth , aHeight , aURL , aResizable )
{
	if( aResizable == "" ) aResizable = "no";
	var lx = (screen.width - aWidth) / 2, ly = (screen.height - aHeight) / 2;
	var lProperties =
		"Width=" + aWidth + "px, Height=" + aHeight + "px, Left=" + lx + ", Top=" + ly + "," +
		"menubar=no,scrollbars=yes,location=no,titlebar=no,toolbar=no,resizable=" + aResizable + ",status=no";
    var lWin = window.open(aURL,"_blank",lProperties);
    return lWin;
}
//-----------------------------------------
function OpenWindow( aWidth , aHeight , aURL , aResizable , aScrollBars )
{
	if( aResizable == "" ) aResizable = "no";
	if( aScrollBars == "") aScrollBars = "yes";
	var lx = (screen.width - aWidth) / 2, ly = (screen.height - aHeight) / 2;
	var lProperties =
		"Width=" + aWidth + "px, Height=" + aHeight + "px, Left=" + lx + ", Top=" + ly + "," +
		"menubar=no,scrollbars=" + aScrollBars + ",location=no,titlebar=no,toolbar=no,resizable=" + aResizable + ",status=no";
    var lWin = window.open(aURL,"_blank",lProperties);
    return lWin;
}
//-----------------------------------------
function ShowPage( aPage )
{
	switch( aPage )
	{
		case "exit":
			document.location.href = "LogOut.php";
			break;
		case "newsgroup":
			document.location.href = "NewsGroups.php";
			break;
		case "news":
			document.location.href = "NewsManage.php";
			break;
		case "recents":
			document.location.href = "Recents.php";
			break;
		case "albums":
			document.location.href = "PicAlbums.php";
			break;
		case "peoples":
			document.location.href = "Peoples.php";
			break;
		case "society":
			document.location.href = "Society.php";
			break;
		case "classes":
			document.location.href = "Classes.php";
			break;
		case "users":
			document.location.href = "AdminUsers.php";
			break;
		default:
			alert("No Action");
	}
}
