function detectAjax(redirectUrl){
 if(redirectUrl=='')redirectUrl="index.php";
 if(advAJAX){
  advAJAX.get({
   url: "modules/ajax/ajaxdetected.ajax.php",
   onSuccess : function(obj) { document.location.href = redirectUrl; }
  });
 }
}