/*
  doContinue.js
  takes a pagename (like 'services.asp')
  and sets the form's action to the pagename
  and calls submit() to go there
  
  should be made general, to work with any form
*/


function doContinue(url)   // url is pagename of where we want to go
{
  var pathAndName;  // where we are
  var position;     // position in document.location.pathname of a '\'
  var newUrl;       // where we want to go
      
  // netscape needs the whole path
  // IE and Opera can use just a page name
  // for netscape, look for \ in current document.location.pathname 
  // (\ only found in netscape)
  // and replace this page name with next page name
  pathAndName = new String (document.location.pathname.toString());
  position = pathAndName.indexOf('\\');      
  if (position > 0)  // for netscape
  {
    newUrl = pathAndName.substr(0, position + 1) +  url;
  }
  else               // for IE
  {
    newUrl = url;
  }
  document.form1.action = newUrl;
  document.form1.submit();
}

