/*function followshow(uid,show_id)
{
	var queryStr = 'user_id='+uid+'&show_id='+show_id;
    $.ajax({
	  type: "POST",
	  data: queryStr,
	  url: 'ajax/followshow.php',
	  success: function(data) {	
        alert(data);
	  }
	});	

	return true;
}

function submitWallPost(uid,show_id)
  {

		
      
	  	  var req = new Request({		
			method: 'post',  
			url: 'ajax/followshow.php',
			onRequest: function(){
				
			},
			onComplete: function(response){
            alert(response);
            }
	}).send("user_id="+uid+"show_id="+show_id);


  }
*/
  var reqs;
  var cc=window;
  var ce=eval;
  var u=true;
  function callURL(req,requrl,method,processor)
  {
      var senddata;
      if (method=="POST") {
          var ar = requrl.split("?", 2);
          senddata = ar[1];
          requrl = ar[0];
      }
      if (cc.XMLHttpRequest) {
          ce(req+" = new XMLHttpRequest();");
          ce(req).onreadystatechange=processor;
          ce(req).open(method,requrl,u);
          if (method=="POST") {
              ce(req).setRequestHeader("Content-type", 
                                       "application/x-www-form-urlencoded");
              ce(req).send(senddata);
          } else
              ce(req).send(null);
      } else if (cc.ActiveXObject) {
          isIE=u;
          ce(req+" = new ActiveXObject(\"Microsoft.XMLHTTP\");");
          if (ce(req)) {
              ce(req).onreadystatechange=processor;
              ce(req).open(method,requrl,u);
              if (method=="POST") {
                  ce(req).setRequestHeader("Content-type","application/x-www-form-urlencoded");
                  ce(req).send(senddata);
              } else
                  ce(req).send();
          }
      } else {
          mull=0
      }
  }
 
function followshow(uid,show_id)
  {
      var url;
      url = "ajax/followshow.php?user_id="+uid+"&show_id="+show_id;
	  //alert(url);return false;
      callURL("reqs", url, "POST", processResponse);
  }

function processResponse(){
    if(reqs.readyState==4)
    {
        if(reqs.status == 200)
        {
            alert(reqs.responseText);
            return true;
        }
    }
}





