/**
  * Change a parameter that is in the $_POST, $_GET or user parameters array
  *
  * This method first checks post, then get, the user params to see if the value is present.
  * If it was present in any of these, then it changes the value to the new one passed. 
  * If the value could not be found, then it is set using the {@link Application::setParam()}
  * method
  * @param name - the name of the value to change
  * @param new_value - the new value 
  * @access public
  * @static
  */
 function alterParam($name, $new_value)
 {
     $ret = true;
     if (!($param = Application::postVarsParam($name))) {
         if (!($param = Application::getVarsParam($name))) {
             Application::setParam($name, $new_value);
         } else {
             $_GET[$name] = $new_value;
         }
     } else {
         $_POST[$name] = $new_value;
     }
     return $ret;
 }