function fMenuGalleryChange( nPageID, nGalleryID, nPersonID ) {
	var oForm = document.getElementById( "frmMaster" );
	if( nGalleryID < 10 ) {
		sGalleryID = "00" + nGalleryID;
	} else {
		if( nGalleryID < 100 ) {
			sGalleryID = "0" + nGalleryID;
		} else {
			sGalleryID = nGalleryID;
		}
	}
	switch ( nPageID ) {
	case 3:
		oForm.action = "../gallery/gallery" + sGalleryID + ".asp";
		break;
	case 4:
		oForm.action = "gallery" + sGalleryID + ".asp";
		break;
	case 5:
		oForm.action = "../sounds/index.asp";
		break;
	default:
		oForm.action = "/gallery/index16.asp";
		break;
	}
	oForm.hGalleryID.value = nGalleryID;
	oForm.hPageID.value = nPageID;
	if( nPersonID ) {
		oForm.hPersonID.value = nPersonID;
	}
	oForm.submit();
}
function fMenuMessageboardChange( nPageID, nMessageID ) {
	oForm = document.getElementById( "frmMaster" );
	oForm.hPageID.value = nPageID;
	oForm.hMessageID.value = nMessageID;
	oForm.action = "../soc/index.asp#" + nMessageID;
	oForm.submit();
}
