/*
	File:		ChangeAction.Js
	Purpose:    Changes the action of a form and Submits it
	Author:     Michael Mercieca
	Created: 	August 4, 2000 (From ChangeAction.Js of Consumer Site)
*/

/* function to change the action of a form and submit it 
takes three parameters (the redirect page,
 the form number on the page (probably always zero),
 Boolean whether or not to change the entire action, ror just add to it)*/


function ChangeAction (cWhere, nFormIdx, bAdd)
	{
	if (bAdd) document.forms[nFormIdx].action = document.forms[nFormIdx].action +cWhere;
	else 	  document.forms[nFormIdx].action = cWhere;
	document.forms[nFormIdx].submit(); 
	}
