function doInputCheck(field,valid) { var ok = "yes"; var temp; for (var i=0; i