1function checkEmail(email, name) 2{ 3 if (email == "") 4 { 5 return (0); 6 } 7 if (email.search(" ") !=-1) 8 { 9 alert (name + " íå ìîæåò ñîäåðæàòü ïðîáåë!"); 10 return (1); 11 } 12 if (email.search(",") != -1) 13 { 14 alert (name + " íå ìîæåò ñîäåðæàòü çàïÿòóþ!"); 15 return (1); 16 } 17 if (email.search("@") == -1) 18 { 19 alert (name + " èìååò íåïðàâèëüíûé ôîðìàò!"); 20 return (1); 21 } 22 return(0); 23} 24//--------------------------------------------------- 25// ext. pars. -> 26// arChEmailsOnLoad = {id, ...} 27 28var isChEmails = document.getElementById; 29//---------------------------------------------------- 30function changeEmailsOnLoad() 31{ 32 if (window.changeEmailsOnLoadOld) window.changeEmailsOnLoadOld(); 33 34 var links = document.links; 35 for ( var i=0; i < links.length; i++) 36 { 37 if (links[i].href && links[i].href.indexOf("%20[at]%20") > 0) 38 { 39 links[i].href = links[i].href.replace("%20[at]%20", "@"); 40 } 41 } 42} 43 44//----------------------------------------------------- 45if (isChEmails) 46{ 47 if (window.onload && !window.changeEmailsOnLoadOld) 48 { 49 window.changeEmailsOnLoadOld = window.onload; 50 } 51 window.onload = changeEmailsOnLoad; 52}
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.