/* ThankCool by [DomeniC] --> AJAX client side */
function thankcool(msg_id){
var el = $('#tc_' + msg_id);
var bt = $('#tcb_' + msg_id);
var url = smf_scripturl.replace(/index.php/, '');
if(!el) return false;
if(!bt) return false;
$.post(url + 'thankcool.php', {id: msg_id, se: new Date().getTime()}, function(json) {
if(json.status == 'error')
return alert('error! ' + json.message);
bt.css('cursor', 'default');
bt.html('<b>ThankCooled!</b>');
el.html(json.newlist); 
}, 'json');
}
