<!--

function ToggleStickyThread() {
	var screenW = screen.width;
  var screenH = screen.height;
  popLeft = ((screenW / 2) - 150);
  popTop = ((screenH / 2) - 210);
  var PopupWindow = window.open("/forums/admin/edit-sticky-thread.asp?ThreadToView=" + document.forms[FormNo_Page].ThreadToView.value + "","StickyThreadWindow","width=325,height=240,left="+popLeft+",top="+popTop+"toolbar=no,scrollbars=no,location=no,directories=no,status=no,menubar=no");
}

function MoveThread() {
	var screenW = screen.width;
  var screenH = screen.height;
  popLeft = ((screenW / 2) - 150);
  popTop = ((screenH / 2) - 210);
  var PopupWindow = window.open("/forums/admin/move-thread.asp?ThreadToView=" + document.forms[FormNo_Page].ThreadToView.value + "","MoveThreadWindow","width=325,height=335,left="+popLeft+",top="+popTop+"toolbar=no,scrollbars=no,location=no,directories=no,status=no,menubar=no");
}

function GetLocation(RemoteIP, MemberID) {
  document.forms[FormNo_Page].RemoteIP.value = RemoteIP;
  document.forms[FormNo_Page].UserAction.value = MemberID;
  document.forms[FormNo_Page].target = "_tab"
  document.forms[FormNo_Page].action = "/forums/admin/whois.asp";
  document.forms[FormNo_Page].submit();
}

function EditTopic() {
  var NewTopic = prompt("Enter new topic", document.forms[FormNo_Page].ThreadSubject.value);
  if (NewTopic == null) { return; }
  if ((NewTopic.length > 50) || (NewTopic.length == 0)) { return; }
  document.forms[FormNo_Page].action = "/forums/admin/edit-topic.asp";
  document.forms[FormNo_Page].ThreadSubject.value = NewTopic;
  document.forms[FormNo_Page].submit();
}

function CreateNewPoll() {
  document.forms[FormNo_Page].action = "/forums/admin/edit-poll.asp";
	document.forms[FormNo_Page].Submitted.value = "no";
  document.forms[FormNo_Page].UserAction.value = "add";
	document.forms[FormNo_Page].submit();
}

function PermanentlyDeleteEntireThread() {
  if (confirm("Click OK to permanently delete this entire thread!\nOtherwise click Cancel.")) {
    document.forms[FormNo_Page].action = "/forums/admin/delete-thread-permanently.asp";
    document.forms[FormNo_Page].Submitted.value = "no";
    document.forms[FormNo_Page].submit();
  }
}

function DeleteEntireThread() {
  if (confirm("Click OK to delete this entire thread!\nOtherwise click Cancel.")) {
    document.forms[FormNo_Page].action = "/forums/admin/delete-thread.asp";
  	document.forms[FormNo_Page].submit();
  }
}

function DeleteOneMessage(MessageID) {
	if (confirm("Click OK to delete this message!\nOtherwise click Cancel.")) {
		document.forms[FormNo_Page].MessageID.value = MessageID;
		document.forms[FormNo_Page].action = "/forums/admin/delete-message.asp";
		document.forms[FormNo_Page].submit();
	}
}

function DeleteSignature(MessageID) {
  if (confirm("Click OK to delete the signature in this message!\nOtherwise click Cancel.")) {
		document.forms[FormNo_Page].MessageID.value = MessageID;
		document.forms[FormNo_Page].action = "/forums/admin/delete-signature.asp";
		document.forms[FormNo_Page].submit();
	}
}

function DeleteSelectedMessages() {
  if (confirm("Click OK to delete selected messages\nOtherwise click Cancel.")) {
    document.forms[FormNo_Page].action = "/forums/admin/delete-selected-messages.asp";
    document.forms[FormNo_Page].submit();
  }
}

function ReadOnlyMode(MemberID) {
  document.forms[FormNo_Page].target = "_tab"
	document.forms[FormNo_Page].action = "/admin/read-only/index.asp";
	document.forms[FormNo_Page].Submitted.value = "no";
  document.forms[FormNo_Page].MemberID.value = MemberID;
	document.forms[FormNo_Page].submit();
}

function LinkNMAToGallery() {
  document.forms[FormNo_Page].action = "/forums/admin/attach-to-gallery.asp";
  document.forms[FormNo_Page].Submitted.value = "no";
  document.forms[FormNo_Page].submit();
}

function AssignNewOwner() {
  var screenW = screen.width;
  var screenH = screen.height;
  popLeft = ((screenW / 2) - 150);
  popTop = ((screenH / 2) - 210);
  var PopupWindow = window.open("/forums/admin/assign-new-owner.asp?ThreadToView=" + document.forms[FormNo_Page].ThreadToView.value + "&amp;ThreadOwnerMemberID=" + document.forms[FormNo_Page].ThreadOwnerMemberID.value + "","NewOwnerThreadWindow","width=325,height=320,left="+popLeft+",top="+popTop+"toolbar=no,scrollbars=no,location=no,directories=no,status=no,menubar=no");
}

function ReportThreadInEL() {
  document.forms[FormNo_Page].action = "/forums/edit/edit.asp";
  document.forms[FormNo_Page].UserAction.value = "New Topic";
  document.forms[FormNo_Page].ForumID.value = 11;
  document.forms[FormNo_Page].Submitted.value = "report_thread";
	document.forms[FormNo_Page].submit();
}

function DiscussThreadInEL() {
  document.forms[FormNo_Page].action = "/forums/edit/edit.asp";
  document.forms[FormNo_Page].UserAction.value = "New Topic";
  document.forms[FormNo_Page].ForumID.value = 11;
  document.forms[FormNo_Page].Submitted.value = "discuss_thread";
	document.forms[FormNo_Page].submit();
}

function InsertModeratorComment(MessageNo, ItemNo) {
  document.forms[FormNo_Page].action = "/forums/admin/insert-moderator-comment.asp";
  document.forms[FormNo_Page].ReturnURL = "/forums/thread/" + document.forms[FormNo_Page].ThreadToView.value + "#" + MessageNo;
  document.forms[FormNo_Page].MessageID.value = MessageNo;
  document.forms[FormNo_Page].UserAction.value = ItemNo;
  document.forms[FormNo_Page].submit();
}

function AddToLibrary() {
  var screenW = screen.width;
  var screenH = screen.height;
  popLeft = ((screenW / 2) - 200);
  popTop = ((screenH / 2) - 113);
  var PopupWindow = window.open("/forums/admin/library-add.asp?ThreadToView=" + document.forms[FormNo_Page].ThreadToView.value + "","NewOwnerThreadWindow","width=400,height=225,left="+popLeft+",top="+popTop+"toolbar=no,scrollbars=no,location=no,directories=no,status=no,menubar=no");
}

function RemoveFromLibrary() {
  if (confirm("Click OK to remove this thread from the Library.\nOtherwise click Cancel.")) {
    document.forms[FormNo_Page].action = "/forums/admin/library-remove.asp";
    document.forms[FormNo_Page].submit();
  }
}

function Vote(paramPollType) {
  document.forms[FormNo_Page].PollType.value = paramPollType;
  document.forms[FormNo_Page].action = "/forums/vote-now.asp";
  document.forms[FormNo_Page].submit();
}

function AddPoll() {
  document.forms[FormNo_Page].PollEditMode.value = "add";
  document.forms[FormNo_Page].action = "/forums/poll_add-edit.asp";
  document.forms[FormNo_Page].submit();
}

function EditPoll() {
  document.forms[FormNo_Page].PollEditMode.value = "edit";
  document.forms[FormNo_Page].action = "/forums/poll_add-edit.asp";
  document.forms[FormNo_Page].submit();
}

function DeletePoll() {
  if (confirm("Click OK to delete this poll!\nOtherwise click Cancel.")) {
    document.forms[FormNo_Page].action = "/forums/poll_delete.asp";
    document.forms[FormNo_Page].submit();
  }
}

function QuoteReply(paramReplyID, paramReplyScreenName) {
  var name=document.getElementById(paramReplyScreenName);
  var msg=document.getElementById(paramReplyID);
  document.forms[FormNo_Page].MsgBody.value = document.forms[FormNo_Page].MsgBody.value + "<blockquote><small>" + name.innerHTML + "</small>&nbsp;said:<br>" + msg.innerHTML + "</blockquote>\r\n";
}

function SendSiteMail(paramScreenName, paramSubject) {
  document.forms[FormNo_Page].action = "/sitemail/compose/" + paramScreenName + '/' + paramSubject;
  document.forms[FormNo_Page].Submitted.value = "no";
  document.forms[FormNo_Page].target = "_tab"
  document.forms[FormNo_Page].submit();
}

function ViewProfile(paramMemberID) {
  document.forms[FormNo_Page].action = "/members/view-profile/" + paramMemberID;
  document.forms[FormNo_Page].target = "_blank";
  document.forms[FormNo_Page].submit();
}

//-->
