/**
 *	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 TreeAction(form)
{
  this.base = Action;
  this.base(form)
}

TreeAction.prototype = new Action

/**
 *	Causes a node action submit of the form.
 *
 *	@param nodeAction A string representing the node action.
 *	@param nodeId An integer representing the id of the node.
*/
TreeAction.prototype.doNodeAction = function(nodeAction, nodeId)
{	
	this.form.action += '?NodeAction=' + nodeAction + '&NodeId=' + nodeId;
  this._insertSearchFields();
	this.form.submit();
  return false;
}