var xmlHttp = http_object();var submit_type = 'none';var g_post_id=0;var g_poster_id=0;var thanker_id=0;function thankspost(url,post_id,poster_id,thanker){ xmlHttp = http_object(); thanker_id=thanker; g_poster_id=poster_id; g_post_id=post_id param='ajax=true'; xmlHttp.onreadystatechange = thanks_return; xmlHttp.open("POST", url, true); xmlHttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); xmlHttp.send(param);}function thanks_return(){ if (xmlHttp.readyState == 4) { document.getElementById('thanksimg'+g_post_id).style.display='no ne'; document.getElementById('thanks_table_' + g_post_id).innerHTML = xmlHttp.responseText; var divtag = document.getElementsByTagName('div'); i=0; l1=g_poster_id+""; l2=thanker_id+""; for(i=0;i<divtag.length;i++){ curtag=divtag[i].id; if(curtag.substr(0,8+l1.length) == 'profile_'+g_poster_id) document.getElementById(curtag).innerHTML=document.getElementByI d('rewrprf'+g_post_id).innerHTML; if(curtag.substr(0,8+l2.length) == 'profile_'+thanker_id) document.getElementById(curtag).innerHTML=document.getElementByI d('rewrprf'+g_post_id+'_'+thanker_id).innerHTML; } }}//Comment function block if it alredy existfunction http_object(){ try { // Firefox, Opera 8.0+, Safari xmlHttp = new XMLHttpRequest(); } catch (e) { // Internet Explorer try { xmlHttp = new ActiveXObject('Msxml2.XMLHTTP'); } catch (e) { try { xmlHttp = new ActiveXObject('Microsoft.XMLHTTP'); } catch (e) { alert("Your browser does not support AJAX!"); return false; } } } return xmlHttp;}

]