Problems save form on Web

I have a button inside a form on the web with the following code:

var f = document.forms[0];

if (validateForm())

{

if (confirm("Esta seguro de querer guardar el documento??"))

{

	f.Action.value = "Save";

	f.submit();

}

}

But tells me that Action is null or it is not an object, are there other way the save a document?, or what is the error?

                                       Thanks in advance, Noelia

Subject: RE: Problems save form on Web

Javascript is case-sensetive, make sure you spell the field name correctly and the field is visible in HTML source.

In some browsers it can also happen that f.submit() occurs before field change event is complete and it might generate unpredictable errors.

Subject: RE: Problems save form on Web

is the Action field hidden?The web can not see hidden fields