//alert ("test5"); 

$(function()
  {
    // Set the data text
    //  var dataText = "page=<?php echo $_SERVER['REQUEST_URI']; ?>&referrer=<?php echo $_SERVER['HTTP_REFERER']; ?>";
    var uri =  document.location.pathname;
    var ref = document.referrer;

    var dataText = "page=" + uri;
    dataText += "&referrer=" + ref;
//    alert (dataText); 

    // Create the AJAX request
    $.ajax(
    {
      type: "POST",                    // Using the POST method
      url: "./process.php",             // The file to call
      data: dataText                  // Our data to pass
/*      , success: function(response) 
      {            // What to do on success
      alert (response);
      $('#complete').html( 'Your page view has been added to the statistics!' );
      $('#complete').html( response );
      }
      , error:function (xhr, ajaxOptions, thrownError)
     {
      alert(xhr.status);
      alert(thrownError);
      }    
*/    }
    );

  });


