function validateForm() { var i,p,q,j,chk,nm,bez,test,num,min,max,errors='',args= validateForm.arguments; for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=findObject(args[i]); if (val) { nm=val.name; bez=args[i+1]; if (val.type=='checkbox') { if ( (test.charAt(0) == 'R') && (val.checked==false) ) { errors += '- '+bez+' required\n'; } } else if (!val.type&&val.length>0) { chk = false; for (j=0;j