// FORM SUBMISSION STUFF ...

function SubmitForm(Index)
{
  document.forms[Index].submit();
}

function ResetForm(Index)
{
  document.forms[Index].reset();
}

function CancelForm(Index)
{
  cancelAction = document.forms[Index].action + '?org.apache.struts.taglib.html.CANCEL=cancel';
  document.forms[Index].action = cancelAction;
  document.forms[Index].submit();
}

function SubmitFormWithAction(Index, Action)
{
  document.forms[Index].action = Action;
  SubmitForm(Index);
}

var formSubmitCount = 0;

function singleSubmit()
{
  formSubmitCount++;
  if (formSubmitCount > 1)
  {
    alert('Processing...');
  }
  return (formSubmitCount == 1);
}

