<!--
   function reader(page){
        var win = window.open(page, "forumreader", "toolbar=0,directories=0,scrollbars=1,resize=no,width=300,height=400");
   }
   function confirmDelete(forum, tid, referrer, subject, page, orgid){
         if(confirm("Are you sure you want to delete this post?"))
             document.location.href="threadfunctions.asp?type=delete&forum=" + forum + "&id=" + tid + "&referrer=" + referrer + "&subject=" + subject + "&page=" + page + "&origid=" + orgid;
   }
   
   function confirmMagnet(forum, tid, referrer, page){
      if(confirm("Are you sure you want to make this a magnet post?"))
             document.location.href="threadfunctions.asp?type=magnet&forum=" + forum + "&origid=" + tid + "&referrer=" + referrer + "&page=" + page;
   }
   
      function confirmRemoveMagnet(forum, tid, referrer, page){
      if(confirm("Are you sure you want to remove this magnet post?"))
             document.location.href="threadfunctions.asp?type=removemagnet&forum=" + forum + "&origid=" + tid + "&referrer=" + referrer + "&page=" + page;
   }
   
      function confirmbMailDelete(tid, forum, referrer){
         if(confirm("Are you sure you want to delete this bMail?"))
             document.location.href="threadfunctions.asp?type=bmail&id=" + tid + "&forum=" + forum + "&referrer=" + referrer;
   }
   function popup(page){
        var win = window.open(page, "forumreader", "toolbar=0,directories=0,scrollbars=1,width=525,height=400");
   }
   
   function confirmClose(forum, tid, referrer, subject, page, orgid){
         if(confirm("Are you sure you want to close this thread?"))
             document.location.href="threadfunctions.asp?type=close&forum=" + forum + "&id=" + tid + "&referrer=" + referrer + "&subject=" + subject + "&page=" + page + "&origid=" + orgid;
   }
   
 function confirmOpen(forum, tid, referrer, subject, page, orgid){
         if(confirm("Are you sure you want to reopen this thread?"))
             document.location.href="threadfunctions.asp?type=open&forum=" + forum + "&id=" + tid + "&referrer=" + referrer + "&subject=" + subject + "&page=" + page + "&origid=" + orgid;
   }
   
  function confirmApproval(forum, tid, referrer, page, orgid){
         if(confirm("Are you sure you want to approve this post?"))
             document.location.href="threadfunctions.asp?type=approval&forum=" + forum + "&id=" + tid + "&referrer=" + referrer + "&page=" + page + "&origid=" + orgid;
   }
   
  function confirmIPDelete(ID){
         if(confirm("Are you sure you want to remove this IP ban?"))
             document.location.href="ipdelete.asp?id=" + ID;
   }
 function show_poll(TOPIC) {
 	window.open("poll/show_poll.asp?forum=" + TOPIC, "poll", "width=400,height=450,scrollbars=yes"); 
  }
  
 function showIp(ID,TOPIC) {
	window.open("admin/showip.asp?id=" + ID + "&topic=" + TOPIC, "ShowIP", "width=200,height=140,scrollbars=no");
  }
 
 function showE(USERNAME) {
	window.open("admin/showe.asp?user=" + USERNAME, "ShowEmail", "width=200,height=100,scrollbars=no");
  } 
  
 function subscribe(ID,TOPIC) {
	window.open("includes/subscribe.asp?id=" + ID + "&topic=" + TOPIC, "Subscribe","width=300,height=150,scrollbars=no");
}
 function rate(ID,TOPIC) {
	window.open("processrating.asp?step=1&id=" + ID + "&topic=" + TOPIC, "Rate","width=300,height=250,scrollbars=no");
}
 function checkLength(element,elmlen) {
 if(element.value.length > elmlen) {
	alert("Length of this field is longer than the allowable length of " + elmlen + " characters.");
	element.focus();
 }
}
//-->
