function checkFrm() { var elmt; for (var x=0;x