/*

	"MAY THE FORCE BE WITH YOU... USE THE FORCE, LUKE."

*/
  var speed = 2000;
  var i;
function ajax(url, callbackFunction){ /* thanks wikipedia */

  var request = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("MSXML2.XMLHTTP.3.0");
  if( !window.XMLHttpRequest ) XMLHttpRequest = function(){
        try{ return new ActiveXObject("MSXML3.XMLHTTP") }catch(e){}
        try{ return new ActiveXObject("Msxml2.XMLHTTP") }catch(e){}
        try{ return new ActiveXObject("Microsoft.XMLHTTP") }catch(e){}
        throw new Error("Could not find an XMLHttpRequest alternative.")
  };

  request.open("GET", url, true);

  request.onreadystatechange = function(){
  if (request.readyState == 4 && request.status == 200) {
                if (request.responseText){

                        callbackFunction(request.responseText);
                }
        }
  };
  request.send(null);
}
function counter_callback(response) {
  document.getElementById('counter').innerHTML=response;
}

  function callSync() {
	url = "/bc.php";
	ajax(url, counter_callback);
  }

