function clearContent(oForm) { var clearForm = document.getElementById(oForm); if (null != clearForm && typeof (clearForm) != "undefined") { clearForm.reset(); }