var post_thanks_handleSuccess=function(A){if(A.responseText!==undefined){if(post_thanks_callback.object_name[A.tId]!==undefined){fetch_object(post_thanks_callback.object_name[A.tId]).innerHTML=A.responseText}}};var post_thanks_handleFailure=function(A){if(A.responseText!==undefined){alert(A.responseText)}};var post_thanks_callback={success:post_thanks_handleSuccess,failure:post_thanks_handleFailure,timeout:vB_Default_Timeout,cache:false,object_name:new Array()};function post_thanks_give(E,B){fetch_object("post_thanks_button_"+E).style.display="none";if(B==true){fetch_object("post_groan_button_"+E).style.display="none"}var D="post_thanks.php";var A="do=post_thanks_add&using_ajax=1&p="+E+"&securitytoken="+SECURITYTOKEN;var C=YAHOO.util.Connect.asyncRequest("POST",D,post_thanks_callback,A);post_thanks_callback.object_name[C.tId]="post_thanks_box_"+E;return false}function post_thanks_remove_all(E,B){var D="post_thanks.php";var A="do=post_thanks_remove_all&using_ajax=1&p="+E+"&securitytoken="+SECURITYTOKEN;var C=YAHOO.util.Connect.asyncRequest("POST",D,post_thanks_callback,A);post_thanks_callback.object_name[C.tId]="post_thanks_box_"+E;fetch_object("post_thanks_button_"+E).style.display="";if(B==true){fetch_object("post_groan_button_"+E).style.display=""}return false}function post_thanks_remove_user(E,B){var D="post_thanks.php";var A="do=post_thanks_remove_user&using_ajax=1&p="+E+"&securitytoken="+SECURITYTOKEN;var C=YAHOO.util.Connect.asyncRequest("POST",D,post_thanks_callback,A);post_thanks_callback.object_name[C.tId]="post_thanks_box_"+E;fetch_object("post_thanks_button_"+E).style.display="";if(B==true){fetch_object("post_groan_button_"+E).style.display=""}return false};