/*
 * This is a set of related js functions for URL's
 * @author mxs
 */


/* Get Url Parameter 
 * Search for any single parameter in the url and return its value
 */
function gup( name )
{
  var regexS = "[\\?&]"+name+"=([^&#]*)";
  var regex = new RegExp( regexS );
  var tmpURL = window.location.href;
  var results = regex.exec( tmpURL );
  if( results == null )
    return "";
  else
    return results[1];
}
