var ctype = 'guest'; function processCommentForm(eid,target,level, type){ var addtitle = $('#addtitle').val(); var entryid = $('#centryid').val(); var addtextv = $('#addtext').val(); var email_address = $('input#email_address').val(); var username = $('#username').val(); var password = $('#password').val(); var new_topic = $('#new_topic').val(); var recaptcha_response = $('#recaptcha_response_field').val(); var recaptcha_challenge = $('#recaptcha_challenge_field').val(); var qap = $('#ianasb checkbox').val(); $(target).load('http://www.walterbeasley.com/common/discuss/add.php', { 'prefix' : 'wbeasley', 'module' : 'bio', 'id' : eid, 'entryid' : entryid, 'target' : target, 'level' : level, 'type' : type, 'thetitle' : addtitle, 'thebody' : addtextv, 'email_address' : email_address, 'username' : username, 'password' : password, 'recaptcha_response_field' : recaptcha_response, 'recaptcha_challenge_field' : recaptcha_challenge, 'qap' : qap }, function(){ location.reload(); }); } function deleteComment(eid,target){ $(target).load('http://www.walterbeasley.com/common/discuss/delete.php', { 'prefix' : 'wbeasley', 'module' : 'bio', 'id' : eid }, function(){ $(target).removeClass('draft'); }); } function showThread(eid,expand,target,level){ $('.comment_add').hide(); $(target).fadeIn('slow'); $(target).empty().html('
'); $(target).load('http://www.walterbeasley.com/common/discuss/display.php', { 'prefix' : 'wbeasley', 'id' : eid, 'expand' : expand, 'level' : level } ); } function commentsShowCaptcha(){ $('#verification').hide().delay(2000).load('http://www.walterbeasley.com/common/ishuman/index.php').fadeIn('slow'); ctype = 'guest'; $('.comments_process_button').fadeIn(); $('.comments_choice_button').fadeOut(); } function commentsShowSignup(){ $('#verification').fadeIn(); $('#verification').load('http://www.walterbeasley.com/common/discuss/signup.php', { 'prefix' : 'wbeasley' } ); ctype = 'signup'; $('.comments_process_button').fadeIn(); $('.comments_choice_button').fadeOut(); } function commentsShowLogin(){ $('#verification').fadeIn(); $('#verification').load('http://www.walterbeasley.com/common/discuss/login.php', { 'prefix' : 'wbeasley' } ); ctype = 'login'; $('.comments_process_button').fadeIn(); $('.comments_choice_button').fadeOut(); } function commentsApprove(eid,target){ $(target+' .notify').fadeIn(); $(target+' .notify').load('http://www.walterbeasley.com/common/discuss/approve.php', { 'prefix' : 'wbeasley', 'eid' : eid }, function(){ $(target).removeClass('draft'); }); }