 // Get the HTTP Object

      function getHTTPObject(){

      if (window.ActiveXObject) return new ActiveXObject("Microsoft.XMLHTTP");

      else if (window.XMLHttpRequest) return new XMLHttpRequest();

      else {


      return null;

      }

      }
      

      
      
function post_thanks_give(postid,mid,idm,uname,title,surl)
{
	//fetch_object('post_thanks_button_' + postid).style.display = 'none';
	fetch_object('post_thanks_button_' + postid).src = 'http://forum.parscloob.com/Sources/thanks/loading2.gif';

	 httpObject = getHTTPObject();
  
      if (httpObject != null) {
  		//thanksajax.php
  	scripturl="http://forum.parscloob.com/Sources/thanks/thanksajax.php";
      httpObject.open("GET",scripturl+ "?url=" + postid + "&mid=" + mid + "&idm="+ idm + "&uname="+ uname + "&title=" + title , true);
      //alert(scripturl+ "?url=" + postid + ";mid=" + mid + ";idm="+ idm + ";uname="+ uname + ";title=" + title);
   var updateID = "p_"+postid;
        
      
  
       httpObject.onreadystatechange = function() {  
       	 if(httpObject.readyState == 4){
       	 	fetch_object('post_thanks_button_' + postid).style.display = 'none';
                document.getElementById(updateID).innerHTML += " "+ httpObject.responseText;
            }
       }
       httpObject.send(null);
  
      }

	
}

    
  
      var httpObject = null;
  
       