1function doValidateFileSize(obj, fieldType, maxFileSize) { 2 var fsize = obj.files[0].size; 3 var msg = ""; 4 5 //alert(fieldType + ":" + fsize/1024000 + ":" + maxFileSize); 6 7 switch (fieldType.trim().toUpperCase()) { 8 case "FILEUPLDG": 9 case "FILEUPLDP": 10 if (fsize/1024000 > maxFileSize) { 11 msg = "The file size is too large. Please limit the file size up to " + maxFileSize + " mb only."; 12 } 13 break; 14 case "IMGUPLDG": 15 case "IMGUPLDP": 16 if (fsize/1024000 > maxFileSize) { 17 msg = "The image size is too large. Please limit the image size up to " + maxFileSize + " mb only."; 18 } 19 break; 20 } 21 if (msg.length > 0) { 22 obj.files[0].name = ""; 23 obj.value = ""; 24 alert(msg); 25 } 26} 27function doConfirmDelContactDetail(mktgID, mktgFldID, mktgFldType) { 28 if (confirm("Confirm to delete this file/image ?")) { 29 window.location = "Contact_Detail_Delete.asp?MID=" + mktgID + "&FLDID=" + mktgFldID + "&FLDTYPE=" + mktgFldType; 30 return true; 31 } 32 else { 33 return false; 34 } 35}
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.