/**
 *	Class to submit a form according to a specific action.
 *
 *	@author		Unknown
 *	@version	1.0
 *	@copyright	Katana Productions Pty Ltd 2002
 *
 *	@param	form    The form object to be submitted.
*/
function OrderByAction(form, idName)
{
  this.base = Action;
  this.base(form, idName)
}

OrderByAction.prototype = new Action

/**
 *	Causes an order by action submit of the form.
 *
 *	@param action A string representing the action to be taken on the server.
 *	@param orderBy A string representing the field to order by.
 *	@param orderType A string representing the field order type (i.e. 'ASC' or 'DESC').
*/
OrderByAction.prototype.doOrderBy = function(action, orderBy, orderType)
{
  if (this.form)
  {
    if (this.form.OrderBy) this.form.OrderBy.value = orderBy;
    if (this.form.OrderType) this.form.OrderType.value = orderType;
    this.doAction(action);
  }
}