commentObj.divReply = $id('IDCommentReplyDiv'); //var IDLastPostTime = 0; commentObj.timeTrackStart; function getCurTime() { commentObj.dateObj = new Date(); return commentObj.dateObj.getTime(); } if(readCookie('IDCShowHide')=='show' && $id('IDCinfoBarImg')) { IDPageLoad(0, "next", false, false); } function showHideIDC(page) { if(document.getElementById('idc-cover').style.display == 'none') { if(!page) var page=0; IDPageLoad(0, "next", false, false); //rest handled in getInnerComments now } else { $id('IDCinfoBarImg').className = 'idc-infobar-expand'; $id('idc-showcomments-link').innerHTML = "Show Comments"; $id('idc-postcomment-link').innerHTML = "Show Comments"; $id('idc-cover').style.display = 'none'; if($id('idc-footer')) $id('idc-footer').style.display = 'block'; $id('IDCommentsNewThreadCover').style.display = 'none'; createCookie("IDCShowHide", "hide", 30); } } function showIDC(page) { var date = new Date(); date.setTime(date.getTime()+(30*24*60*60*1000)); $id('IDCinfoBarImg').className = 'idc-infobar-expanded'; $id('idc-cover').style.display = 'block'; $id('idc-showcomments-link').innerHTML = "Hide Comments"; $id('idc-postcomment-link').innerHTML = "Hide Comments"; if($id('idc-footer')) $id('idc-footer').style.display = 'none'; $id('IDCommentsNewThreadCover').style.display = 'block'; //if(!$id('idc-req-on') || (readCookie('IDCShowHide')=='hide')) $id("IDCommentNewThreadText").style.width = ($id("IDCommentsNewThread").offsetWidth - 20) +"px"; if($id('IDCommentNewThreadText').style.display=='block') $id('IDCommentNewThreadText').focus(); IDUpdateTimeStamps(); createCookie("IDCShowHide", "show", 30); } /* function IDloadGetInnerComments(page, commentid) { var newScriptTag = document.createElement("SCRIPT"); newScriptTag.type="text/javascript"; newScriptTag.src="http://www.intensedebate.com/js/getInnerComments.php?postid="+commentObj.blogpostid+"&acctid="+commentObj.acctid+"&userid="+commentObj.curUser.userid+"&sort="+commentObj.sortType+"&page="+page+"&commentid="+commentid; document.getElementsByTagName("HEAD")[0].appendChild(newScriptTag); }*/ function addFriend(uid, commentid) { if(!commentObj.curUser.isLoggedIn) { showMsgBox("Hang on there cowboy...", "
You must be logged in to add friends.
", 0, null); return; } commentObj.timeTrackStart = getCurTime(); if(commentObj.addFriendCallback) var firstCall="false"; else var firstCall="true"; var theStr = '"params":{"friendid":'+uid+', "commentid":'+commentid+', "userid":'+commentObj.curUser.userid+', "token":"'+commentObj.curUser.token+'", "firstCall":'+firstCall+'}'; var requestObj = new buildRequestObj(theStr, 6, null, connectionErr); xs.make_request(requestObj); }; function showHideOpts() { var div = document.getElementById('showHideAdminOpts'); var link = document.getElementById('IDAdminOptsLink'); if(div.style.display == '') { link.className = 'idc-collapselink_closed'; div.style.display = 'none'; } else { link.className = 'idc-collapselink'; div.style.display = ''; } } function voteComment(commentid, vote) { listObj = $id("IDComment"+commentid); if(!commentObj.curUser.isLoggedIn) { showMsgBox("Easy Tiger...", "You must be logged in to vote.
", 0, listObj); return; } if(commentObj.comments[commentid] && commentObj.comments[commentid].hasVoted==true) { showMsgBox("Hang on there...", "You've already voted on that comment.
", 0, listObj); return; } if(commentObj.comments[commentid] && (commentObj.comments[commentid].status==2 || commentObj.comments[commentid].status==6)) { showMsgBox("Hang on there...", "You can't vote on a deleted comment.
", 0, listObj); return; } commentObj.timeTrackStart = getCurTime(); if(commentObj.voteCommentCallback) var firstCall = "false"; else var firstCall = "true"; var theStr = '"params":{"vote":'+vote+', "commentid":'+commentid+', "userid":'+commentObj.curUser.userid+', "token":"'+commentObj.curUser.token+'", "firstCall":'+firstCall+'}'; var requestObj = new buildRequestObj(theStr, 1, null, connectionErr); xs.make_request(requestObj); }; function changeDisabledLink() { var checkbox = document.getElementById('chkDisableIDC'); var link = document.getElementById('adminOptions'); if(checkbox.checked) { //checkbox.checked='checked'; link.href = link.href.replace(/'0'\)/, "'1'\)"); } else { //checkbox.checked=''; link.href = link.href.replace(/'1'\)/, "'0'\)"); } } function disableComments(blogpostid, acctid, val) { if(!commentObj.curUser.isLoggedIn) { showMsgBox("Easy Tiger...", "You must be logged in to change settings.
", 0, listObj); return; } //changeDisabledLink(); if(commentObj.DisableCommentsCallback) var firstCall = "false"; else var firstCall = "true"; //IDReplaceHtml($id("IDCSavedSettings"), 'Saved'); var theStr = '"params":{"blogpostid":'+blogpostid+', "val":'+val+', "acctid":'+acctid+', "userid":'+commentObj.curUser.userid+', "token":"'+commentObj.curUser.token+'", "firstCall":'+firstCall+'}'; var requestObj = new buildRequestObj(theStr, 13, null, connectionErr); xs.make_request(requestObj); }; function postComment(src) { if(commentObj.curUser.isLoggedIn && !commentObj.curUser.isValidated) { showNotValidated(listObj); return; } commentObj.timeTrackStart = getCurTime(); if(commentObj.postCommentCallback) var firstCall = "false"; else var firstCall = "true"; if(typeof(mbl_current_visitor) == "undefined") var mblID = ""; else var mblID = mbl_current_visitor; if(src==0) //new thread { if(commentObj.newthreadType == 4 || commentObj.newthreadType == 5) //OpenID { if($id('IDCommentNewThreadText').value=='Enter text right here!' || $id('IDCommentNewThreadText').value.length==0) { showMsgBox("Oops...", "We're gonna need you to write a comment before you can post it.
", 0); return; } if(commentObj.newthreadType == 4) //signup { if($id('txtOpenIDSignupNewThreadURL').value.length == 0 || $id('txtOpenIDSignupNewThreadURL').value=="http://") { showMsgBox("Oops...", "We're gonna need you to specify an openid url.
", 0); return; } $id('IDCommentsOpenIDSignupNewThreadComment').value = $id('IDCommentNewThreadText').value; $id('IDCommentsOpenIDSignupNewThreadParentid').value = 0; $id('IDCommentsOpenIDSignupNewThread').submit(); return; } else //login { if($id('txtOpenIDSignupNewThreadURL').value.length == 0 || $id('txtOpenIDSignupNewThreadURL').value=="http://") { showMsgBox("Oops...", "We're gonna need you to specify an openid url.
", 0); return; } $id('IDCommentsOpenIDSignupNewThreadComment').value = $id('IDCommentNewThreadText').value; $id('IDCommentsOpenIDSignupNewThreadParentid').value = 0; $id('IDCommentsOpenIDSignupNewThread').submit(); return; } } //Check for defaults if($id('IDCommentNewThreadText').value=='Enter text right here!') { showMsgBox("Oops...", "We're gonna need you to write a comment before you can post it.
", 0); return; } if($id('txtEmailNewThread').value == '' && commentObj.newthreadType == 3) { showMsgBox("Oops...", "In order to create an account, you need to supply a valid email address
", 0); return; } if($id('txtNameNewThread').value == '' && commentObj.newthreadType == 0) { showMsgBox("Oops...", "Please tell us your name and then try to submit your comment again
", 0); return; } /*if($id('txtNameNewThread').value.indexOf('&')>0) { showMsgBox("Oops...", "Your name can't contain a & character.
", 0); return; }*/ if($id('IDNewThreadTweetThis').checked) var tweetThis = 'T'; else var tweetThis = 'F'; var theStr = '"params":{ "firstCall":'+firstCall+', "src":'+src+', "blogpostid":'+commentObj.blogpostid+', "acctid":'+commentObj.acctid+', "parentid":0, "depth":0, "type":'+commentObj.newthreadType+', "token":"'+IDaddslashes(commentObj.curUser.token)+'", "anonName":"'+encodeURIComponent(IDaddslashes($id('txtNameNewThread').value))+'", "anonEmail":"'+IDaddslashes($id('txtEmailNewThread').value)+'", "anonURL":"'+IDaddslashes($id('txtURLNewThread').value)+'", "userid":'+commentObj.curUser.userid+', "token":"'+commentObj.curUser.token+'", "mblid":"'+mblID+'", "tweetThis":"'+tweetThis+'", "comment":"'+encodeURIComponent(IDaddslashes(IDaddslashes($id('IDCommentNewThreadText').value))).replace(/&/g, "%26")+'"}'; if(theStr.length>7900 || (browser == "Microsoft Internet Explorer" && theStr.length>2050)) { showMsgBox("Sorry", "Your comment is a little too long. Try splitting it into multiple comments.");
IDReportError("Comment Too Long:"+$id('IDCommentNewThreadText').value.length);
return;
}
IDReplaceHtml($id("IDNewThreadSubmitLI"), '
');
var requestObj = new buildRequestObj(theStr, 0, null, connectionErr);
xs.make_request(requestObj);
}
else
{
if(commentObj.replyType == 4 || commentObj.replyType == 5) //OpenID
{
if($id('txtComment').value=='Enter text right here!' || $id('txtComment').value.length==0)
{
showMsgBox("Oops...", "
We're gonna need you to write a comment before you can post it.
", 0); return; } if(commentObj.replyType == 4) //signup { if($id('txtOpenIDSignupReplyURL').value.length == 0 || $id('txtOpenIDSignupReplyURL').value=="http://") { showMsgBox("Oops...", "We're gonna need you to specify an openid url.
", 0); return; } $id('IDCommentsOpenIDSignupReplyComment').value = $id('txtComment').value; $id('IDCommentsOpenIDSignupReplyParentid').value = commentObj.parentid; $id('IDCommentsOpenIDSignupReply').submit(); return; } else //login { if($id('txtOpenIDSignupReplyURL').value.length == 0 || $id('txtOpenIDSignupReplyURL').value=="http://") { showMsgBox("Oops...", "We're gonna need you to specify an openid url.
", 0); return; } $id('IDCommentsOpenIDSignupReplyComment').value = $id('txtComment').value; $id('IDCommentsOpenIDSignupReplyParentid').value = commentObj.parentid; $id('IDCommentsOpenIDSignupReply').submit(); return; } } //Check for defaults if($id('txtComment').value=='Enter text right here!') { showMsgBox("Oops...", "We're gonna need you to write a comment before you can post it.
", 0); return; } if($id('txtEmailReply').value == '' && commentObj.replyType == 3) { showMsgBox("Oops...", "In order to create an account, you need to supply a valid email address
", 0); return; } if($id('txtNameReply').value == '' && commentObj.replyType == 0) { showMsgBox("Oops...", "Please tell us your name and then try to submit your comment again
", 0); return; } if($id('IDReplyTweetThis').checked) var tweetThis = 'T'; else var tweetThis = 'F'; var theStr = '"params":{ "firstCall":'+firstCall+', "src":'+src+', "blogpostid":'+commentObj.blogpostid+', "acctid":'+commentObj.acctid+', "parentid":'+commentObj.parentid+', "depth":'+commentObj.depth+', "type":'+commentObj.replyType+', "token":"'+IDaddslashes(commentObj.curUser.token)+'", "anonName":"'+encodeURIComponent(IDaddslashes($id('txtNameReply').value))+'", "anonEmail":"'+IDaddslashes($id('txtEmailReply').value)+'", "anonURL":"'+IDaddslashes($id('txtURLReply').value)+'", "userid":'+commentObj.curUser.userid+', "token":"'+commentObj.curUser.token+'", "mblid":"'+mblID+'", "tweetThis":"'+tweetThis+'", "comment":"'+encodeURIComponent(IDaddslashes(IDaddslashes($id('txtComment').value))).replace(/&/g, "%26")+'"}'; if(theStr.length>7900 || (browser == "Microsoft Internet Explorer" && theStr.length>2050)) { showMsgBox("Sorry", "Your comment is a little too long. Try splitting it into multiple comments.");
IDReportError("Comment Too Long:"+$id('txtComment').value.length);
return;
}
IDReplaceHtml($id("IDReplyDivSubmitLI"), '
');
var requestObj = new buildRequestObj(theStr, 0, null, connectionErr);
xs.make_request(requestObj);
//d = new Date();
//IDLastPostTime = d.getTime();
}
};
function forgotPassword()
{
if(commentObj.forgotPasswordCallback)
var firstCall="false";
else
var firstCall="true";
commentObj.timeTrackStart = getCurTime();
var theStr = '"params":{"email":"'+IDaddslashes($id('txtResolveEmail').value)+'", "firstCall":'+firstCall+'}';
var requestObj = new buildRequestObj(theStr, 7, null, connectionErr);
xs.make_request(requestObj);
};
function reportThisComment(commentid)
{
if(commentObj.ReportCommentCallback)
var firstCall="false";
else
var firstCall="true";
var theStr = '"params":{"commentid":"'+commentid+'", "commentAdditional":"'+IDaddslashes($id('IDCCommentAdditional').value)+'", "firstCall":'+firstCall+'}';
//alert(theStr);
var requestObj = new buildRequestObj(theStr, 14, null, connectionErr);
xs.make_request(requestObj);
};
function chkSignupReplyClick(obj)
{
if(obj.value==3)
{
obj.value=0;
commentObj.replyType = 0;
}
else
{
obj.value=3;
commentObj.replyType = 3;
}
};
function chkSignupOpenIDReplyClick(obj)
{
if(obj.value==4)
{
obj.value=5;
commentObj.replyType = 5;
}
else
{
obj.value=4;
commentObj.replyType = 4;
}
};
function chkSignupOpenIDNewThreadClick(obj)
{
if(obj.value==4)
{
obj.value=5;
commentObj.newthreadType = 5;
}
else
{
obj.value=4;
commentObj.newthreadType = 4;
}
};
function chkSignupNewThreadClick(obj)
{
if(obj.value==3)
{
obj.value=0;
commentObj.newthreadType = 0;
}
else
{
obj.value=3;
commentObj.newthreadType = 3;
}
};
function connectionErr(obj)
{
IDReportError("Connection Error - Comment Length:"+$id('IDCommentNewThreadText').value.length);
IDReplaceHtml($id("IDReplyDivSubmitLI"), 'Cancel|Submit Comment');
IDReplaceHtml($id("IDNewThreadSubmitLI"), 'Submit comment');
showMsgBox("Oops","
There has been a connection error. The connection has timed out.
", 2); }; function IDReportError(errNum) { var url = IDHost+"/submitBug.php?errid="+errNum+"&userid="+commentObj.curUser.userid+"&blogpostid="+commentObj.blogpostid; var bugScript = document.createElement("SCRIPT"); bugScript.src = url; bugScript.type="text/javascript"; document.getElementsByTagName("HEAD")[0].appendChild(bugScript); }; function IDReportTime(type, time) { var url = IDHost+"/submitTimeReport.php?type="+type+"&time="+time+"&blogpostid="+commentObj.blogpostid; var timeReportScript = document.createElement("SCRIPT"); timeReportScript.src = url; timeReportScript.type="text/javascript"; document.getElementsByTagName("HEAD")[0].appendChild(timeReportScript); }; function showReply(commentid) { if(commentObj.curUser.isLoggedIn && !commentObj.curUser.isValidated) { showNotValidated($id("IDComment"+commentid)); return; } if(commentObj.comments[commentid] && commentObj.comments[commentid].threadparentid>0 && $id("IDComment"+commentObj.comments[commentid].threadparentid).parentNode.className.indexOf("idc-collapse")>0) { collapseThread(commentObj.comments[commentid].threadparentid); } else if($id("IDComment"+commentid) && $id("IDComment"+commentid).parentNode && $id("IDComment"+commentid).parentNode.className.indexOf("idc-collapse")>0) { collapseThread(commentid); } if(commentObj.parentid == commentid) { hideReply(); commentObj.parentid = 0; return; } else { if($id("IDCommentPostReplyLink"+commentObj.parentid)) $id("IDCommentPostReplyLink"+commentObj.parentid).style.display="block"; $id("IDCommentPostReplyLink"+commentid).style.display="none"; } createCookie("IDReplyCommentId", commentid, 1); commentObj.depth = commentObj.comments[commentid].depth+1; commentObj.parentid = commentid; $id("txtComment").style.width = 50 +"px"; if($id("IDComment"+commentid).nextSibling.childNodes.length>0) { $id("IDComment"+commentid).nextSibling.insertBefore(commentObj.divReply, $id("IDComment"+commentid).nextSibling.firstChild); } else { $id("IDComment"+commentid).nextSibling.appendChild(commentObj.divReply); } commentObj.divReply.style.display = "block"; $id('IDCommentReplyInnerDiv').style.width = (IDgetWidth(commentObj.divReply) - 18) +"px"; //IDgetWidth($id('IDCommentReplyOuterDiv')) + "px"; $id('IDCommentsOpenIDReplyInnerDiv').style.width = (IDgetWidth(commentObj.divReply) - 18) +"px"; //IDgetWidth($id('IDCommentReplyOuterDiv')) + "px"; $id("txtComment").style.width = (IDgetWidth(commentObj.divReply) - 26) +"px"; $id("txtComment").focus(); }; function hideReply() { $id("IDCommentPostReplyLink"+commentObj.parentid).style.display="block"; commentObj.divReply.style.display = "none"; commentObj.parentid = 0; }; function showMsgBox(header, text, type, objTop) { IDReplaceHtml($id('IDCommentPopupInner'), ''); var link1 = $newEl("a"); link1.href="javascript: hideMsgBox();"; link1.className = "idc-close idc-disablestyles"; var innerSpan = $newEl("span"); IDReplaceHtml(innerSpan,'Close'); link1.appendChild(innerSpan); var h6 = $newEl("h6"); IDReplaceHtml(h6, header); var pText = $newEl('div'); //text = text.replace(//g, "").replace(/<\/p>/g,""); //alert(text); IDReplaceHtml(pText, text); var p = $newEl('p'); p.className="idc-bottom"; var link2 = $newEl('a'); link2.href="javascript: hideMsgBox();"; IDReplaceHtml(link2, "Close Message"); link2.className="idc-btn_s idc-disablestyles"; p.appendChild(link2); $id('IDCommentPopupInner').appendChild(link1); $id('IDCommentPopupInner').appendChild(h6); $id('IDCommentPopupInner').appendChild(pText); $id('IDCommentPopupInner').appendChild(p); if(browser == "Microsoft Internet Explorer") { var b_version=navigator.appVersion; b_version = b_version.substr(b_version.indexOf("MSIE")+ 5, 3); var version=parseFloat(b_version); if(version<=6) { /*if(null!=objTop) $id('IDCommentPopup').style.top = (IDgetTop(objTop))+"px"; else*/ $id('IDCommentPopup').style.top = (IDgetWindowHeight()/2 + IDgetScrollY() + IDgetHeight($id('IDCommentPopup'))/2)+"px"; } } if(type==0) $id('IDCommentPopup').className = $id('IDCommentPopup').className.replace(/idc-error/g, "").replace(/idc-success/g, ""); else if(type==1) $id('IDCommentPopup').className = $id('IDCommentPopup').className.replace(/idc-error/g, "").replace(/idc-success/g, "");/*$id('IDCommentPopup').className = $id('IDCommentPopup').className.replace(/idc-error/g, "") + " idc-success";*/ else $id('IDCommentPopup').className = $id('IDCommentPopup').className.replace(/idc-error/g, "").replace(/idc-success/g, "");/*$id('IDCommentPopup').className = $id('IDCommentPopup').className.replace(/idc-success/g, "") + " idc-error";*/ $id('IDCommentPopup').style.display = "block"; IDReportError(header+": "+text); }; function showReportBox(commentId) { IDReplaceHtml($id('IDCommentPopupInner'), ''); var link1 = $newEl("a"); link1.href="javascript: hideMsgBox();"; link1.className = "idc-close idc-disablestyles"; var innerSpan = $newEl("span"); IDReplaceHtml(innerSpan,'Close'); link1.appendChild(innerSpan); var h6 = $newEl("h6"); var type = 0; var header = 'Report this comment for a violation'; IDReplaceHtml(h6, header); var pText = $newEl('div'); var text = '
'+$id('IDCustomReportTxt').innerHTML+'
Reason for reporting:
'; //var text = 'Please only report this comment if it violates our terms of service
Inappropriate comments contain content that is
Reason for reporting:
Report this!'; //text = text.replace(//g, "").replace(/<\/p>/g,""); //alert(text); IDReplaceHtml(pText, text); var p = $newEl('p'); p.className="idc-bottom"; var link2 = $newEl('a'); link2.href="javascript: hideMsgBox();"; IDReplaceHtml(link2, "Close Message"); link2.className="idc-btn_s idc-disablestyles"; p.appendChild(link2); $id('IDCommentPopupInner').appendChild(link1); $id('IDCommentPopupInner').appendChild(h6); $id('IDCommentPopupInner').appendChild(pText); $id('IDCommentPopupInner').appendChild(p); if(browser == "Microsoft Internet Explorer") { var b_version=navigator.appVersion; b_version = b_version.substr(b_version.indexOf("MSIE")+ 5, 3); var version=parseFloat(b_version); if(version<=6) { /*if(null!=objTop) $id('IDCommentPopup').style.top = (IDgetTop(objTop))+"px"; else*/ $id('IDCommentPopup').style.top = (IDgetWindowHeight()/2 + IDgetScrollY() + IDgetHeight($id('IDCommentPopup'))/2)+"px"; } } if(type==0) $id('IDCommentPopup').className = $id('IDCommentPopup').className.replace(/idc-error/g, "").replace(/idc-success/g, ""); else if(type==1) $id('IDCommentPopup').className = $id('IDCommentPopup').className.replace(/idc-error/g, "").replace(/idc-success/g, "");/*$id('IDCommentPopup').className = $id('IDCommentPopup').className.replace(/idc-error/g, "") + " idc-success";*/ else $id('IDCommentPopup').className = $id('IDCommentPopup').className.replace(/idc-error/g, "").replace(/idc-success/g, "");/*$id('IDCommentPopup').className = $id('IDCommentPopup').className.replace(/idc-success/g, "") + " idc-error";*/ $id('IDCommentPopup').style.display = "block"; IDReportError(header+": "+text); }; function hideMsgBox() { $id('IDCommentPopup').style.display = "none"; }; function showReputationWhy(commentid) { showMsgBox("Intense Debate Reputation Meter", "
The reputation meter is a measure of strength of all previous comments made on our system by a certain commenter as judged by his or her peers. It is one way to tell whether the comment you are reading is written by someone well-regarded.
", 0, commentObj.comments[commentid].commentDiv);
};
function showForgotPassword()
{
showMsgBox("Forgot your password?", "", 0);
setTimeout('$id("txtResolveEmail").value=$id("IDtxtLoginEmail").value;',50);
setTimeout('$id("txtResolveEmail").focus();',60);
};
function showGiveFeedback()
{
showMsgBox("Got feedback? Great!", "", 0);
//$id("txtFeedback").focus();
$id("txtFeedback").style.color="black";
setTimeout('$id("txtFeedback").focus();',100);
};
function sendFeedback()
{
var theStr = '"params":{"feedback":"'+IDaddslashes($id("txtFeedback").value)+'", "email":"'+IDaddslashes($id("txtFeedbackEmail").value)+'", "blogpostid":'+commentObj.blogpostid+'}';
var requestObj = new buildRequestObj(theStr, 8, null, connectionErr);
xs.make_request(requestObj);
};
function showSignupWhy()
{
showMsgBox("Why signup?", "You must be logged in to edit a comment.
", 0, null); return; } if(!commentObj.comments[commentid] || !commentObj.comments[commentid].commentid) { showMsgBox("Hang on there cowboy...", "That comment doesn't exist...
", 0, null); return; } $id("IDComment-CommentText"+commentid).style.display="none"; if(!$id("IDEditCommentTextArea"+commentid)) { var newTextArea = $newEl("textarea"); newTextArea.id = "IDEditCommentTextArea"+commentid; $id("IDComment-CommentText"+commentid).parentNode.appendChild(newTextArea); } else $id("IDComment-CommentText"+commentid).parentNode.appendChild($id("IDEditCommentTextArea"+commentid)); $id("IDEditCommentTextArea"+commentid).style.display="block"; $id("IDEditCommentTextArea"+commentid).className = "idc-text"; if(commentObj.comments[commentid].depth==0) $id("IDEditCommentTextArea"+commentid).style.width = (IDgetWidth($id('IDComment'+commentid))-8)+"px"; else $id("IDEditCommentTextArea"+commentid).style.width = (IDgetWidth($id('IDComment'+commentid))-26) +"px"; $id("IDEditCommentTextArea"+commentid).value = $id("IDComment-CommentText"+commentid).innerHTML.replace(/<\/div>/gi,'').replace(/You must be logged in to delete a comment.
", 0, null); return; } if(!commentObj.comments[commentid] || !commentObj.comments[commentid].commentid) { showMsgBox("Hang on there cowboy...", "That comment doesn't exist...
", 0, null); return; } IDReplaceHtml($id("IDCommentCancelSave"+commentid), '
');
var theStr = '"params":{"blogpostid":'+commentObj.blogpostid+', "accountid":'+commentObj.acctid+', "userid":'+commentObj.curUser.userid+', "commentid":"'+commentid+'", "comment":"'+encodeURIComponent(IDaddslashes(IDaddslashes($id("IDEditCommentTextArea"+commentid).value))).replace(/&/g, "%26")+'"}';
var requestObj = new buildRequestObj(theStr, 12, null, connectionErr);
xs.make_request(requestObj);
}
function IDcancelEditComment(commentid)
{
$id("IDEditCommentTextArea"+commentid).style.display="none";
$id("IDComment-CommentText"+commentid).style.display="block";
$id("IDCommentCancelSave"+commentid).style.display="none";
$id("IDCommentPostReplyLink"+commentid).style.display="block";
}
function deleteComment(commentid, type)
{
if(!commentObj.curUser.userid || commentObj.curUser.userid <= 0)
{
showMsgBox("Hang on there cowboy...", "You must be logged in to delete a comment.
", 0, null); return; } if(!commentObj.comments[commentid] || !commentObj.comments[commentid].commentid) { showMsgBox("Hang on there cowboy...", "That comment doesn't exist...
", 0, null); return; } if(type<0 || type>1) { showMsgBox("Hang on there cowboy...", "That type is invalid.
", 0, null); return; } var theStr = '"params":{"blogpostid":'+commentObj.blogpostid+', "accountid":'+commentObj.acctid+', "userid":'+commentObj.curUser.userid+', "commentid":"'+commentid+'"}'; if(type==0) objType = 11; else objType = 10; IDReplaceHtml($id("IDCommentPostReplyLinkDelete"+commentid), 'Deleting...'); $id("IDCommentPostReplyLinkDelete"+commentid).className = "idc-loadtext"; var requestObj = new buildRequestObj(theStr, objType, null, connectionErr); xs.make_request(requestObj); } function deleteTrackback(trackbackid) { if(!commentObj.curUser.userid || commentObj.curUser.userid <= 0) { showMsgBox("Hang on there cowboy...", "You must be logged in to delete a trackback.
", 0, null); return; } var theStr = '"params":{"blogpostid":'+commentObj.blogpostid+', "accountid":'+commentObj.acctid+', "userid":'+commentObj.curUser.userid+', "trackbackid":"'+trackbackid+'"}'; objType = 15; if($id("IDTrackBackDeleteLink"+trackbackid)) { IDReplaceHtml($id("IDTrackBackDeleteLink"+trackbackid), 'Deleting...'); $id("IDTrackBackDeleteLink"+trackbackid).className = "idc-loadtext"; var requestObj = new buildRequestObj(theStr, objType, null, connectionErr); xs.make_request(requestObj); } else { showMsgBox("Hang on there cowboy...", "That trackback doesn't exist...
", 0, null); return; } } var IDAdminIsLoggedIn=false;if(typeof(IDCounted)=="undefined") { var IDCounted; window.onload=IDcountIT; } function IDcountIT() { if(IDCounted == undefined) { scriptArray = document.getElementsByTagName("SCRIPT"); var srcString; var countPageUrl = "http://www.intensedebate.com/js/countIt.php?accountid=1152"; var commentLinkCount = 0; for(var i=0; i
", 0, commentObj.comments[commentid].commentDiv);
};
function showForgotPassword()
{
showMsgBox("Forgot your password?", "", 0);
setTimeout('$id("txtResolveEmail").value=$id("IDtxtLoginEmail").value;',50);
setTimeout('$id("txtResolveEmail").focus();',60);
};
function showGiveFeedback()
{
showMsgBox("Got feedback? Great!", "", 0);
//$id("txtFeedback").focus();
$id("txtFeedback").style.color="black";
setTimeout('$id("txtFeedback").focus();',100);
};
function sendFeedback()
{
var theStr = '"params":{"feedback":"'+IDaddslashes($id("txtFeedback").value)+'", "email":"'+IDaddslashes($id("txtFeedbackEmail").value)+'", "blogpostid":'+commentObj.blogpostid+'}';
var requestObj = new buildRequestObj(theStr, 8, null, connectionErr);
xs.make_request(requestObj);
};
function showSignupWhy()
{
showMsgBox("Why signup?", "