This is a question that is asked many times, and could also be answered by searching Google for two minutes.
However, I'll try to give you a short answer.
Getting variables from the URL is much easier using php. All you need to do to access the value of the variable is:
$_GET["MAN_Search"]
If you want to achieve the same using only JavaScript, the solution would look something like this:
    function getQueryVariable(variable) {
       var query = window.location.search.substring(1);
       var vars = query.split("&");
       for (var i=0;i<vars.length;i++) {
               var pair = vars[i].split("=");
               if(pair[0] == variable){return pair[1];}
       }
       return(false);
   }
If you would call getQueryVariable("MAN_Search"), the result would be 4AA11 (taking your example URL).