//Check that all input fields have text. Ignore the fields named in the ignorearray function doSubmit(form, ignore, fieldNames) { var fieldname,type,msg,textexp; if (!fieldNames) fieldNames = new Array(); if (typeof(ignore)=='string') { ignore = ignore.split(','); } for (var i=0; i