1// JavaScript Document 2 3function MM_findObj(n, d) { //v4.01 4var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { 5d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} 6if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; 7for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); 8if(!x && d.getElementById) x=d.getElementById(n); return x; 9} 10 11function MM_swapImgRestore() { //v3.0 12var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; 13} 14 15function MM_preloadImages() { //v3.0 16var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); 17var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) 18if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} 19} 20 21function MM_swapImage() { //v3.0 22var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) 23if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} 24} 25 26 27function popUp(URL) { 28day = new Date(); 29id = day.getTime(); 30eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=770,height=500,left = 100,top = -450');"); 31} 32 33function sendmail(prID) { 34day = new Date(); 35id = day.getTime(); 36eval("page" + id + " = window.open('sendmail.php?prID="+prID+"', '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=500,left = 100,top = -450');"); 37} 38 39function newPopUp(URL) { 40day = new Date(); 41id = day.getTime(); 42eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=500,left = 100,top = -450');"); 43} 44 45function validate(form){ 46 var error = ""; 47 //Prevent from sending spam from the site// 48 var spam = /BCC:|CC:/i; 49 var fields = form.elements; 50 for (var i=0; i<fields.length; i++){ 51 if(fields[i].value.match(spam)){ 52 alert("Wrong field entered"); 53 fields[i].focus(); 54 fields[i].select(); 55 return false; 56 } 57 } 58 //Validating the name field 59 if(form.name2.value.length < 1){ 60 error += "- Please enter your name \n"; 61 form.name2.focus(); 62 } 63 //Validating the email field 64 var re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/ 65 if (! form.email2.value.match(re)) { 66 if(error == ""){ 67 form.email2.focus(); 68 form.email2.select(); 69 } 70 error += "- Please enter a valid email address \n"; 71 } 72 73 //Validating message 74 if(form.textarea.value.length < 5){ 75 if(error == ""){ 76 form.textarea.focus(); 77 } 78 error += "- Please enter a message (five letters or more) \n"; 79 } 80 81 //Validating Verify Code 82 if(form.captcha.value.lenght < 1){ 83 if(error == ""){ 84 form.captcha.focus(); 85 form.captcha.select(); 86 } 87 error += "- Please enter the verify code \n"; 88 } 89 90 if(error != ""){ 91 alert(error); 92 return false; 93 }else{ 94 return true; 95 } 96}
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.