function checkForm(form){ var oForm = form || this; var msg = ""; for (var i=0;i