1// JavaScript Document 2function menu(){ 3 if(document.getElementById('mnu').style.left=='0px') document.getElementById('mnu').style.left='-225px'; 4 else document.getElementById('mnu').style.left='0px' 5} 6var commk=false; 7function comj(){ 8 if(commk){ 9 document.getElementById("commg").style.display="none"; 10 commk=false; 11 }else{ 12 document.getElementById("commg").style.display="block"; 13 commk=true; 14 } 15} 16function coms(id_rub,id_artc){ 17 var commn=document.fr.commn.value; 18 var commt=document.fr.commt.value; 19 var r=''; 20 if(commn.length<2)r+="á¨ááááá¬áá á¡áá®ááá!\n"; 21 if(commt.length<2)r+="á¨ááááá¬áá áááááá¢áá á!\n"; 22 if(r==''){ 23 loadXMLDoc("comm_save.php","id_rub="+id_rub+"&id_artc="+id_artc+"&commn="+commn+"&commt="+commt); 24 }else alert(r); 25} 26 27function coms_b(id_blog,id_post){ 28 var commn=document.fr.commn.value; 29 var commt=document.fr.commt.value; 30 var r=''; 31 if(commn.length<2)r+="á¨ááááá¬áá á¡áá®ááá!\n"; 32 if(commt.length<2)r+="á¨ááááá¬áá áááááá¢áá á!\n"; 33 if(r==''){ 34 loadXMLDoc("comm_b_save.php","id_blog="+id_blog+"&id_post="+id_post+"&commn="+commn+"&commt="+commt); 35 }else alert(r); 36} 37function sinN(){ 38 var er=""; 39 var us=document.fr.us.value; 40 var pw=document.fr.pw.value; 41 var rpwh=(document.fr.rpwh.checked)?'yes':'no'; 42 if(us.length<8 || us.length>70 || us=="E-mail")er+="á¨ááááá¬áá áá-á¤áá¡á¢á!\n"; 43 if(pw.length<6 || pw.length>9 || pw=="******")er+="á¨ááááá¬áá ááá¡ááá áá!\n"; 44 if(er==""){ 45 loadXMLDoc("../sin.php",'us='+us+'&pw='+pw+'&rpwh='+rpwh); 46 }else{ 47 alert(er); 48 } 49} 50function frN(){ 51 var er=""; 52 var mailfr=document.fr.mailfr.value; 53 if(mailfr.length<8 || mailfr.length>70 )er+="á¨ááááá¬áá áá-á¤áá¡á¢á!\n"; 54 if(er==""){ 55 loadXMLDoc("../frp.php",'mailfr='+mailfr); 56 }else{ 57 alert(er); 58 } 59} 60function regN(){ 61 var er=""; 62 var name=document.fr.name.value; 63 var usr=document.fr.usr.value; 64 var mailr=document.fr.mailr.value; 65 var pwr=document.fr.pwr.value; 66 var pwrr=document.fr.pwrr.value; 67 if(usr.length<2 || usr.length>30)er+="á¨ááááá¬áá áááááááá!\n"; 68 if(mailr.length<8 || mailr.length>70)er+="á¨ááááá¬áá áá-á¤áá¡á¢á!\n"; 69 if(pwr.length<6 || pwr.length>9 || pwr!=pwrr)er+="á¨ááááá¬áá ááá¡ááá áá!\n"; 70 if(er==""){ 71 loadXMLDoc("../regp.php",'usr='+usr+'&mailr='+mailr+'&pwr='+pwr+'&pwrr='+pwrr); 72 }else{ 73 alert(er); 74 } 75} 76function loadXMLDoc(url,txt){ 77 xmlhttp=null; 78 if (window.XMLHttpRequest){ 79 xmlhttp=new XMLHttpRequest(); 80 }else{ 81 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); 82 } 83 if(xmlhttp.addEventListener){ 84 xmlhttp.addEventListener("load",stateChange,false); 85 }else{ 86 xmlhttp.onreadystatechange=stateChange; 87 } 88 xmlhttp.open("POST",url,true); 89 xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 90 xmlhttp.setRequestHeader("Content-length", txt.length); 91 xmlhttp.setRequestHeader("Connection", "close"); 92 xmlhttp.send(txt); 93} 94function stateChange(){ 95 if (xmlhttp.readyState==4){ 96 if (xmlhttp.status==200){ 97 var r=xmlhttp.responseText; 98 rr=r.split("&&"); 99 if(rr[0]=="comm_save"){ 100 if(rr[1]=="yes"){ 101 alert(rr[2]); 102 location=rr[3]; 103 }else{ 104 alert(rr[1]); 105 } 106 } 107 if(rr[0]=="comm_b_save"){ 108 if(rr[1]=="yes"){ 109 alert(rr[2]); 110 location=rr[3]; 111 }else{ 112 alert(rr[1]); 113 } 114 } 115 if(rr[0]=="sin"){ 116 if(rr[1]=='yes'){ 117 location="index.php"; 118 }else{ 119 alert(rr[1]); 120 } 121 } 122 if(rr[0]=="frp"){ 123 alert(rr[1]); 124 } 125 if(rr[0]=="regp"){ 126 if(rr[1]=='yes'){ 127 alert(rr[2]); 128 }else{ 129 alert(rr[1]); 130 } 131 } 132 if(Number.isInteger(rr[0]) && rr[0]>0){ 133 alert(r); 134 //document.getElementById("quests").innerHTML=r; 135 location.href="http://www.resonancedaily.com/mobile/index.php?opt=voteq&id="+id_quest+"&qs=yes"; 136 } 137 }else{ 138 alert("Problem retrieving XML data:" + ch_xmlhttp.statusText); 139 } 140 } 141} 142var g_xmlhttp; 143var id_quest=null; 144var url=''; 145function swtch(k,id){ 146 if(k=='q'){ 147 document.getElementById("act"+id).style.background="#eeeeee"; 148 document.getElementById("pas"+id).style.background="#ffffff"; 149 document.getElementById("act"+id).style.borderBottom="1px solid #eeeeee"; 150 document.getElementById("pas"+id).style.borderBottom="1px solid #999999"; 151 document.getElementById("tb_act"+id).style.display="block"; 152 document.getElementById("tb_pas"+id).style.display="none"; 153 } 154 if(k=='r'){ 155 document.getElementById("act"+id).style.background="#ffffff"; 156 document.getElementById("pas"+id).style.background="#eeeeee"; 157 document.getElementById("pas"+id).style.borderBottom="1px solid #eeeeee"; 158 document.getElementById("act"+id).style.borderBottom="1px solid #999999"; 159 document.getElementById("tb_act"+id).style.display="none"; 160 document.getElementById("tb_pas"+id).style.display="block"; 161 } 162} 163function vot(id,n){ 164 url='tmp_vote_b.php?id_quest='+id+'&n='+n; 165 if(id_quest!=null)document.fr["vote"+id_quest].disabled=true; 166 id_quest=id; 167 nn=n; 168 document.fr["vote"+id].disabled=false; 169 //document.getElementById("bgs").innerHTML=""; 170} 171function voti(id){ 172 if(url!=null && id==id_quest ){ 173 //alert('url='+url+'&id_quest='+id+'&n='+nn); 174 G_loadXMLDoc(url); 175 }else alert("airCie pasuxi da mieci xma!"); 176} 177function G_loadXMLDoc(url){ 178 g_xmlhttp=null; 179 if (window.XMLHttpRequest){ 180 g_xmlhttp=new XMLHttpRequest(); 181 }else{ 182 g_xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); 183 } 184 g_xmlhttp.onreadystatechange=G_state_Change; 185 g_xmlhttp.open("GET",url,false); 186 g_xmlhttp.send(null); 187} 188function G_state_Change(){ 189 if (g_xmlhttp.readyState==4){ 190 if (g_xmlhttp.status==200){ 191 var r=g_xmlhttp.responseText; 192 switch (id_quest){ 193 case "cont": 194 //document.getElementById("msg_er").innerHTML=r; 195 break; 196 default: 197 if(id_quest>0){ 198 alert(r); 199 //document.getElementById("quests").innerHTML=r; 200 location.href="http://www.resonancedaily.com/mobile/index.php?opt=voteq&id="+id_quest+"&qs=yes"; 201 } 202 } 203 }else{ 204 alert("Problem retrieving XML data:" + g_xmlhttp.statusText); 205 } 206 } 207}
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.