function doJSFSubmit(form) { // var form = document.getElementById(formId); form.submit(); }