<form action="" method="post" name="headerForm" id="headerForm" onSubmit="return grabar();"> <button type="submit" name="btnSave" id="btnSave">Grabar</button>