var hi="<DIV style='display:none'>"; var by="</DIV>";
if (gb==1){var bl=l[164];}else{var bl=l[165];}
maxnumsm=254;smonpage=30;sm_on_line=5;
if (top.location!=self.location){window.top.location.href=window.self.location.href}
function stopError() {return true;} window.onerror = stopError;
function oo(n){if(n>9){return n}else{return '0'+n}}
function data(dat,zon,typ) {d = new Date(dat*1000+zon*1000);fd = oo(d.getUTCDate())+'.'+oo(d.getUTCMonth()+1)+'.'+oo(d.getUTCFullYear()-2000);if (typ==1) {return d.getUTCDate()+'&#160;'+l[d.getUTCMonth()+166]+'&#160;'+oo(d.getUTCHours())+':'+oo(d.getUTCMinutes())+', '+l[d.getUTCDay()+178];}if (typ==2) {t = new Date(servertime*1000+zon*1000);td = oo(t.getUTCDate())+'.'+oo(t.getUTCMonth()+1)+'.'+oo(t.getUTCFullYear()-2000);if (fd==td) {fd = l[185];}if(d.getUTCDate()+1 == t.getUTCDate() && d.getUTCMonth()==t.getUTCMonth() && d.getUTCFullYear()==t.getUTCFullYear()){fd = l[186];}return fd+'&#160;'+oo(d.getUTCHours())+':'+oo(d.getUTCMinutes());}if (typ==3) {return fd}}
function ran(rng){var im1='<IMG src="'+diz[0]+'/s';var im2='.gif" alt="">';for(i=0;i<=10;i++){if((rng<30*i)&&(rng>=30*(i-1))){return im1+i+im2;}}if (rng>=300){return im1+'10'+im2;}}
function alrt(numalert,admmes,aflud,banmsg){if (admmes) {alert(l[211]+': '+admmes);}else {if (banmsg) {alert(l[212]+' '+data(banmsg,timezone,2)+'. '+l[213]);}else {numalert++;numalert--;alert(l[numalert+187]);}}}
function tabviz (metka) {e=document.getElementsByTagName("TABLE");for(i=0;i<e.length;i++){if (e[i].id.indexOf(metka)!=-1){if (e[i].style.visibility=="hidden") {e[i].style.visibility="visible";e[i].style.position="relative";e[i].style.width="100%";}else {e[i].style.visibility="hidden";e[i].style.position="absolute";e[i].style.width="40%";}}}}

//--------статистика---------
var dd = new Date();region = Math.round(dd.getTime()/1000) - servertime;var ddd = "no";var sl = "no";var br = "no";var ul = "no";var ct = "no";
if (navigator.systemLanguage){sl = navigator.systemLanguage;}if (navigator.browserLanguage){br = navigator.browserLanguage;}if (navigator.userLanguage){ul = navigator.userLanguage;}
if (document.all) {if (navigator.userAgent.indexOf("Opera")==-1) {document.write('<xml:namespace ns=http://www.microsoft.com/ie prefix=IE><STYLE>@media all{IE\\:clientCaps {behavior:url(#default#clientcaps);}}</STYLE><IE:CLIENTCAPS ID="oClientCaps" />');
ct = oClientCaps.connectionType;var bbb = new Array();var ccc = new Array(0,0,0,0);var CompO=new Array("{7790769C-0471-11D2-AF11-00C04FA35D02}","{89820200-ECBD-11CF-8B85-00AA005B4340}","{283807B5-2C60-11D0-A31D-00AA00B92C03}","{4F216970-C90C-11D1-B5C7-0000F8051515}","{44BBA848-CC51-11CF-AAFA-00AA00B6015C}","{9381D8F2-0288-11D0-9501-00AA00B911A5}","{36F8EC70-C29A-11D1-B5C7-0000F8051515}","{5A8D6EE0-3E18-11D0-821E-444553540000}","{89820200-ECBD-11CF-8B85-00AA005B4383}","{08B0E5C0-4FCB-11CF-AAA5-00401C608555}","{45EA75A0-A269-11D1-B5BF-0000F8051515}","{DE5AED00-A4BF-11D1-9948-00C04F98BBC9}","{22D6F312-B0F6-11D0-94AB-0080C74C7E95}","{44BBA842-CC51-11CF-AAFA-00AA00B6015B}","{3AF36230-A269-11D1-B5BF-0000F8051515}","{44BBA840-CC51-11CF-AAFA-00AA00B6015C}","{CC2A9BA0-3BDD-11D0-821E-444553540000}","{08B0E5C0-4FCB-11CF-AAA5-00401C608500}","{60B49E34-C7CC-11D0-8953-00A0C90347FF}","{03F998B2-0E00-11D3-A498-00104B6EB52E}","{0FDE1F56-0D59-4FD7-9624-E3DF6B419D0E}","{10072CEC-8CC1-11D1-986E-00A0C955B42F}","{1B00725B-C455-4DE6-BFB6-AD540AD427CD}","{4278C270-A269-11D1-B5BF-0000F8051515}","{44BBA855-CC51-11CF-AAFA-00AA00B6015C}","{4F645220-306D-11D2-995D-00C04F98BBC9}","{5FD399C0-A70A-11D1-9948-00C04F98BBC9}","{630B1DA0-B465-11D1-9948-00C04F98BBC9}","{6FAB99D0-BAB8-11D1-994A-00C04F98BBC9}","{C9E9A340-D1F1-11D0-821E-444553540600}","{D27CDB6E-AE6D-11CF-96B8-444553540000}","{E92B03AB-B707-11D2-9CBD-0000F87A369E}");for(var iii=0;iii<CompO.length;iii++){var Ver=oClientCaps.getComponentVersion (CompO[iii],"ComponentID");var aaa = Ver.split(',');for(var jjj=0;jjj<aaa.length;jjj++){aaa[jjj]++;aaa[jjj]--;ccc[jjj]+=aaa[jjj];var ddd=ccc[0]+''+ccc[1]+''+ccc[2]+''+ccc[3];}}}}
var statisc=region+"`"+window.screen.width+"`"+window.screen.colorDepth+"`"+sl+"`"+br+"`"+ul+"`"+ct+"`"+ddd;


//-------------------- функции для формы ответа
function wopen(k,j,p) {myWindow = window.open("", "Preview", "toolbar=0,location=0,directories=0,menubar=0,scrollbars=0,resizable=1,copyhistory=0,width=550,height=550");myWindow.document.open();myWindow.document.write("<HTML><BODY style='margin:0px;margin-top:0px;margin-bottom:0px;'><table bgcolor=#000000 width=100% height=100% border=0 cellPadding=0 cellSpacing=1>");pole="smline";if (p==1) {pole="message";}myWindow.document.write("<script>function vst(chto){");if (p==1){myWindow.document.write("chto=' :sm'+chto+': ';");}else{myWindow.document.write("chto=chto+' ';");}myWindow.document.write("var messageField = opener.document.theForm."+pole+";var selStart = messageField.selectionStart;var selEnd = messageField.selectionEnd;var MsgVal = messageField.value;var text = new String();var step = new Number();messageField.focus();if(document.selection){opener.document.theForm."+pole+".document.selection.createRange().text = chto+opener.document.theForm."+pole+".document.selection.createRange().text;}else{if(selStart || messageField.selectionStart == '0'){step = chto.length;text = MsgVal.substring(0, selStart) + chto;text += MsgVal.substring(selEnd, MsgVal.length);messageField.value = text;messageField.selectionStart = selStart + selEnd + step;messageField.selectionEnd = selEnd + step;}}");myWindow.document.write("window.close();}</script>");t=0;for (i=k;i<=j;i++) {if (t==0) {myWindow.document.write("<tr bgcolor=#ffffff align=center>");}myWindow.document.write("<td width=14% height=14%><a href=javascript:vst("+i+");><img border=0 src='"+gifdomen+"/gif/smk/sm"+i+".gif' alt='"+i+"' title='"+i+"'></a></td>");if (i==j) {for(k=1;k<sm_on_line-t;k++){myWindow.document.write("<td> </td>");}}t++;if (t==sm_on_line){myWindow.document.write("</tr>");t=0;}}myWindow.document.write("<tr><td bgcolor=#ffffff align=center colspan="+sm_on_line+"><a target=_blank href=http://www.kolobok.us><font size=1 face=verdana>Aiwan</font></a></td></tr></TABLE></BODY></HTML>");myWindow.document.close();}


function wopen2(lnk) {
vst='';tit=l[240];if (lnk==1) {vst=l[517];tit=l[242];}if (lnk==2) {vst=l[518];tit=l[239];}
var wid=400;var hei=200;var poswid=screen.width/2-wid/2;var poshei=screen.height/2-hei/2;
gde = "width="+wid+",height="+hei+",copyhistory=no,directories=no,menubar=no,resizable=no,status=no,tollbar=no,scrollbars=no,top="+poshei+",left="+poswid;
myWindow = window.open("", "Insert", gde);myWindow.document.open();
myWindow.document.write("<HTML><title>"+tit+"</title><style>body{font-family:Verdana;font-size:12px;}</style><BODY>");
myWindow.document.write("<script>function pst3(sel, kto, msid, tag1, tag2){if (TheForm.ur.value=='') {window.close();return true;} ");
if (lnk==1){myWindow.document.write("if (TheForm.txt.value=='') {alert('"+l[519]+"');return false;} ");}
myWindow.document.write("if (TheForm.ur.value.indexOf('http') == -1 && TheForm.ur.value.indexOf('ftp') == -1){alert('"+l[520]+"');return false;}var messageField = opener.document.theForm.message;var selStart = messageField.selectionStart;var selEnd = messageField.selectionEnd;var MsgVal = messageField.value;");
myWindow.document.write("var text = new String();var step = new Number();messageField.focus();if(document.selection){opener.document.theForm.document.selection.createRange().text = tag1+sel+opener.document.theForm.document.selection.createRange().text+tag2;}else{if(selStart || messageField.selectionStart == '0'){step = tag1.length + sel.length + tag2.length;text = MsgVal.substring(0, selStart) + tag1 + sel;text += MsgVal.substring(selStart, selEnd) + tag2;text += MsgVal.substring(selEnd, MsgVal.length);");
myWindow.document.write("messageField.value = text;messageField.selectionStart = selStart + selEnd + step; messageField.selectionEnd = selEnd + step;}} window.close();}</script>");
myWindow.document.write("<form name=TheForm>"+l[521]+" "+vst+"<br>");
if (lnk==2) {myWindow.document.write("<br>"+l[265]+": http://www.youtube.com/watch?v=aFbEBVuVHZc<br><br>");}
myWindow.document.write("<input type=text name=ur size=50><br><br>");
if (lnk==1){myWindow.document.write(l[351]+":<br><input type=text name=txt size=50 value='click here' onFocus=javascript:TheForm.txt.value=''><br><br>");}
myWindow.document.write("<input type=button value='"+l[355]+"' onClick=javascript:pst3('','','','");
if (lnk==1){myWindow.document.write("[url='+TheForm.ur.value+']'+TheForm.txt.value,'[/url]");}
else{if (lnk==2){myWindow.document.write("[ut]'+TheForm.ur.value,'[/ut]");}else {myWindow.document.write("[img]'+TheForm.ur.value,'[/img]");}}
myWindow.document.write("');> <input type=button value='"+l[357]+"' onClick=javascript:window.close();></form>");
myWindow.document.write("</BODY></HTML>");
myWindow.document.close();}


function predosmotr(data) {
var wid=700;var hei=350;var poswid=screen.width/2-wid/2;var poshei=screen.height/2-hei/2;
gde = "width="+wid+",height="+hei+",copyhistory=no,directories=no,menubar=no,resizable=yes,status=no,tollbar=no,scrollbars=yes,top="+poshei+",left="+poswid;
data=data.replace(/</g,"&#60;");data=data.replace(/>/g,"&#62;");data=data.replace(/"/g,"&#34;");
data=data.replace(/'/g,"&#39;");data=data.replace(/`/g,"&#96;");data=data.replace(/\r/g,"");
data=data.replace(/\n/g," <BR> ");data=data.replace(/\\/g,"&#92;");data=data.replace(/\[\/img\]/g,"`");
data=data.replace(/\[img\]([^`]+)`/gi, "<img border=0 src=\"$1\">");
data=data.replace(/\[ut\]http:\/\/www\.youtube\.com\/watch\?v=([a-zA-Z0-9\-_]+)\[\/ut\]/gi, "<object width=425 height=350><param name=movie value=http:\/\/www.youtube.com\/v\/$1><\/param><param name=wmode value=transparent><\/param><embed src=http:\/\/www.youtube.com\/v\/$1 type=application\/x-shockwave-flash wmode=transparent width=425 height=350><\/embed><\/object>");
data=data.replace(/:sm([0-9]+):/gi, " <img border=0 src=\"/gif/smk/sm$1\.gif\"> ");
data=data.replace(/\[((\/)?(b|i|u|s|big|small|h1|h2|h3|h4|h5|h6|hr|li|ul|marquee|sup|sub))\]/gi, "<$1>");
data=data.replace(/\[\/url\]/g,"`");
data=data.replace(/\[url=([^\]]+)\]([^`]+)`/gi, "<a target=_new href=\"$1\"><u>$2<\/u><\/a>");
data=data.replace(/\[font color=([a-zA-Z0-9# ]{1,20})\]/gi, "<font color=\"$1\">");
data=data.replace(/\[\/font\]/gi, "<\/font>");
data=data.replace(/\[\/quote\]/g,"`");
data=data.replace(/\[quote\]([^`]+)`/g, "<br><table align=center border=0 width=90%><tr><td class=font2>&#160;<small><b>"+l[119]+":</b></small></td></tr><tr><td><TABLE align=center bgColor=\""+diz[6]+"\" border=0 cellPadding=6 cellSpacing=1 width=100%><TR bgColor=\""+diz[4]+"\"><TD vAlign=top class=font2>$1</TD></TR></TABLE></td></tr></table><br>");
data=data.replace(/\[\/off\]/g,"`");
data=data.replace(/\[off\]([^`]+)`/g, "<small><i><font color='"+diz[7]+"'>"+l[120]+": $1</font></i></small>");
var rndtab = Math.round(Math.random() * 1000000000);
data=data.replace(/\[\/more\]/g,"`");
data=data.replace(/\[more\]([^`]+)`/g, "<a href=javascript:tabviz("+rndtab+");><u>"+l[121]+"</u></a><br><TABLE id='"+rndtab+"' style='position:absolute;visibility:hidden;width:40%' border=0 cellPadding=0 cellSpacing=0 width=40%><tr><td class=font1><br>$1<br><\/td><\/tr><\/table>");
data=data.replace(/\[\/pre\]/g,"`");
data=data.replace(/\[pre\]([^`]+)`/g, "<pre style='margin:0px; padding:6px; border:1px inset; width:500px; height:100px; overflow:auto'>$1</pre>");
data=data.replace(/\[\/pre2\]/g,"`");
data=data.replace(/\[pre2\]([^`]+)`/g, "<pre>$1</pre>");
myWindow = window.open("", "Predosmotr", gde);
myWindow.document.open();
myWindow.document.write('<script>function tabviz (metka) {e=document.getElementsByTagName("TABLE");for(i=0;i<e.length;i++){if (e[i].id.indexOf(metka)!=-1){if (e[i].style.visibility=="hidden") {e[i].style.visibility="visible";e[i].style.position="relative";e[i].style.width="100%";}else {e[i].style.visibility="hidden";e[i].style.position="absolute";e[i].style.width="80%";}}}}</script>');
myWindow.document.write('<HTML><style>td{font-family:Verdana;font-size:12px;color:#454545}</style><BODY leftMargin=10 topMargin=10 marginheight=10 marginwidth=10 bgcolor="'+diz[4]+'"><TABLE bgColor="'+diz[8]+'" align=center border=0 cellPadding=0 cellSpacing=1 width=100%><TR><TD><TABLE align=center bgColor="'+diz[6]+'" border=0 cellPadding=6 cellSpacing=1 width=100%><TR bgColor="'+diz[2]+'"><TD vAlign=top><br>'+data+'<br><br></TD></TR></TABLE></TD></TR></TABLE><br><br><center><form action="javascript:this.close()"><input type=submit class=sender value="'+l[163]+'"><BR></form></center></BODY></HTML>');
myWindow.document.close();}

function hex(i){if (i<0) return "00";else if (i>255)return "ff";else {hexa=new Array('0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f');return ""+hexa[Math.floor(i/16)]+hexa[i%16]}}
function setbg(r,g,b){hr=hex(r);hg=hex(g);hb=hex(b);bg="#"+hr+hg+hb}
function colorviz () {e=document.getElementsByTagName("TABLE");for(i=0;i<e.length;i++){if (e[i].id.indexOf('tabcol')!=-1){if (e[i].style.visibility=="hidden") {e[i].style.visibility="visible";e[i].style.position="relative";}else {e[i].style.visibility="hidden";e[i].style.position="absolute";}}}}
function f3(msid) {theForm.msgid.value = msid;window.scroll(0,20000);document.theForm.message.focus();} 
function Test(theForm){if (work==4 && adresat == '') {var i = 0; var j = 0;while(document.getElementsByName(i).length > 0){if (document.getElementsByName(i)[0].checked) {j++;}i++;}if (j>50) {alert(l[214]+' '+j+' '+l[215]);return false;}}if (work==4 && adresat) {if (theForm.addfrend.checked && (theForm.message.value.length < 2000)){return true;}}if (theForm.title.value == '' && theForm.message.value == ''){alert(l[216]); document.theForm.message.focus(); return false;}if (work!=7 && work!=4) {if (theForm.nick.value == ''){alert(l[217]);document.theForm.nick.focus();return false;}}var mlength=30000; if (work==4) {mlength=2000;} if (theForm.message.value.length > mlength)  {alert(l[218]+' '+mlength+' '+l[219]+' '+theForm.message.value.length); document.theForm.message.focus();  return false;}if (theForm.title.value == '' && (work==2 || work==3 || work==0))  {return confirm(l[220]);}return true;}
function get_selection() {if (document.getSelection){selek = document.getSelection();}else {selek = document.selection.createRange().text;}}
function pst3(sel, kto, msid, tag1, tag2){var messageField = document.theForm.message;var selStart = messageField.selectionStart;var selEnd = messageField.selectionEnd;var MsgVal = messageField.value;var text = new String();var step = new Number();if(!sel && !tag1){alert(l[221]);}else{if(kto){sel=kto+' '+l[222]+': \n'+'[quote]'+sel+'[/quote] ';}messageField.focus();if(document.selection){document.theForm.document.selection.createRange().text = tag1+sel+document.theForm.document.selection.createRange().text+tag2;}else{if(selStart || messageField.selectionStart == '0'){step = tag1.length + sel.length + tag2.length;text = MsgVal.substring(0, selStart) + tag1 + sel;text += MsgVal.substring(selStart, selEnd) + tag2;text += MsgVal.substring(selEnd, MsgVal.length);messageField.value = text;messageField.selectionStart = selStart + selEnd + step;messageField.selectionEnd = selEnd + step;}} if(msid){theForm.msgid.value = msid;}}}

//----------------------------форма ответа
function form(pr_tab,titl,mesg,poll,cls,kle){
svoismailes=1;if (sm[0].indexOf('http') == -1){svoismailes=0;sm = new Array ('12','15','17','36','20','28','52','54','51','35','19','38','40','67','57','31','33','5','64','116');if (group>2 && gb==0) {sm[20]='220';sm[21]='221';sm[22]='222';sm[23]='224';}if (gb==1) {sm[19]='31';sm[20]='46';sm[20]='62';sm[21]='30';sm[22]='10';sm[23]='1';}}
if (work==0 || work==2) {chto=l[94];work_form=2;if (razdel==21){chto=l[95];}}if (work==1 || work==6) {chto=l[98];work_form=6;}if (work==3) {chto=l[97];work_form=3;}if (work==7) {chto=l[99];work_form=7;}if (work==4) {chto=l[100];work_form=4;}
chskryt='';if (mesg.indexOf('­') != -1) {chskryt='checked';mesg=mesg.replace(/­/,'');titl=titl.replace(/­/,'');}
document.write('<FORM name=theForm action="/" method=POST onsubmit="return Test(this)"><INPUT type=hidden name=parol value="'+parol+'"><input type=hidden name=work value="'+work_form+'"><input type=hidden name=razdel value="'+razdel+'"><input type=hidden name=start value="'+start+'"><input type=hidden name=filenumber value="'+filenumber+'"><input type=hidden name=msgid value="'+msgid+'"><input type=hidden name=start_page_re value="'+start_page_re+'">');
document.write('<input type=hidden name=only_new_re value="'+only_new_re+'"><input type=hidden name=statisc value="'+statisc+'">');
if (pr_tab==1) {document.write('<TABLE bgColor="'+diz[8]+'" border=0 cellPadding=0 cellSpacing=1 width=100%><TR><TD><TABLE bgColor="'+diz[6]+'" border=0 cellPadding=6 cellSpacing=1 width=100%>');}
if (gb==0){document.write('<TR bgColor="'+diz[5]+'"><TD width=25% class=font1><b>'+chto+': </b></td><TD class=font2><input type=Text style="width:380" name=title size=53 maxlength="100" value="'+titl+'">&#160;'+l[229]+'</TD></TR>');
document.write('<TR bgColor="'+diz[5]+'" class=font2><TD width=25% align=center>');
if (group>=gr_sm){if (sm.length>1){document.write('<TABLE bgColor="'+diz[6]+'" border=0 cellPadding=4 cellSpacing=1 width=50>');k=1;for(s=0;s<sm.length;s++){if(k==1){document.write('<tr bgColor="'+diz[5]+'">');}if(sm[s]){sm_vstavka=' [img]'+sm[s]+'[/img] ';sm_url=sm[s];if (svoismailes==0) {sm_vstavka=' :sm'+sm[s]+': ';sm_url=gifdomen+'/gif/smk/sm'+sm[s]+'.gif';}document.write('<td width=25% align=center><a href="javascript:pst3(\''+sm_vstavka+'\',\'\',\'\',\'\',\'\')"><img border=0 src="'+sm_url+'" alt="" title=""></a></td>');}else{for(j=0;j<5-k;j++){document.write('<td width=25%>&#160;</td>');}}k++;if(k>4){if(sm[s+1]){k=1;}document.write('</tr>');}}document.write('</table>');strantts=Math.floor(maxnumsm/smonpage)+1;for(i=1;i<=strantts;i++){j=i*smonpage;k=j-smonpage+1;if(j>maxnumsm){j=maxnumsm;}document.write(' <a href=javascript:wopen('+k+','+j+',1);>'+i+'</a> ');}}}
document.write('</td><TD>');if (work==3 || poll) {document.write(l[230]);
if (work==7) {document.write('<br><font color=red>'+l[231]+'</font>');}
poll=poll.replace(/ <BR> /g,'\r');document.write('<br><textarea name=poll cols=56 rows=8>'+poll+'</textarea><br>'+l[232]+':<br>');}}
if (gb==1){document.write('<TR bgColor="'+diz[5]+'" class=font2><TD>');}
mesg=mesg.replace(/ <BR> /g,'\r');mesg=mesg.replace(/<a target=_blank href="/g,'');
mesg=mesg.replace(/</g,'[');mesg=mesg.replace(/>/g,']');mesg=mesg.replace(/="/g,'=');mesg=mesg.replace(/"\]/g,']');
document.write("<div id='buttons'>");
if (group>=gr_bui){document.write("<A href=javascript:pst3('','','','[b]','[/b]');><IMG src="+gifdomen+"/gif/img/bold.gif width=16 height=16 border=0></a> <A href=javascript:pst3('','','','[u]','[/u]');><IMG src="+gifdomen+"/gif/img/u.gif width=16 height=16 border=0></a> <A href=javascript:pst3('','','','[i]','[/i]');><IMG src="+gifdomen+"/gif/img/i.gif width=16 height=16 border=0></a> <A href=javascript:pst3('','','','[s]','[/s]');><IMG src="+gifdomen+"/gif/img/s.gif width=16 height=16 border=0></a> <A href=javascript:pst3('','','','[font%20color=red]','[/font]');><IMG src="+gifdomen+"/gif/img/r.gif width=16 height=16 border=0></a> <A href=javascript:pst3('','','','[font%20color=green]','[/font]');><IMG src="+gifdomen+"/gif/img/g.gif width=16 height=16 border=0></a> <A href=javascript:pst3('','','','[font%20color=blue]','[/font]');><IMG src="+gifdomen+"/gif/img/b.gif width=16 height=16 border=0></a> <A href=javascript:colorviz();><IMG src="+gifdomen+"/gif/img/rgb.gif width=16 height=16 border=0></a> ");
document.write("<A href=javascript:pst3('','','','[big]','[/big]');><IMG src="+gifdomen+"/gif/img/big.gif width=16 height=16 border=0 alt='"+l[233]+"' title='"+l[233]+"'></a> <A href=javascript:pst3('','','','[small]','[/small]');><IMG src="+gifdomen+"/gif/img/small.gif width=16 height=16 border=0 alt='"+l[234]+"' title='"+l[234]+"'></a> <A href=javascript:pst3('','','','[sup]','[/sup]');><IMG src="+gifdomen+"/gif/img/sup.gif width=16 height=16 border=0 alt='"+l[235]+"' title='"+l[235]+"'></a> <A href=javascript:pst3('','','','[sub]','[/sub]');><IMG src="+gifdomen+"/gif/img/sub.gif width=16 height=16 border=0 alt='"+l[236]+"' title='"+l[236]+"'></a> <A href=javascript:pst3('','','','[h1]','[/h1]');><IMG src="+gifdomen+"/gif/img/h1.gif width=16 height=16 border=0 alt='"+l[237]+"' title='"+l[237]+"'></a> <A href=javascript:pst3('','','','[h2]','[/h2]');><IMG src="+gifdomen+"/gif/img/h2.gif width=16 height=16 border=0 alt='"+l[238]+"' title='"+l[238]+"'></a> ");}
if (group>=gr_gif){document.write("<A href=javascript:javascript:wopen2(2);><IMG src="+gifdomen+"/gif/img/ut.gif width=16 height=16 border=0 alt='"+l[239]+"' title='"+l[239]+"'></a> ");document.write("<A href=javascript:javascript:wopen2(0);><IMG src="+gifdomen+"/gif/img/img.gif width=16 height=16 border=0 alt='"+l[240]+"' title='"+l[240]+"'></a> ");document.write("<a target=_blank href='http://pics.qip.ru/?forums'><IMG src="+gifdomen+"/gif/img/f.gif width=16 height=16 border=0 alt='"+l[241]+"' title='"+l[241]+"'></a> ");}
if (group>=gr_mat){document.write("<A href=javascript:javascript:wopen2(1);><IMG src="+gifdomen+"/gif/img/url.gif width=16 height=16 border=0 alt='"+l[242]+"' title='"+l[242]+"'></a> ");document.write("<A target=_blank href=http://zalil.ru><IMG src="+gifdomen+"/gif/img/z.gif width=16 height=16 border=0 alt='"+l[243]+"' title='"+l[243]+"'></a> ");}
document.write("<a href=javascript:window.open('"+gifdomen+"/gif/img/kb.htm','','width=500,height=220,resizable=yes');void(0);><IMG src="+gifdomen+"/gif/img/kb.gif width=16 height=16 border=0 alt='"+l[244]+"' title='"+l[244]+"'></a> ");
if (window.clipboardData){document.write("<a href=javascript:window.open('"+gifdomen+"/gif/img/lat.htm','','width=400,height=350,resizable=yes');void(0);><IMG src="+gifdomen+"/gif/img/tr.gif width=16 height=16 border=0 alt='"+l[245]+"' title='"+l[245]+"'></a>&#160;");}
if (!gb){document.write("<A href=javascript:pst3('','','','[quote]','[/quote]');><IMG src="+gifdomen+"/gif/img/qte.gif width=16 height=16 border=0 alt='"+l[246]+"' title='"+l[246]+"'></a>&#160;");}
document.write("<A href=javascript:pst3('','','','«','»');><IMG src="+gifdomen+"/gif/img/kav.gif width=16 height=16 border=0 alt='"+l[247]+"' title='"+l[247]+"'></a> ");
if (group>=gr_bui){document.write("<A href=javascript:pst3('','','','[pre2]','[/pre2]');><IMG src="+gifdomen+"/gif/img/pre2.gif width=16 height=16 border=0 alt='"+l[248]+"' title='"+l[248]+"'></a> <A href=javascript:pst3('','','','[pre]','[/pre]');><IMG src="+gifdomen+"/gif/img/pre.gif width=16 height=16 border=0 alt='"+l[248]+"' title='"+l[248]+"'></a> <A href=javascript:pst3('','','','[hr]','');><IMG src="+gifdomen+"/gif/img/hr.gif width=16 height=16 border=0 alt='"+l[249]+"' title='"+l[249]+"'></a> <A href=javascript:pst3('','','','[ul]','[/ul]');><IMG src="+gifdomen+"/gif/img/ul.gif width=16 height=16 border=0 alt='"+l[250]+"' title='"+l[250]+"'></a> <A href=javascript:pst3('','','','[li]','');><IMG src="+gifdomen+"/gif/img/li.gif width=16 height=16 border=0 alt='"+l[251]+"' title='"+l[251]+"'></a> <A href=javascript:pst3('','','','[marquee]','[/marquee]');><IMG src="+gifdomen+"/gif/img/marquee.gif width=16 height=16 border=0 alt='"+l[252]+"' title='"+l[252]+"'></a> ");}
if (!gb){document.write("<A href=javascript:pst3('','','','[off]','[/off]');><IMG src="+gifdomen+"/gif/img/off.gif width=16 height=16 border=0 alt='"+l[253]+"' title='"+l[253]+"'></a> ");}
document.write("<A href=javascript:pst3('','','','[more]','[/more]');><IMG src="+gifdomen+"/gif/img/more.gif width=16 height=16 border=0 alt='"+l[254]+"' title='"+l[254]+"'></a> ");
document.write("</div>");
document.write('<div><TABLE id="tabcol" style="position:absolute;visibility:hidden" border=0 cellspacing=5 width=380 height=250>');ti=0;for(var ri=0;ri<6;ri++){document.write('<TR>');for(var gi=0;gi<3;gi++){for(var bi=0;bi<6;bi++){setbg(51*ri,102*gi,51*bi);var imgnum = Math.round(Math.random() * 1000000000);ss='<TD bgColor='+bg+'><A href=javascript:pst3("","","","[font%20color='+bg+']","[/font]");><IMG border=0 src=\''+gifdomen+'/gif/img/empty.gif\' height=14 width=14></A></TD>';document.write(ss)}}document.write('</TR><TR>');for(var gi=0;gi<3;gi++){for(var bi=0;bi<6;bi++){setbg(51*ri,102*gi+51,51*bi);var imgnum = Math.round(Math.random() * 1000000000);ss='<TD bgColor='+bg+'><A href=javascript:pst3("","","","[font%20color='+bg+']","[/font]");><IMG border=0 src=\''+gifdomen+'/gif/img/empty.gif\' height=14 width=14></A></TD>';document.write(ss)}}document.write('</TR>')}document.write('</TABLE></div>');
document.write('<textarea name=message cols=56 rows=8>'+mesg+'</textarea><br>');
if (gb==0 && work!=3 && work!=4){document.write('<input type=checkbox style="border:0" name=skryt '+chskryt+'> '+l[356]+'<br>');}
document.write('<input type=checkbox style="border:0" name=noaktivlink> '+l[228]+'<br>');
if (group>=gr_sm && gb==1){for(s=0;s<sm.length;s++){if (sm[s]) {sm_vstavka=' [img]'+sm[s]+'[/img] ';sm_url=sm[s];if (svoismailes==0) {sm_vstavka=' :sm'+sm[s]+': ';sm_url=gifdomen+'/gif/smk/sm'+sm[s]+'.gif';}document.write('<a href="javascript:pst3(\''+sm_vstavka+'\',\'\',\'\',\'\',\'\')"><img border=0 src="'+sm_url+'" alt="" title=""></a> ');}}document.write('<br><br>'+l[255]+': ');strantts=Math.floor(maxnumsm/smonpage)+1;for(i=1;i<=strantts;i++){j=i*smonpage;k=j-smonpage+1;if(j>maxnumsm){j=maxnumsm;}document.write(' <a href=javascript:wopen('+k+','+j+',1);>'+i+'</a> ');}}
document.write('</TD></TR><TR bgColor="'+diz[5]+'" class=font2><TD>');
if ((work==7 || work==4) && gb==0){document.write('&#160;</td><TD class=font2>');}else{if (gb==0){document.write(l[256]+':</td><TD>');} 
if(work!=7){if(gb==1){document.write('<table border=0 cellPadding=0 cellSpacing=0><tr><td class=font2>'+l[257]+'<br>');}
document.write('<input type=text name=nick size=10 maxlength=20 value="'+nick+'">&#160;&#160;');
if(gb==1){document.write('</td><td class=font2>'+l[258]+'<br>');}
document.write('<input type=password name=pass size=10 maxlength=20 value="'+nick+'"><input type=checkbox style="border:0" name=newreg>&#160;&#160;'+l[259]+'&#160;&#160;&#160;&#160;');}}
if (work==7){document.write('<input type=checkbox style="border:0" name=del>&#160;'+l[260]+'&#160;');
if (gb==0){document.write('<input type=checkbox style="border:0" name=nopod>&#160;'+l[261]+'&#160;');
if (msgid=='000'){if (group==4 || (group==3 && (modraz.indexOf(' '+razdel+' ') != -1 || raz.length==0))) {if (razdel!=21){chcls='';if (cls==1){chcls='checked';}chkle='';if (kle==1){chkle='checked';}document.write('<input type=checkbox style="border:0" name=cls '+chcls+'>&#160;'+l[262]+' <input type=checkbox style="border:0" name=kle '+chkle+'>&#160;'+l[263]+'&#160;');}}}}}
document.write('<INPUT class=sender type=Submit value="'+l[264]+'"> ');
document.write('<INPUT class=sender type=Button value="'+l[410]+'" onClick=javascript:predosmotr(theForm.message.value);> ');
if (adresat != '') {document.write('<input type=hidden name=adresat value="'+adresat+'">');if (work==4 && listfrend.indexOf('|'+adresat+'|'+forum+'|')==-1){document.write('<input type=checkbox style="border:0" name=addfrend>&#160;'+l[266]);}} 
if(gb==1 && work!=7){document.write('</td></tr></table>');}
if (adresat == '') {if (listfrend){document.write('<br>');}var allfrend=listfrend.split('`');for (i=0;i<allfrend.length-1;i++) {var fr = allfrend[i].split('|');document.write('<input type=checkbox style="border:0" name='+i+' value="lsfrend" checked> <a target=_blank href=/?32-'+fr[1]+'><u>'+fr[0]+'</u></a> ');}}
document.write('</TD></TR>');
if (pr_tab==1) {document.write('</table></td></tr></table><br>');}
document.write('</FORM>');}
//----------------------------форма ответа

//------------------------------------навигатор страниц тем
function pages(max_lines) {
var pagesline = '';if (work==''){work=0;}
var activ_number_page = start/tem_on_page+1;var gr = Math.floor(start/(tem_on_page*20))+1;
var right = gr*tem_on_page*20;var left = tem_on_page*20*(gr-1) - tem_on_page; var start_page_group = (gr-1)*20+1;
var end_page_group = gr*20; if (gr > 1) {pagesline=pagesline+'<a href="/?'+work+'-'+razdel+'-'+left+'">«</a> '}
for (i=start_page_group;i<=end_page_group;i++) {var start2 = (i-1)*tem_on_page;
if (start2 < max_lines) {if (i == activ_number_page) {pagesline=pagesline+'<b>'+i+'</b> ';}
else {pagesline=pagesline+'<a href="/?'+work+'-'+razdel+'-'+start2+'">'+i+'</a> ';}
}}if (right < max_lines) {pagesline=pagesline+' <a href="/?'+work+'-'+razdel+'-'+right+'">»</a>';}
return pagesline;}


