// BJB 12-08-2009 added function get_URL_params()
function get_URL_params(name)
{  
  name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
  var regexS = "[\\?&]"+name+"=([^&#]*)";
  var regex = new RegExp( regexS );
  var results = regex.exec( window.location.href );

  if ( results == null )    
    return "";
  else {
    if (results[1].length == 0)
      return "";
    else
      return results[1];
  }
}
