1function checkrequired(which, sid) { 2 var pass=true; 3 var errmsg = ''; 4 5 if (document.images) { 6 for (i=0;i<which.length;i++) { 7 var tempobj=which.elements[i]; 8 if (tempobj.name.substring(0,2)=="R_") { 9 if (((tempobj.type=="text"||tempobj.type=="textarea"||tempobj.type=="password")&&tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s"&&tempobj.selectedIndex==0)) { 10 pass=false; 11 if ((tempobj.alt) && tempobj.alt.substring(0, 30) != '') { 12 shortFieldName=tempobj.alt.substring(2,30).toUpperCase(); 13 } 14 else if (tempobj.title.substring(0, 30) != '') { 15 shortFieldName = tempobj.title.substring(0, 30).toUpperCase(); 16 } 17 else { 18 shortFieldName=tempobj.name.substring(0,30).toUpperCase().replace('R_',''); 19 } 20 tempobj.style.backgroundColor="#feffcc"; 21 tempobj.style.color = "#000000"; 22 if (errmsg == '') { 23 tempobj.focus(); 24 } 25 errmsg+='--> '+shortFieldName+'\n' 26 } 27 } 28 } 29 } 30 31 32 if ($('input[name=R_fldFormValidation]').val() != sid && $('input[name=R_fldFormValidationR]').val() != '0') { 33 errmsg += '--> Human Validation Code Failed\n' 34 pass = false; 35 } 36 37 $('input[type=button]').attr('disabled', false); 38 $('input[type=submit]').attr('disabled', false); 39 if (!pass) { 40 errmsg = 'The following information is missing from your form:\n\n' + errmsg; 41 alert(errmsg); 42 vResult = false; 43 } else { 44 vResult = true; 45 } 46 47 return vResult; 48 49} 50
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.