function flagInapComment(chkbx){ if(chkbx.tagName != "INPUT") return; cid = chkbx.id.substring(chkbx.id.indexOf("_")+1, chkbx.id.length); new Ajax.Request('/comment/flagBadComment/cid/'+cid+'.html', {asynchronous:true, evalScripts:false}); divId = 'divThx_'.concat(cid); document.getElementById(divId).style.visibility = (chkbx.checked)?'visible':'hidden'; chkbx.disabled = true; } function editEmailPreferences(chkbx,username){ if(chkbx.tagName != "INPUT") return; cid = chkbx.id.substring(chkbx.id.indexOf("_")+1, chkbx.id.length); var notice = 'emailPrefUpdate_'.concat(cid); if (chkbx.checked == false) { alert('You will no longer receive emails when others comment on this page'); var value = 0; } else { alert('You will receive an email when others comment on this page'); var value = 1; } //alert('/profile/updateEmailPreferencesC/hash/' + cid + '/value/' + value + '/user/' + username + '.html'); die(); new Ajax.Request('/profile/updateEmailPreferencesC/hash/' + cid + '/value/' + value + '/user/' + username + '.html', {asynchronous:true, evalScripts:false}); } function editComment(btnEdit){// not used if(btnEdit.tagName != "INPUT") return; divs = getChildrenByTagName(btnEdit.parentNode.parentNode, 'DIV'); if(btnEdit.value == "Edit"){ for(i=0;i