function submitForm(Name, Action)
{
  var form = document.all[Name];
  form.action = Action;
  form.submit();
}