var ncl = 0; var ttt; function wmsg() { var dd = document.getElementById('wmsgt'); var da = document.getElementById('wmsga'); var df = document.getElementById('wmsgf'); var di = document.getElementById('wmsgi'); if (++ncl%2) { if (dd) dd.style.display = 'block'; if (da) da.innerHTML = 'Закрыть'; if (di) di.focus(); }else{ if (dd) dd.style.display = 'none'; if (da) da.innerHTML = ttt; } return false; } function wmsg_out (a,p) { var da = document.getElementById('wmsga'); if (da) ttt = da.innerHTML; document.write('
'); document.write(''); var i1=0,i3=0,i2=0; while(i1'); i1 = i3 = i3+1; } document.write(''); document.write(''); document.write(''); document.write(''); document.write(''); document.write('
Заголовок:
Текст (абзацы разделены пустой строкой):
'); } function wmsg_out_notauth (s) { var da = document.getElementById('wmsga'); if (da) ttt = da.innerHTML; document.write('
'+s); document.write('
'); } function wmsg_justinit() { var da = document.getElementById('wmsga'); if (da) ttt = da.innerHTML; } function bfil(t) { for(var ii=0;iii0) { t = t.substring(0,i0)+' '+t.substring(ii) } } var ii = t.indexOf('=0 ) { var xc = 2; while (ii+xc'){break;} xc++;} t=t.substring(0,ii)+"\n\n"+t.substring(ii+xc+1); ii = t.indexOf('=0 ) { var i2 = t.indexOf('window.open',ii); if (i2>=0) { var i3 = t.indexOf("'",i2); if (i3>=0) { var i4 = t.indexOf("'",i3+1); if (i4>=0) { var url = t.substring(i3+1,i4); var i5 = t.indexOf('',ii); if (i5<0) {i5 = t.indexOf('',ii)} if (i5<0) {i5=t.length-4} t=t.substring(0,ii)+url+t.substring(i5+4); ii += url.length; }}} ii = t.indexOf('=0 ) { var tc = 2; while (t.charAt(ii+tc)!='>'&&ii+tc