/* ** Added by xuan */ function submitform(id) { var theForm = document.getElementById(id); if(theForm && theForm.onsubmit) { theForm.onsubmit(); } if(theForm && theForm.submit) { theForm.submit(); } }