/* 
  -----------------------------------------------------------------------------
  -   Name:         Next.js
  -   Author:       Carmon Colvin
  -   Parameters:   none
  -   Returns:      none
  -   Change Log:   10-12-2001 / CColvin   Created.
  -----------------------------------------------------------------------------
*/

function Next(onSubmitFunction)

{

  // create string object
  functionName = new String(onSubmitFunction);

  // if onSubmitFunction was passed in call it and store its returned value to dataIsValid
  if (functionName.toLowerCase() != "undefined")
    dataIsValid = eval(onSubmitFunction);
  // otherwise, no onSubmitFunction will be called so set dataIsValid equal to tru
  else
    dataIsValid = true;

  // if dataisValid set mapAction and submit
  if (dataIsValid)
    {
    document.forms[0].mapAction.value = "CONTINUE";
    document.forms[0].submit();
    }

}