<!--

function ViewPage(PageName){
  document.forms[FormNo_Page].action = "/forums/" + PageName;
  document.forms[FormNo_Page].action =   hidden
  document.forms[FormNo_Page].submit();
}

function ReturnToForumsIndex() {
	document.forms[FormNo_Page].action = "/forums/index";
	document.forms[FormNo_Page].submit();
}

function ReturnToForumIndex(ForumID) {
	document.forms[FormNo_Page].action = "/forums/forum/" + ForumID;
	document.forms[FormNo_Page].submit();
}

function ReturnToViewModeIndex() {
  document.forms[FormNo_Page].action = document.forms[FormNo_Page].ViewModeURL.value;
  document.forms[FormNo_Page].Submitted.value = "yes";
  document.forms[FormNo_Page].submit();
}

function ReturnToThread(MsgParent) {
	document.forms[FormNo_Page].action = "/forums/thread/" + MsgParent;
	document.forms[FormNo_Page].Submitted.value = "yes";
	document.forms[FormNo_Page].submit();
}

function ReturnToThreadMessage(MessageID) {
	document.forms[FormNo_Page].action = "/forums/thread/" + document.forms[FormNo_Page].ThreadToView.value + "#Msg_" + MessageID;
	document.forms[FormNo_Page].Submitted.value = "no";
	document.forms[FormNo_Page].submit();
}

function GoToThreadPage(PageNo) {
	document.forms[FormNo_Page].action = "/forums/thread/" + document.forms[FormNo_Page].ThreadToView.value + "/page/" + PageNo;
	document.forms[FormNo_Page].CurThreadPage.value = PageNo;
	document.forms[FormNo_Page].Submitted.value = "yes";
	document.forms[FormNo_Page].submit();
}

function GoToIndexPage(PageNo) {
  document.forms[FormNo_Page].CurIndexPage.value = PageNo;
	document.forms[FormNo_Page].Submitted.value = "yes";
	document.forms[FormNo_Page].submit();
}

/***********************************************************************************/
/* toolbar */

function ActiveList() {
  document.forms[FormNo_Page].action = "/forums/active";
  document.forms[FormNo_Page].Submitted.value = "yes";
  document.forms[FormNo_Page].submit();
}

function MyThreads(MemberID) {
  document.forms[FormNo_Page].action = "/forums/member/" + MemberID;
  document.forms[FormNo_Page].Submitted.value = "yes";
	document.forms[FormNo_Page].submit();
}

function FlaggedThreads(MemberID) {
  document.forms[FormNo_Page].action = "/forums/flagged/" + MemberID;
  document.forms[FormNo_Page].Submitted.value = "yes";
	document.forms[FormNo_Page].submit();
}

function SubscribedThreads(MemberID) {
  document.forms[FormNo_Page].action = "/forums/subscribed/" + MemberID;
  document.forms[FormNo_Page].Submitted.value = "yes";
  document.forms[FormNo_Page].submit();
}

function UnFlagThread(MsgParent) {
	document.forms[FormNo_Page].action = "/forums/toggle/toggle-flagged.asp";
	document.forms[FormNo_Page].ThreadToView.value = MsgParent;
	document.forms[FormNo_Page].submit();
}

function UnsubscribeFromSelected() {
  document.forms[FormNo_Page].action = "/forums/toggle/subscribed-threads_delete-selected.asp";
	document.forms[FormNo_Page].submit();
}

function UnFlagFromSelected() {
  document.forms[FormNo_Page].action = "/forums/toggle/flagged-threads_delete-selected.asp";
	document.forms[FormNo_Page].submit();
}

function UnsubscribeFromThread(MsgParent) {
	document.forms[FormNo_Page].action = "/forums/toggle/toggle-subscribed-thread.asp";
	document.forms[FormNo_Page].ThreadToView.value = MsgParent;
	document.forms[FormNo_Page].submit();
}

function UnsubscribeFromForum(ForumID) {
	document.forms[FormNo_Page].action = "/forums/toggle/toggle-subscribed-forum.asp";
	document.forms[FormNo_Page].target = "_self";
	document.forms[FormNo_Page].ForumID.value = ForumID;
	document.forms[FormNo_Page].submit();
}

function ToggleFlaggedThread() {
	document.forms[FormNo_Page].action = "/forums/toggle/toggle-flagged.asp";
	document.forms[FormNo_Page].submit();
}

function ToggleSubscribedThread() {
	document.forms[FormNo_Page].action = "/forums/toggle/toggle-subscribed-thread.asp";
	document.forms[FormNo_Page].submit();
}

function ToggleSubscribedForum() {
	document.forms[FormNo_Page].action = "/forums/toggle/toggle-subscribed-forum.asp";
	document.forms[FormNo_Page].submit();
}

/***********************************************************************************/

function ToggleLockedThread() {
  document.forms[FormNo_Page].action = "/forums/toggle/toggle-locked-thread.asp";
	document.forms[FormNo_Page].submit();
}

function SplitThread(ReplyNo) {
	document.forms[FormNo_Page].action = "/forums/admin/split-thread.asp";
	document.forms[FormNo_Page].Submitted.value = "no";
  document.forms[FormNo_Page].UserAction.value = ReplyNo;
	document.forms[FormNo_Page].submit();
}

function MergeMessages() {
  alert("Under development!");
  /*
  document.forms[FormNo_Page].action = "/forums/admin/merge-messages.asp";
	document.forms[FormNo_Page].Submitted.value = "no";
	document.forms[FormNo_Page].submit();
  */
}

function ReadOnlyManager() {
  UnderDevelopment();
}

/***********************************************************************************/

function ViewForumRules(ForumID) {
	document.forms[FormNo_Page].action = "/forums/forum-info.asp";
	document.forms[FormNo_Page].Submitted.value = "no";
	document.forms[FormNo_Page].ForumID.value = ForumID;
	document.forms[FormNo_Page].submit();
}

function GoToPhoto(PhotoNo) {
	document.forms[FormNo_Page].CurPhoto.value = PhotoNo;
	document.forms[FormNo_Page].submit();
}

function GoToPhotoManager(MessageID) {
	document.forms[FormNo_Page].action = "/forums/edit/photo-manager.asp";
	document.forms[FormNo_Page].MessageID.value = MessageID;
	document.forms[FormNo_Page].Submitted.value = "no";
	document.forms[FormNo_Page].submit();
}

function ViewMessagePhotos(MessageID, PhotoNo) {
	document.forms[FormNo_Page].action = "/forums/photoset.asp";
  document.forms[FormNo_Page].CurPhoto.value = PhotoNo;
  document.forms[FormNo_Page].MessageID.value = MessageID;
  document.forms[FormNo_Page].Submitted.value = "no";
	document.forms[FormNo_Page].submit();
}

function GoToForum(ForumID) {
	document.forms[FormNo_Page].action = "/forums/forum/" + ForumID;
	document.forms[FormNo_Page].ForumID.value = ForumID;
	document.forms[FormNo_Page].Submitted.value = "yes";
	document.forms[FormNo_Page].submit();
}

function GoToThread(ThreadNo, PageNo) {
	document.forms[FormNo_Page].action = "/forums/thread/" + ThreadNo & "/page/" & PageNo;
	document.forms[FormNo_Page].submit();
}

function GoToReturnURL(ReturnURL) {
	document.forms[FormNo_Page].action = ReturnURL;
	document.forms[FormNo_Page].Submitted.value = "no";
	document.forms[FormNo_Page].submit();
}

/***********************************************************************************/

function EditMessage(MessageID) {
	document.forms[FormNo_Page].MessageID.value = MessageID;
	document.forms[FormNo_Page].UserAction.value = "Edit Message";
	document.forms[FormNo_Page].action = "/forums/edit/edit.asp";
  document.forms[FormNo_Page].Submitted.value = "no";
	document.forms[FormNo_Page].submit();
}

function CreateNewThread() {
  document.forms[FormNo_Page].action = "/forums/edit/new-thread.asp";
  document.forms[FormNo_Page].UserAction.value = "New Topic";
  document.forms[FormNo_Page].Submitted.value = "no";
	document.forms[FormNo_Page].submit();
}

function CreateNewThreadInForum(ForumID) {
  document.forms[FormNo_Page].action = "/forums/edit/new-topic.asp";
  document.forms[FormNo_Page].UserAction.value = "New Topic";
  document.forms[FormNo_Page].PostInForumID.value = ForumID;
  document.forms[FormNo_Page].Submitted.value = "no";
	document.forms[FormNo_Page].submit();
}

function CreateNewReplyInThread(ThreadToView) {
  document.forms[FormNo_Page].action = "/forums/edit/edit.asp";
  document.forms[FormNo_Page].UserAction.value = "New Reply";
  document.forms[FormNo_Page].ThreadToView.value = ThreadToView;
  document.forms[FormNo_Page].Submitted.value = "no";
	document.forms[FormNo_Page].submit();
}

/***********************************************************************************/

function ChangeThreadsPerPage(ThreadsPerPage) {
  document.forms[FormNo_Page].ThreadsPerPage.value = ThreadsPerPage;
  document.forms[FormNo_Page].submit();
}

function ChangeMsgsPerPage(MsgsPerPage) {
  document.forms[FormNo_Page].MsgsPerPage.value = MsgsPerPage;
  document.forms[FormNo_Page].submit();
}

function SetRefreshDelay(RefreshDelay) {
	document.forms[FormNo_Page].RefreshDelay.value = RefreshDelay;
	document.forms[FormNo_Page].submit();
}

function CatchUp() {
	document.forms[FormNo_Page].action = "/forums/catch-up.asp";
	document.forms[FormNo_Page].submit();
}

function StoreMsgURL(MessageID) {
  document.forms[FormNo_Page].action = "/forums/edit/store-url.asp";
  document.forms[FormNo_Page].MessageID.value = MessageID;
  document.forms[FormNo_Page].submit();
}

function SetActiveRefreshDelay(DelayMinutesNo) {
  document.forms[FormNo_Page].action = "/forums/toggle/update-active-refresh.asp";
  document.forms[FormNo_Page].ActiveRefreshDelay.value = DelayMinutesNo;
  document.forms[FormNo_Page].submit();
}

function ViewForumsLibrary() {
  document.forms[FormNo_Page].action = "/forums/library";
  document.forms[FormNo_Page].submit();
}

function ReturnToModel() {
  document.forms[FormNo_Page].action = "/forums/thread/" + document.forms[FormNo_Page].ThreadToView.value + "/page/" + document.forms[FormNo_Page].CurThreadPage.value + "#Msg_" + document.forms[FormNo_Page].MessageID.value;
  document.forms[FormNo_Page].Submitted.value = "yes";
  document.forms[FormNo_Page].submit();
}

function QueuedReviewsManager() {
  document.forms[FormNo_Page].action = "/reviews/admin/queued.asp";
  document.forms[FormNo_Page].Submitted.value = "no";
  document.forms[FormNo_Page].submit();
}

function DeleteAllSubscriptions() {
  if (confirm("Click OK to permanently delete all your subscriptions!\nOtherwise click Cancel.")) {
    document.forms[FormNo_Page].action = "/forums/edit/delete-all-subscriptions.asp";
    document.forms[FormNo_Page].submit();
  }
}

//-->
