function checkAllStaff(randomID) {
if (document.getElementById(randomID+'_staff_member_24066')) {
document.getElementById(randomID+'_staff_member_24066').checked = true;
}
if (document.getElementById(randomID+'_staff_member_24542')) {
document.getElementById(randomID+'_staff_member_24542').checked = true;
}
if (document.getElementById(randomID+'_staff_member_22301')) {
document.getElementById(randomID+'_staff_member_22301').checked = true;
}
if (document.getElementById(randomID+'_staff_member_24896')) {
document.getElementById(randomID+'_staff_member_24896').checked = true;
}
if (document.getElementById(randomID+'_staff_member_21574')) {
document.getElementById(randomID+'_staff_member_21574').checked = true;
}
if (document.getElementById(randomID+'_staff_member_24116')) {
document.getElementById(randomID+'_staff_member_24116').checked = true;
}
if (document.getElementById(randomID+'_staff_member_24895')) {
document.getElementById(randomID+'_staff_member_24895').checked = true;
}
if (document.getElementById(randomID+'_staff_member_12')) {
document.getElementById(randomID+'_staff_member_12').checked = true;
}
if (document.getElementById(randomID+'_staff_member_20772')) {
document.getElementById(randomID+'_staff_member_20772').checked = true;
}
if (document.getElementById(randomID+'_staff_member_22735')) {
document.getElementById(randomID+'_staff_member_22735').checked = true;
}
if (document.getElementById(randomID+'_staff_member_25201')) {
document.getElementById(randomID+'_staff_member_25201').checked = true;
}
if (document.getElementById(randomID+'_staff_member_25160')) {
document.getElementById(randomID+'_staff_member_25160').checked = true;
}
if (document.getElementById(randomID+'_staff_member_20717')) {
document.getElementById(randomID+'_staff_member_20717').checked = true;
}
if (document.getElementById(randomID+'_staff_member_25248')) {
document.getElementById(randomID+'_staff_member_25248').checked = true;
}
if (document.getElementById(randomID+'_staff_member_22581')) {
document.getElementById(randomID+'_staff_member_22581').checked = true;
}
if (document.getElementById(randomID+'_staff_member_20721')) {
document.getElementById(randomID+'_staff_member_20721').checked = true;
}
if (document.getElementById(randomID+'_staff_member_20722')) {
document.getElementById(randomID+'_staff_member_20722').checked = true;
}
if (document.getElementById(randomID+'_staff_member_20854')) {
document.getElementById(randomID+'_staff_member_20854').checked = true;
}
if (document.getElementById(randomID+'_staff_member_25273')) {
document.getElementById(randomID+'_staff_member_25273').checked = true;
}
if (document.getElementById(randomID+'_staff_member_20726')) {
document.getElementById(randomID+'_staff_member_20726').checked = true;
}
if (document.getElementById(randomID+'_staff_member_23059')) {
document.getElementById(randomID+'_staff_member_23059').checked = true;
}
if (document.getElementById(randomID+'_staff_member_14568')) {
document.getElementById(randomID+'_staff_member_14568').checked = true;
}
if (document.getElementById(randomID+'_staff_member_24023')) {
document.getElementById(randomID+'_staff_member_24023').checked = true;
}
if (document.getElementById(randomID+'_staff_member_24571')) {
document.getElementById(randomID+'_staff_member_24571').checked = true;
}
if (document.getElementById(randomID+'_staff_member_21280')) {
document.getElementById(randomID+'_staff_member_21280').checked = true;
}
if (document.getElementById(randomID+'_staff_member_22179')) {
document.getElementById(randomID+'_staff_member_22179').checked = true;
}
if (document.getElementById(randomID+'_staff_member_20720')) {
document.getElementById(randomID+'_staff_member_20720').checked = true;
}
}
function unCheckAllStaff(randomID) {
if (document.getElementById(randomID+'_staff_member_24066')) {
document.getElementById(randomID+'_staff_member_24066').checked = false;
}
if (document.getElementById(randomID+'_staff_member_24542')) {
document.getElementById(randomID+'_staff_member_24542').checked = false;
}
if (document.getElementById(randomID+'_staff_member_22301')) {
document.getElementById(randomID+'_staff_member_22301').checked = false;
}
if (document.getElementById(randomID+'_staff_member_24896')) {
document.getElementById(randomID+'_staff_member_24896').checked = false;
}
if (document.getElementById(randomID+'_staff_member_21574')) {
document.getElementById(randomID+'_staff_member_21574').checked = false;
}
if (document.getElementById(randomID+'_staff_member_24116')) {
document.getElementById(randomID+'_staff_member_24116').checked = false;
}
if (document.getElementById(randomID+'_staff_member_24895')) {
document.getElementById(randomID+'_staff_member_24895').checked = false;
}
if (document.getElementById(randomID+'_staff_member_12')) {
document.getElementById(randomID+'_staff_member_12').checked = false;
}
if (document.getElementById(randomID+'_staff_member_20772')) {
document.getElementById(randomID+'_staff_member_20772').checked = false;
}
if (document.getElementById(randomID+'_staff_member_22735')) {
document.getElementById(randomID+'_staff_member_22735').checked = false;
}
if (document.getElementById(randomID+'_staff_member_25201')) {
document.getElementById(randomID+'_staff_member_25201').checked = false;
}
if (document.getElementById(randomID+'_staff_member_25160')) {
document.getElementById(randomID+'_staff_member_25160').checked = false;
}
if (document.getElementById(randomID+'_staff_member_20717')) {
document.getElementById(randomID+'_staff_member_20717').checked = false;
}
if (document.getElementById(randomID+'_staff_member_25248')) {
document.getElementById(randomID+'_staff_member_25248').checked = false;
}
if (document.getElementById(randomID+'_staff_member_22581')) {
document.getElementById(randomID+'_staff_member_22581').checked = false;
}
if (document.getElementById(randomID+'_staff_member_20721')) {
document.getElementById(randomID+'_staff_member_20721').checked = false;
}
if (document.getElementById(randomID+'_staff_member_20722')) {
document.getElementById(randomID+'_staff_member_20722').checked = false;
}
if (document.getElementById(randomID+'_staff_member_20854')) {
document.getElementById(randomID+'_staff_member_20854').checked = false;
}
if (document.getElementById(randomID+'_staff_member_25273')) {
document.getElementById(randomID+'_staff_member_25273').checked = false;
}
if (document.getElementById(randomID+'_staff_member_20726')) {
document.getElementById(randomID+'_staff_member_20726').checked = false;
}
if (document.getElementById(randomID+'_staff_member_23059')) {
document.getElementById(randomID+'_staff_member_23059').checked = false;
}
if (document.getElementById(randomID+'_staff_member_14568')) {
document.getElementById(randomID+'_staff_member_14568').checked = false;
}
if (document.getElementById(randomID+'_staff_member_24023')) {
document.getElementById(randomID+'_staff_member_24023').checked = false;
}
if (document.getElementById(randomID+'_staff_member_24571')) {
document.getElementById(randomID+'_staff_member_24571').checked = false;
}
if (document.getElementById(randomID+'_staff_member_21280')) {
document.getElementById(randomID+'_staff_member_21280').checked = false;
}
if (document.getElementById(randomID+'_staff_member_22179')) {
document.getElementById(randomID+'_staff_member_22179').checked = false;
}
if (document.getElementById(randomID+'_staff_member_20720')) {
document.getElementById(randomID+'_staff_member_20720').checked = false;
}
}
function loadAddReply(postid,threadid,quote) {
if (quote) {
$('#ID_post'+postid+'_report').html('Report');
$('#ID_post'+postid+'_reply').html('Reply To Message');
$('#ID_post'+postid+'_edit').html('Edit Message');
$('#ID_post'+postid+'_replyquote').html('Reply w/Quote');
}
else {
$('#ID_post'+postid+'_report').html('Report');
$('#ID_post'+postid+'_replyquote').html('Reply w/Quote');
$('#ID_post'+postid+'_edit').html('Edit Message');
$('#ID_post'+postid+'_reply').html('Reply To Message');
}
//$('#div_post_'+postid).slideUp('normal',function() { $('#div_post_'+postid).load('forum_ajax_addreply.html',{threadid:threadid,postid:postid,quote:quote},function() { $('#div_post_'+postid).slideDown('normal',function() { $('#post_'+postid+'_message').focus(); }); }); });
$('#div_post_'+postid).slideUp('normal',function() { $('#div_post_'+postid).load('forum_ajax_addreply.html',{threadid:threadid,postid:postid,quote:quote},function() { $('#div_post_'+postid).slideDown('normal',function() { initEasyButtons(); initEmojiComplete(); }); }); });
//$('#div_post_'+postid).queue(function () { $(this).slideUp('normal',function() { $(this).load('forum_ajax_addreply.html',{threadid:threadid,postid:postid,quote:quote},function() { $(this).slideDown('normal',function() { $('#post_'+postid+'_message').focus(); }); }); });});
}
function loadReport(postid,threadid) {
$('#ID_post'+postid+'_report').html('Report');
$('#ID_post'+postid+'_reply').html('Reply To Message');
$('#ID_post'+postid+'_replyquote').html('Reply w/Quote');
$('#ID_post'+postid+'_edit').html('Edit Message');
$('#div_post_'+postid).slideUp('normal',function() { $('#div_post_'+postid).load('forum_ajax_report.html',{threadid:threadid,postid:postid},function() { $('#div_post_'+postid).slideDown('normal',function() { $('#post_'+postid+'_message').focus(); }); }); });
}
function loadEdit(postid,threadid) {
$('#ID_post'+postid+'_report').html('Report');
$('#ID_post'+postid+'_reply').html('Reply To Message');
$('#ID_post'+postid+'_replyquote').html('Reply w/Quote');
$('#ID_post'+postid+'_edit').html('Edit Message');
$('#div_post_'+postid).slideUp('normal',function() { $('#div_post_'+postid).load('forum_ajax_edit.html',{threadid:threadid,postid:postid,userid:'0',sessionid:''},function() { $('#div_post_'+postid).slideDown('normal',function() { initEasyButtons(); initEmojiComplete(); $('#post_'+postid+'_message').focus(); }); }); });
}
function close(postid,threadid,type) {
if (type == 1) { $('#ID_post'+postid+'_reply').html('Reply To Message'); }
else if (type == 2) { $('#ID_post'+postid+'_replyquote').html('Reply w/Quote'); }
else if (type == 4) { $('#ID_post'+postid+'_edit').html('Edit Message'); }
else if (type == 5) { $('#ID_post'+postid+'_report').html('Report'); }
$('#div_post_'+postid).slideUp('normal');
}
function validateMessage(postid) {
field = document.getElementById('post_'+postid+'_message');
with (field) {
if (value==null||value=="") {
alert('Please enter a message.');
field.focus();
return false;
}
else {
return true;
}
}
}
function addToMyThreads(threadid) {
$.ajax({
type: "POST",
dataType: "text",
url: "forum_thread.html",
data: "addMyThread=1&threadid="+threadid+"&userid=0&sessionid=",
async: true,
success: function(data,message){
var strResponse = new Array();
strResponse = data.split('|');
if (strResponse[0] == 1) {
$("#mythread_TR_"+threadid).html('DELETE from My Threads');
}
alert(strResponse[1]);
},
error: function(){
alert('There was an error. Please try again later.');
}
});
}
function removeFromMyThreads(threadid) {
$.ajax({
type: "POST",
dataType: "text",
url: "forum_thread.html",
data: "removeMyThread=1&threadid="+threadid+"&userid=0&sessionid=",
async: true,
success: function(data,message){
var strResponse = new Array();
strResponse = data.split('|');
if (strResponse[0] == 1) {
$("#mythread_TR_"+threadid).html('SAVE to My Threads');
}
alert(strResponse[1]);
},
error: function(){
alert('There was an error. Please try again later.');
}
});
}