1function readURL(input) { 2 if (input.files && input.files[0]) { 3 var reader = new FileReader(); 4 reader.onload = function (e) { 5 $('#img_prev') 6 .attr('src', e.target.result) 7 .width(120) 8 .height(120); 9 }; 10 reader.readAsDataURL(input.files[0]); 11 } 12} 13 14function MM_validateForm() { //v4.0 15 if (document.getElementById){ 16 var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments; 17 for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=document.getElementById(args[i]); 18 if (val) { nm=val.name; if ((val=val.value)!="") { 19 if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@'); 20 if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n'; 21 } else if (test!='R') { num = parseFloat(val); 22 if (isNaN(val)) errors+='- '+nm+' must contain a number.\n'; 23 if (test.indexOf('inRange') != -1) { p=test.indexOf(':'); 24 min=test.substring(8,p); max=test.substring(p+1); 25 if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n'; 26 } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; } 27 } if (errors) alert('The following error(s) occurred:\n'+errors); 28 document.MM_returnValue = (errors == ''); 29} } 30 31 32function MM_findObj(n, d) { //v4.01 33 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { 34 d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} 35 if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; 36 for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); 37 if(!x && d.getElementById) x=d.getElementById(n); return x; 38} 39 40 41var _gaq = _gaq || []; 42 _gaq.push(['_setAccount', 'UA-1290416-59']); 43 _gaq.push(['_trackPageview']); 44 45 (function() { 46 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; 47 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; 48 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); 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.