function multi_call3026(arg1) {
  val3031 = eval(arg1[2]);
  val3034 = (arg1.length-3);
  while(val3034) {
    val3040 = (arg1[(val3034+2)]).replace(/%/gi,"&#x0025;");
    s3041 = "%" + val3034;
    while(val3043 = (val3031.indexOf(s3041) != -1)) {
      val3031 = (val3031).replace(s3041,val3040);
    }
    s3047 = "%b" + val3034;
    if(val3031.indexOf(s3047) != -1) {
      val3031 = (val3031).replace(s3047,bbcode(val3040));
    }
    val3034 = (val3034-1);
  }
  return(val3031);
}
var val3064 = "";
function multi_call3073(arg1) {
  var val3078 = 3;
  var s3092 = "";
  
  while((val3078 <= arg1.length)) {
    if(val3078 > 3) {
      s3092 += ",\"" + (((arg1[(val3078-1)]).replace(/\\/gi,"\\\\")).replace(/\"/gi,"\\\"")).replace(/\n/gi,"\\n") + "\"";
    }
    else {
      s3092 += "\"" + (((arg1[(val3078-1)]).replace(/\\/gi,"\\\\")).replace(/\"/gi,"\\\"")).replace(/\n/gi,"\\n") + "\"";
    }
    val3078 = (val3078+1);
  }
  return(eval(arg1[1] + "( " + s3092 + " );"));
}
function processReqChange_3169() {
  if(req3169.readyState == 4 && req3169.status == 200) {
    f3170 = (new Date()).getTime();
    _parser(req3169.responseText);
    val3172 = ((new Date()).getTime() - f3170);
    e3173 = document.getElementById("speed");
    if(e3173) {
      e3173.innerHTML = val3172;
    }
  }
}
function multi_call3175() {
  document.getElementById("wait_img").style.left = (400).toString() + "px";
  document.getElementById("wait_img").style.top = (300).toString() + "px";
  document.getElementById("wait_img").style.display = "block";
}
function processReqChange_3184() {
  if(req3184.readyState == 4 && req3184.status == 200) {
    f3170 = (new Date()).getTime();
    _parser(req3184.responseText);
    val3172 = ((new Date()).getTime() - f3170);
    e3173 = document.getElementById("speed");
    if(e3173) {
      e3173.innerHTML = val3172;
    }
  }
}
function processReqChange_3169() {
  if(req3169.readyState == 4 && req3169.status == 200) {
    f3170 = (new Date()).getTime();
    _parser(req3169.responseText);
    val3172 = ((new Date()).getTime() - f3170);
    e3173 = document.getElementById("speed");
    if(e3173) {
      e3173.innerHTML = val3172;
    }
  }
}
function processReqChange_3189() {
  if(req3189.readyState == 4 && req3189.status == 200) {
    f3170 = (new Date()).getTime();
    _parser(req3189.responseText);
    val3172 = ((new Date()).getTime() - f3170);
    e3173 = document.getElementById("speed");
    if(e3173) {
      e3173.innerHTML = val3172;
    }
  }
}
var llnk = "";
var val3230 = "easy_link";
function multi_call3237(arg1) {
  req_cache(arg1);
  document.getElementsByTagName("html")[0].scrollTop = 0
}
function multi_call3223(arg1,arg2,arg3,arg4) {
  res3226 = (arg2+1);
  if(res3226 == (arg4+1)) {
    val3230 = "easy_link2";
  }
  else {
    val3230 = "easy_link";
  }
  return(" <a class=\"" + val3230 + "\" href='javascript:multi_call3237(\" " + arg1 + "&s=" + (arg2*arg3) + " \");'>" + res3226 + "</a>");
}
function multi_call3276(arg1) {
  if((arg1.indexOf("[code]") != -1) || (arg1.indexOf("[scode]") != -1)) {
    return(1);
  }
  else {
    return(0);
  }
}
var res3288 = 1;
var val3313 = "<br>";
var val3316 = 0;
var val3327 = 0;
var res3340 = 0;
arr3356 = new Array(":D",":)",":(",":oops:",":-o",":shock:",":?:",":-?","8-)",":lol:",":x",":P",":o",":cry:",":evil:",":twisted:",":roll:",":wink:",":!:",":idea:",":arrow:",":|",":mrgreen:");
arr3361 = new Array("biggrin","smile","sad","redface","surprised","eek","question","confused","cool","lol","mad","razz","surprised","cry","evil","twisted","rolleyes","wink","exclaim","idea","arrow","neutral","mrgreen");
arr3482 = new Array("#pas","#sha","#cpp","#bas","#php","#sql","#ini","#hws");
function multi_call3479(arg1) {
  arr3481 = arr3482;
  for( var _item3481 in arr3481) {
    if(arg1 == arr3481[_item3481]) {
      return((parseInt(_item3481)+1));
      break;
    }
  }
  return(0);
}
var line = "";
var ind = 0;
var ch = "";
arr3699 = new Array(" unit interface implementation uses type object class record var const array private public protected virtual overload override forward external function procedure constructor destructor property stdcall cdecl begin end string nil if then else for do downto to of is while repeat until case and or ");
arr3700 = new Array("font-weight: bold;");
arr3747 = new Array(" add make begin_sdk end_sdk link point makeext ");
arr3748 = new Array("font-weight: bold;");
arr3787 = new Array(" void int char float long unsigned sizeof for return do while break if else case switch default class public private protected virtual typedef union struct ");
arr3788 = new Array("font-weight: bold;");
arr3830 = new Array(" sub function end exit for to step next do while until loop break continue if then else select case with type dim as string integer redim rem and or xor public private declare byref byval ");
arr3831 = new Array("color: blue;");
arr3870 = new Array(" function global int if else switch case deafult for while do return echo array break ");
arr3871 = new Array("font-weight: bold;");
arr3906 = new Array(" select from where update set insert into values and or order by group having join left limit as asc desc "," count max sum if ");
arr3907 = new Array("font-weight: bold;","color: red;");
arr3993 = new Array(" if else elseif switch case end func while for linked and or not print println var gvar fvar free isdef isndef isset isprop return event issec include section typeof expof lang int str real ");
arr3994 = new Array("font-weight: bold; color: navy;");
var buf = "";
function multi_call3494(arg1,arg2) {
  var val4006 = "";
  
  line = ((arg2).replace("&lt;","<")).replace("&#x0025;","%");
  ind = 0;
  
  function next_ch() {
    ind = (ind+1);
  }
  
  function next_wo_inc() {
    return(line.charAt((ind+1)));
  }
  
  function proc_space() {
    if(ch == " ") {
      if((next_wo_inc() == " ") || (ind == 0)) {
        buf = "&nbsp;";
        return(1);
      }
      else {
        buf = " ";
        return(0);
      }
    }
    else {
      buf = " ";
      return(0);
    }
  }
  
  function proc_symbol(arg1, arg2) {
    if(arg1.indexOf(ch) != -1) {
      if(ch == "<") {
        ch = "&lt;";
      }
      buf = "<span style=\"" + arg2 + "\">" + ch + "</span>";
      return(1);
    }
    else {
      return(0);
    }
  }
  
  function proc_line(arg1, arg2) {
    if((ch == arg1) && (((next_wo_inc() == arg2) || (arg2 == " ")))) {
      s3558 = ((line).substr(ind,(line.length-ind))).replace(/</gi,"&lt;");
      buf = "<span style=\" color: green;\">" + s3558 + "</span>";
      ind = line.length;
      return(1);
    }
    else {
      return(0);
    }
  }
  
  function proc_str(arg1, arg2, arg3, arg4) {
    var s3584 = "";
    
    if(ch == arg1) {
      read_next();
      while((((ch != arg3) || ((prev_wo_inc() == arg2) && (s3584 != ""))) && (endln() == 0))) {
        s3584 += ch;
        read_next();
      }
      s3588 = (s3584).replace(/</gi,"&lt;");
      buf = "<span style=\"" + arg4 + "\">" + arg1 + s3588 + arg3 + "</span>";
      return(1);
    }
    else {
      return(0);
    }
  }
  
  function proc_keywd(arg1, arg2, arg3, arg4) {
    if(arg1.indexOf(ch) != -1) {
      buf = "";
      while(((arg2.indexOf(ch) != -1) && !endln())) {
        buf = buf + ch;
        read_next();
      }
      prev_ch();
      for(var i3618 = 0; i3618 < arg3.length; i3618++) {
        if(arg3[i3618].indexOf((" " + buf + " ").toLowerCase()) != -1) {
          buf = "<span style=\"" + arg4[i3618] + "\">" + buf + "</span>";
          break;
        }
      }
      return(1);
    }
    else {
      return(0);
    }
  }
  
  function prev_wo_inc() {
    return(line.charAt((ind-1)));
  }
  
  function read_next() {
    next_ch();
    ch = line.charAt(ind);
  }
  
  function endln() {
    if(ind == line.length) {
      return(1);
    }
    else {
      return(0);
    }
  }
  
  function prev_ch() {
    ind = (ind-1);
  }
  while((line.length > ind)) {
    ch = line.charAt(ind);
    switch(arg1) {
      case 1:
        if(proc_space()) {
          next_ch();
        }
        else if(proc_line("/","/")) {
          next_ch();
        }
        else if(proc_str("{","-","}"," color: navy; font-style: italic;")) {
          next_ch();
        }
        else if(proc_symbol(":;[]()<>=+-/*^"," color: green;")) {
          next_ch();
        }
        else if(proc_str("\'","\'","\'"," color: gray; font-style: italic;")) {
          next_ch();
        }
        else if(proc_keywd("_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ","_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",arr3699,arr3700)) {
          next_ch();
        }
        else if(proc_symbol("$0123456789"," color: #000080;")) {
          next_ch();
        }
        else {
          next_ch();
          buf = ch;
        }
        break;
      case 2:
        if(proc_space()) {
          next_ch();
        }
        else if(proc_line("/","/")) {
          next_ch();
        }
        else if(proc_str("#","|","|"," color: gray; font-style: italic;")) {
          next_ch();
        }
        else if(proc_symbol(":;[](){}"," color: green;")) {
          next_ch();
        }
        else if(proc_str("\"","`","\""," color: gray; font-style: italic;")) {
          next_ch();
        }
        else if(proc_keywd("_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ","_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",arr3747,arr3748)) {
          next_ch();
        }
        else if(proc_symbol("$0123456789"," color: #000080;")) {
          next_ch();
        }
        else {
          next_ch();
          buf = ch;
        }
        break;
      case 3:
        if(proc_space()) {
          next_ch();
        }
        else if(proc_line("/","/")) {
          next_ch();
        }
        else if(proc_symbol(":;[]()<>=+-/*^"," color: green;")) {
          next_ch();
        }
        else if(proc_str("\"","\\","\""," color: gray; font-style: italic;")) {
          next_ch();
        }
        else if(proc_keywd("_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ","_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",arr3787,arr3788)) {
          next_ch();
        }
        else if(proc_symbol("0123456789"," color: #000080;")) {
          next_ch();
        }
        else if(proc_line("#"," ")) {
          next_ch();
        }
        else {
          next_ch();
          buf = ch;
        }
        break;
      case 4:
        if(proc_space()) {
          next_ch();
        }
        else if(proc_line("'"," ")) {
          next_ch();
        }
        else if(proc_symbol("()+-*/=><"," color: green;")) {
          next_ch();
        }
        else if(proc_str("\"","\"","\""," color: gray; font-style: italic;")) {
          next_ch();
        }
        else if(proc_keywd("_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ","_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",arr3830,arr3831)) {
          next_ch();
        }
        else if(proc_symbol("0123456789"," color: #000080;")) {
          next_ch();
        }
        else {
          next_ch();
          buf = ch;
        }
        break;
      case 5:
        if(proc_space()) {
          next_ch();
        }
        else if(proc_line("/","/")) {
          next_ch();
        }
        else if(proc_symbol(":;[]()<>=+-/*^"," color: green;")) {
          next_ch();
        }
        else if(proc_str("\"","\\","\""," color: gray; font-style: italic;")) {
          next_ch();
        }
        else if(proc_keywd("_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ","_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",arr3870,arr3871)) {
          next_ch();
        }
        else if(proc_symbol("0123456789"," color: #000080;")) {
          next_ch();
        }
        else {
          next_ch();
          buf = ch;
        }
        break;
      case 6:
        if(proc_space()) {
          next_ch();
        }
        else if(proc_symbol(":;[]()<>=+-/*^"," color: green;")) {
          next_ch();
        }
        else if(proc_str("\'","\\","\'"," color: gray; font-style: italic;")) {
          next_ch();
        }
        else if(proc_keywd("_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ","_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",arr3906,arr3907)) {
          next_ch();
        }
        else if(proc_symbol("0123456789"," color: #000080;")) {
          next_ch();
        }
        else {
          next_ch();
          buf = ch;
        }
        break;
      case 7:
        if(proc_space()) {
          next_ch();
        }
        else if(proc_line(";"," ")) {
          next_ch();
        }
        else if(proc_symbol("=+-*/"," color: green;")) {
          next_ch();
        }
        else if(proc_str("\"","\\","\""," color: gray; font-style: italic;")) {
          next_ch();
        }
        else if(proc_str("[","\\","]"," font-weight: bold;")) {
          next_ch();
        }
        else if(proc_symbol("0123456789"," color: #000080;")) {
          next_ch();
        }
        else {
          next_ch();
          buf = ch;
        }
        break;
      case 8:
        if(proc_space()) {
          next_ch();
        }
        else if(proc_line("/","/")) {
          next_ch();
        }
        else if(proc_symbol("()+-*/=><"," color: green;")) {
          next_ch();
        }
        else if(proc_str("\"","\\","\""," color: gray; font-style: italic;")) {
          next_ch();
        }
        else if(proc_str("\'","\\","\'"," color: gray; font-style: italic;")) {
          next_ch();
        }
        else if(proc_keywd("_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ","_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",arr3993,arr3994)) {
          next_ch();
        }
        else if(proc_symbol("0123456789"," color: #000080;")) {
          next_ch();
        }
        else {
          next_ch();
          buf = ch;
        }
        break;
    }
    val4006 = val4006 + buf;
    buf = "";
  }
  return(val4006);
}
var val4045 = 0;
var res4059 = 0;
function selectText(obj) {
  if(document.selection) { // IE, Opera
    return document.selection.createRange().text
  } else {
    sel = document.getSelection();
    return (sel ? sel : obj.value.substr(obj.selectionStart,obj.selectionEnd - obj.selectionStart))
  }
}
function setSelectText(obj, text) {
  if(document.selection) { // IE, Opera
    document.selection.createRange().text = text
  } else {
    b = obj.value.substr(0, obj.selectionStart)
    a = obj.value.substr(obj.selectionEnd)
    obj.value = b + text + a
  }
}
var cur_post = 0;
var val4138 = "";
var val4163 = "";
function multi_call4177() {
  if(document.getElementById("topic_form")) {
  }
  else {
    document.getElementById("text").appendChild(topic_form.cloneNode(true));
    document.getElementById("tf_send_btn").onclick = edit_end;
    document.getElementById("tf_name_row").style.display = "none";
  }
}
function multi_call4274(arg1) {
  var val4281 = "";
  
  if(document.getElementById("code_static").checked) {
    val4281 = "s";
  }
  onPaste("[" + val4281 + "code]\r\n" + arg1 + "\r\n","\r\n[/code]");
  document.getElementById("codes").style.display = "none";
}
function multi_call4332(arg1) {
  if(document.getElementById(arg1).style.display == "none") {
    document.getElementById(arg1).style.display = "inline";
    req_serv("index_serv.php?q=19");
  }
  else {
    document.getElementById(arg1).style.display = "none";
  }
}
function multi_call4268(arg1) {
  if(document.getElementById(arg1).style.display == "none") {
    document.getElementById(arg1).style.display = "inline";
  }
  else {
    document.getElementById(arg1).style.display = "none";
  }
}
function multi_call4374(arg1) {
  onPaste("[color=" + arg1.style.backgroundColor + "]","[/color]");
  document.getElementById("colors").style.display = "none";
}
function multi_call4403(arg1) {
  onPaste("[size=" + arg1 + "]","[/size]");
  document.getElementById("sizes").style.display = "none";
}
function multi_call4451() {
  window.open("forum_serv.php?q=55","reg","toolbar=0,width=900,height=600");
}
var axis = 0;
var _split_obj_ = 0;
function onMouseSplitterUp() {
  document.onmousemove = _old_onmousemove_;
  document.onmouseup = _old_onmouseup_;
  _split_obj_ = 0;
}
function onMouseSplitter(e) {
  if(typeof e != "undefined") event = e;
  if(axis == 1 || axis == 2) {
  dy = event.clientY - _old_my_;
  _old_my_ = event.clientY;
  _split_obj_.style.height = parseInt(_split_obj_.style.height) + dy + "px";
  if(_capture_event_) _capture_event_(_split_obj_, dy);
  }
  if(axis == 0 || axis == 2) {
  dx = event.clientX - _old_mx_;
  _old_mx_ = event.clientX;
  _split_obj_.style.width = parseInt(_split_obj_.style.width) + dx + "px";
  if(_capture_event_) _capture_event_(_split_obj_, dx);
  }
}
function beginMove(a, obj, event, capture) {
  axis = a;
  _old_my_ = event.clientY;
  _old_mx_ = event.clientX;
  _split_obj_ = obj;
  if(obj.style.width.length == 0 && (axis == 0 || axis == 2)) obj.style.width = obj.offsetWidth + "px"
  if(obj.style.height.length == 0 && (axis == 1 || axis == 2)) obj.style.height = obj.offsetHeight + "px"
  _old_onmousemove_ = document.onmousemove;
  _old_onmouseup_ = document.onmouseup;
  _capture_event_ = capture;
  document.onmousemove = onMouseSplitter;
  document.onmouseup = onMouseSplitterUp;
}
function multi_call4494() {
  window.open("forum_serv.php?q=6","attach","toolbar=0,width=400,height=120");
}
function multi_call4518() {
  document.getElementById("mpreview").innerHTML = bbcode(document.getElementById("message").value);
  document.getElementById("preview_row").style.display = "";
}
function multi_call4526() {
  if( confirm("Вы уверенны, что хотите очистить все поля сообщения?") ) {
    e4529 = document.getElementById("topic_form");
    e4529.parentNode.removeChild(e4529);
  }
}
function multi_call4593(arg1,arg2) {
  onPaste("[wiki=" + arg1 + "]" + arg2,"[/wiki]");
  document.getElementById("colors").style.display = "none";
}
function multi_call4618(arg1) {
  window.open("profile.html?q=33&u=" + arg1,"","toolbar=0,width=570,height=440");
}


function showler(arg1, arg2) {
  if(document.getElementById(arg1).style.display == "none") {
    document.getElementById(arg1).style.display = "block";
    document.getElementById(arg2).innerHTML = "Свернуть";
  }
  else {
    document.getElementById(arg1).style.display = "none";
    document.getElementById(arg2).innerHTML = "Развернуть";
  }
}

function _parser(arg1) {
  arr3019 = arg1.split("\r\n");
  for( var _item3019 in arr3019) {
    arr3020 = arr3019[_item3019].split("\t");
    _trace(arr3020[0]);
    switch (arr3020[0]) {
      case "set":
        val3054 = multi_call3026(arr3020);
        document.getElementById(arr3020[1]).innerHTML = val3054;
        break;
      case "add":
        val3054 = multi_call3026(arr3020);
        document.getElementById(arr3020[1]).innerHTML = document.getElementById(arr3020[1]).innerHTML + val3054;
        break;
      case "fadd":
        val3054 = multi_call3026(arr3020);
        val3064 = val3064 + val3054;
        break;
      case "flush":
        document.getElementById(arr3020[1]).innerHTML = val3064;
        val3064 = "";
        break;
      case "show":
        document.getElementById(arr3020[1]).style.display = "block";
        break;
      case "hide":
        document.getElementById(arr3020[1]).style.display = "none";
        break;
      case "call":
        val3064 = val3064 + multi_call3073(arr3020);
        break;
      case "bbcode":
        val3064 = bbcode(val3064);
        break;
      case "mes":
        alert(arr3020[1]);
        break;
      case "pop":
        document.getElementById(arr3020[1]).innerHTML = val3064;
        break;
      case "cset":
        document.getElementById(arr3020[1]).value = arr3020[2];
        break;
      case "ref":
        req_serv(llnk);
        break;
      case "tobuf":
        val3064 = val3064 + document.getElementById(arr3020[1]).innerHTML;
        break;
      case "trace":
        _trace(arr3020[1]);
        break;
      case "load":
        _trace(eval(arr3020[1]));
        break;
      case "dmaddf":
        e3121 = document.getElementById(arr3020[1]);
        e3123 = document.createElement("span")
        e3123.innerHTML = multi_call3026(arr3020);
        if(e3121.firstChild) {
          e3121.insertBefore(e3123,e3121.firstChild);
        }
        else {
          e3121.appendChild(e3123);
        }
        break;
      case "dmapp":
        document.getElementById(arr3020[1]).appendChild(eval(arr3020[2]).cloneNode(true));
        break;
      case "dmclr":
        e3141 = document.getElementById(arr3020[1]);
        while(val3144 = e3141.firstChild) {
          e3141.removeChild(val3144);
        }
        break;
      case "dmaddl":
        e3149 = document.getElementById(arr3020[1]);
        e3151 = document.createElement("span")
        e3151.innerHTML = multi_call3026(arr3020);
        e3149.appendChild(e3151);
        break;
    }
  }
  document.getElementById("wait_img").style.display = "none";
}

function req_serv(arg1) {
  if(document.getElementById("wait_img").style.display != "block") {
    _trace("Запрошено: <span style=\" color: blue; font-size: 11px;\">" + arg1 + "</span>");
    if(window.XMLHttpRequest) {
      req3169 = new XMLHttpRequest();
      req3169.onreadystatechange = processReqChange_3169;
      req3169.open("GET",arg1, true);
      req3169.send(null);
    } else if (window.ActiveXObject) {
      req3169 = new ActiveXObject("Microsoft.XMLHTTP");
      if (req3169) {
        req3169.onreadystatechange = processReqChange_3169;
        req3169.open("GET",arg1, true);
        req3169.send();
      }
    }
    multi_call3175();
  }
}

function req_serv_post(arg1, arg2) {
  if(window.XMLHttpRequest) {
    req3184 = new XMLHttpRequest();
    req3184.onreadystatechange = processReqChange_3184;
    req3184.open("POST",arg1, true);
    req3184.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
    req3184.send(arg2);
  } else if (window.ActiveXObject) {
    req3184 = new ActiveXObject("Microsoft.XMLHTTP");
    if (req3184) {
      req3184.onreadystatechange = processReqChange_3184;
      req3184.open("POST",arg1, true);
      req3184.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
      req3184.send(arg2);
    }
  }
  multi_call3175();
}

function req_serv_bg(arg1) {
  if(document.getElementById("wait_img").style.display == "none") {
    if(window.XMLHttpRequest) {
      req3169 = new XMLHttpRequest();
      req3169.onreadystatechange = processReqChange_3169;
      req3169.open("GET",arg1, true);
      req3169.send(null);
    } else if (window.ActiveXObject) {
      req3169 = new ActiveXObject("Microsoft.XMLHTTP");
      if (req3169) {
        req3169.onreadystatechange = processReqChange_3169;
        req3169.open("GET",arg1, true);
        req3169.send();
      }
    }
  }
}

function req_serv_post_bg(arg1, arg2) {
  if(window.XMLHttpRequest) {
    req3189 = new XMLHttpRequest();
    req3189.onreadystatechange = processReqChange_3189;
    req3189.open("POST",arg1, true);
    req3189.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
    req3189.send(arg2);
  } else if (window.ActiveXObject) {
    req3189 = new ActiveXObject("Microsoft.XMLHTTP");
    if (req3189) {
      req3189.onreadystatechange = processReqChange_3189;
      req3189.open("POST",arg1, true);
      req3189.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
      req3189.send(arg2);
    }
  }
}

function _trace(arg1) {
  e3191 = document.getElementById("con_text");
  if(e3191) {
    s3192 = "-" + new Date();
    res3196 = "<span style=\"font-size: 9px; color: gray;\">" + s3192.split(" ")[4] + "</span>: " + arg1;
    e3199 = document.getElementById("con_text");
    e3200 = document.createElement("span")
    e3200.style.display = "block";
    e3200.innerHTML = res3196;
    if(e3199.firstChild) {
      e3199.insertBefore(e3200,e3199.firstChild);
    }
    else {
      e3199.appendChild(e3200);
    }
  }
}

function req_cache(arg1) {
  llnk = arg1;
  req_serv(llnk);
}

function make_pages(arg1, arg2, arg3, arg4) {
  var s3242 = "";
  
  res3215 = (Math.floor((arg3-1) / arg4));
  res3216 = (Math.floor(arg2 / arg4));
  val3217 = res3216;
  if(val3217 > 0) {
    s3242 += multi_call3223(arg1,0,arg4,res3216);
    s3242 += " ... ";
  }
  res3245 = Math.max((val3217-5),1);
  for(var i3247 = res3245; i3247 < val3217; i3247++) {
    s3242 += multi_call3223(arg1,i3247,arg4,res3216);
  }
  s3242 += multi_call3223(arg1,val3217,arg4,res3216);
  res3250 = Math.min((val3217+6),res3215);
  for(var i3252 = (val3217+1); i3252 < res3250; i3252++) {
    s3242 += multi_call3223(arg1,i3252,arg4,res3216);
  }
  if(val3217 < res3215) {
    s3242 += " ... ";
    s3242 += multi_call3223(arg1,res3215,arg4,res3216);
  }
  return("Страницы: " + s3242);
}

function _dummy_proc(arg1) {
  return(arg1);
}
empty_tag = _dummy_proc;

function bbcode(arg1) {
  var val3275 = 0;
  var s3315 = "";
  
  arr3269 = arg1.split("\n");
  for( var _item3269 in arr3269) {
    if(val3275 == 0) {
      if(multi_call3276(arr3269[_item3269])) {
        val3275 = 1;
        res3288 = (res3288+1);
        s3289 = (arr3269[_item3269]).replace("<","&lt;");
        s3300 = (s3289).replace(/\[code\]/gi,"<div class=\"code_title\" onclick='fs_click(" + res3288 + ");'><img id=\"img_" + res3288 + "\" style=\"margin-left: 2px; margin-right: 2px;\" src=\"xx/pages.png\"> код</div><div id=\"code_" + res3288 + "\" class=\"code\">");
        s3305 = (s3300).replace(/\[scode\]/gi,"<div class=\"code\" style=\"display: block;\">");
        if(s3305.charAt((s3305.length-1)) == ">") {
          val3313 = "";
        }
        s3315 += s3305 + val3313;
        val3316 = 0;
      }
      else {
        if((arr3269[_item3269]).replace(/</gi,"&lt;").indexOf("[table]") != -1) {
          val3327 = (val3327+1);
        }
        if((arr3269[_item3269]).replace(/</gi,"&lt;").indexOf("[/table]") != -1) {
          val3327 = (val3327-1);
        }
        val3333 = (((arr3269[_item3269]).replace(/</gi,"&lt;")).replace("[table]","<table class=\"forum_table\" cellpadding=\"2\" cellspacing=\"1\">")).replace("[/table]","</table>");
        if(val3327 > 0) {
          if((arr3269[_item3269]).replace(/</gi,"&lt;").indexOf("||") != -1) {
            res3340 = (res3340+1);
            val3333 = ("<tr class=\"forum_post_" + (res3340%2) + "\"><td><b>" + val3333 + "</b></td></tr>").replace(/\|\|/gi,"</b></td><td><b>");
          }
          if(val3333.indexOf("|") != -1) {
            res3340 = (res3340+1);
            val3333 = ("<tr class=\"forum_post_" + (res3340%2) + "\"><td>" + val3333 + "</td></tr>").replace(/\|/gi,"</td><td>");
          }
          val3313 = "";
        }
        val3354 = val3333;
        arr3355 = arr3356;
        for( var _item3355 in arr3355) {
          val3354 = (val3354).replace(arr3355[_item3355],"<img id=\"\" src=\"xx/smilies/icon_" + arr3361[_item3355] + ".gif\">");
        }
        s3405 = (((((((((((((((((val3354).replace(/\[b](.*?)\[\/b]/gi,"<b>$1</b>")).replace(/\[i](.*?)\[\/i]/gi,"<i>$1</i>")).replace(/\[u](.*?)\[\/u]/gi,"<u>$1</u>")).replace(/\[size=(.*?)\](.*?)\[\/size]/gi,"<span style=\"font-size: $1px\">$2</span>")).replace(/\[color=(.*?)\](.*?)\[\/color]/gi,"<span style=\"color: $1;\">$2</span>")).replace(/\[url](.*?)\[\/url]/gi,"<a href=\"$1\" class=\"easy_link\">$1</a>")).replace(/\[url=(.*?)](.*?)\[\/url]/gi,"<a href=\"$1\" class=\"easy_link\">$2</a>")).replace(/\[jurl=(.*?)](.*?)\[\/jurl]/gi,"<a href=\'javascript:req_serv(\"$1\")\' class=\"easy_link\">$2</a>")).replace(/\[burl=(.*?)](.*?)\[\/burl]/gi,"<a href=\"$1\" class=\"page\">$2</a>")).replace(/\[wiki=(.*?)](.*?)\[\/wiki]/gi,"<a href=\'javascript:show_wiki(\"$1\")\' class=\"easy_link\">$2</a> <img src=\"xx/wiki.png\">")).replace(/\[anchor=(.*?)\]/gi,"<a name=\"a$1\"></a>")).replace(/\[goto=(.*?)](.*?)\[\/goto]/gi,"<a href=\"#a$1\" class=\"easy_link\">$2</a>")).replace(/\[load=(.*?)](.*?)\[\/load]/gi,"<a href=\"javascript: req_serv('chat_serv.php?q=4&p=$1');\" class=\"easy_link\" style=\"background: url('xx/plug.ico') no-repeat bottom left; padding-left: 12px;\">$2</a>")).replace(/\[svn](.*?).pas\[\/svn]/gi,"<img src=\"xx/svn.gif\"><b>svn</b>: [ <a href=\"http://hiasm.com/svn/elements/delphi/code/hi$1.pas\" class=\"easy_link\" title=\"Скопировать в папку %HiAsm%\\Elements\\Delphi\\code\">$1.pas</a> ] [ <a href=\"http://hiasm.com/svn/elements/delphi/conf/$1.ini\" class=\"easy_link\" title=\"Скопировать в папку %HiAsm%\\Elements\\Delphi\\conf\">$1.ini</a> ]")).replace(/\[svn](.*?).hws\[\/svn]/gi,"<img src=\"xx/svn.gif\"><b>svn</b>: [ <a href=\"http://hiasm.com/svn/elements/web/code/hi$1.hws\" class=\"easy_link\" title=\"Скопировать в папку %HiAsm%\\Elements\\WEB\\code\">$1.hws</a> ] [ <a href=\"http://hiasm.com/svn/elements/web/conf/$1.ini\" class=\"easy_link\" title=\"Скопировать в папку %HiAsm%\\Elements\\WEB\\conf\">$1.ini</a> ]")).replace(/\[svn](.*?).vbs\[\/svn]/gi,"<img src=\"xx/svn.gif\"><b>svn</b>: [ <a href=\"http://hiasm.com/svn/elements/vbs/code/hi$1.hws\" class=\"easy_link\" title=\"Скопировать в папку %HiAsm%\\Elements\\VBS\\code\">$1.hws</a> ] [ <a href=\"http://hiasm.com/svn/elements/vbs/conf/$1.ini\" class=\"easy_link\" title=\"Скопировать в папку %HiAsm%\\Elements\\VBS\\conf\">$1.ini</a> ]")).replace(/\[\*]/gi,"<li>");
        s3462 = (empty_tag(((((((((((((((((((((((s3405).replace(/\[list]/gi,"<ul>")).replace(/\[listn]/gi,"<ol>")).replace(/\[\/list]/gi,"</ul>")).replace(/\[\/listn]/gi,"</ol>")).replace(/\[tab]/gi,"&nbsp;&nbsp;")).replace(/\[hr]/gi,"<hr>")).replace(/\=== (.*?) ===/gi,"<div class=\"bold_link\" style=\"text-decoration: none;\">$1</div> <div style=\"width: 100%; height: 1px; background: gray; overflow: hidden;\"></div>")).replace(/\== (.*?) ==/gi,"<div style=\"font-size: 14; font-weight: bold\" align=center>$1</div>")).replace(/\[quote=(.*?)\]/gi,"<fieldset class=\"quote\"><legend><b>$1</b> писал(а)</legend>")).replace(/\[quote]/gi,"<fieldset class=\"quote\">")).replace(/\[\/quote]/gi,"</fieldset>")).replace(/\[block]/gi,"<div class=\"block\">")).replace(/\[\/block]/gi,"</div>")).replace(/\[flood]/gi,"<div><span class=\"floodhead\" onclick=\"showFlood(this);\">read flood >></span><div class=\"flood\">")).replace(/\[\/flood]/gi,"</div></div>")).replace(/\[offtop]/gi,"<div class=\"offtop\">")).replace(/\[\/offtop]/gi,"</div>")).replace(/\[scroll=(.*?)\]/gi,"<div class=\"scroll\"><div class=\"scroll-head\" onclick=\"switchTable(this);\"><img src=\"xx/icon_plus.gif\"> $1</div><div class=\"scroll-body\">")).replace(/\[\/scroll]/gi,"</div></div>")).replace(/\[vote=(.*?)]/gi,"<form onsubmit=\"return false;\"><b>$1</b>")).replace(/\[\/vote]/gi,"<span class=\"vote-send\" onclick=\"vote(this);\">Голосовать</span> | <span><span class=\"vote-send\" onclick=\"vote_res(this);\">Результаты</span><div class=\"vote-ans\"></div></span></form>")).replace(/\[answer=(.*?)]/gi,"<label id=\"ans\"><input style=\"border: 0;\" type=\"radio\" name=\"votes\"><span> $1</span></label>"))).replace(/\[img](.*?)\[\/img]/gi,"<img src=\"$1\">");
        s3315 += ((((s3462).replace(/\[img=(.*?) align=(.*?)](.*?)\[\/img]/gi,"<div style=\"FLOAT: $2; padding: 5px\"><table class=quote><tr><td align=center><img src=\"$3\"></td></tr><tr><td height=0 bgcolor=gray></td></tr><tr><td align=center><font size=-2>$1</font></td></tr></table></div>")).replace(/\[imgl](.*?)\[\/img]/gi,"<img src=\"$1\" class=\"imgl\">")).replace(/\[tag=(.*?)]/gi,"[$1]")).replace(/\[wf](.*?)\[\/wf]/gi,"xf/attach/wiki/$1") + val3313;
      }
    }
    else {
      if(arr3269[_item3269].indexOf("[/code]") != -1) {
        val3275 = 0;
        res3288 = (res3288+1);
        s3315 += (arr3269[_item3269]).replace(/\[\/code]/gi,"</div>") + val3313;
      }
      else {
        if(multi_call3479(arr3269[_item3269])) {
          val3316 = multi_call3479(arr3269[_item3269]);
        }
        else if(val3316 == 0) {
          s3315 += ((arr3269[_item3269]).replace(/ /gi,"&nbsp;")).replace(/</gi,"&lt;") + val3313;
        }
        else {
          s3315 += multi_call3494(val3316,arr3269[_item3269]) + val3313;
        }
      }
    }
    val3313 = "<br>";
  }
  return(s3315);
}

function showFlood(arg1) {
  ln4012 = arg1.parentNode.lastChild;
  if(ln4012.style.display != "block") {
    ln4012.style.display = "block";
  }
  else {
    ln4012.style.display = "none";
  }
}

function switchTable(arg1) {
  ln4019 = arg1.parentNode.lastChild;
  if(ln4019.style.display != "block") {
    ln4019.style.display = "block";
    arg1.firstChild.src = "xx/icon_minus.gif";
  }
  else {
    ln4019.style.display = "none";
    arg1.firstChild.src = "xx/icon_plus.gif";
  }
}

function vote(arg1) {
  var s4037 = "-";
  var res4040 = 0;
  
  pn4031 = arg1.parentNode;
  arr4033 = pn4031.childNodes;
  for( var _item4033 in arr4033) {
    if(arr4033[_item4033].id == "ans") {
      s4037 += arr4033[_item4033].lastChild.innerHTML;
      res4040 = (res4040+1);
      if(arr4033[_item4033].firstChild.checked == true) {
        val4045 = res4040;
      }
    }
  }
  fn4046 = pn4031.firstChild;
  if(val4045 > 0) {
    req_serv("forum_serv.php?q=63&v=" + encodeURIComponent(fn4046.innerHTML + s4037) + "&a=" + val4045);
  }
  else {
    alert("Необходимо выбрать хотя бы один ответ!");
  }
}

function vote_res(arg1) {
  var res4064 = 0;
  var s4077 = "";
  var s4078 = "-";
  
  pn4057 = arg1.parentNode.parentNode;
  res4059 = (res4059+10);
  arr4060 = pn4057.childNodes;
  for( var _item4060 in arr4060) {
    if(arr4060[_item4060].id == "ans") {
      res4064 = (res4064+1);
      res4065 = (res4064+res4059);
      s4077 += "<tr><td>" + arr4060[_item4060].lastChild.innerHTML + "</td><td id=\"vote" + res4065 + "\">0</td></tr>";
      s4078 += arr4060[_item4060].lastChild.innerHTML;
    }
  }
  fn4079 = pn4057.firstChild;
  _escp_4082 = encodeURIComponent(fn4079.innerHTML + s4078);
  ln4083 = arg1.parentNode.lastChild;
  ln4083.style.display = "block";
  ln4083.innerHTML = "<table>" + s4077 + "</table>";
  req_serv("forum_serv.php?q=64&v=" + _escp_4082 + "&id=" + res4059);
}

function onPaste(arg1, arg2) {
  res4092 = arg1 + selectText(document.getElementById("message")) + arg2;
  document.getElementById("message").focus();
  setSelectText(document.getElementById("message"),res4092)
}

function fs_click(arg1) {
  s4099 = "code_" + arg1;
  s4100 = "img_" + arg1;
  if(document.getElementById(s4099).style.display != "block") {
    document.getElementById(s4099).style.display = "block";
    document.getElementById(s4100).src = "xx/pages2.png";}
  else {
    document.getElementById(s4099).style.display = "none";
    document.getElementById(s4100).src = "xx/pages.png";}
}

function remove_post() {
  if( confirm("Вы уверенны, что хотите удалить статью?") ) {
    req_serv("index_serv.php?q=18&p=" + cur_post);
  }
}

function goto_post(arg1) {
  cur_post = arg1;
  req_serv("index_serv.php?q=10&p=" + cur_post);
}

function add_post() {
  text4125 = prompt("Введите название статьи","");
  if( text4125) {
    if(text4125 != "") {
      req_serv("index_serv.php?q=17&title=" + encodeURIComponent(text4125) + "&p=" + cur_topic);
    }
  }
}

function select_topic(arg1, arg2) {
  cur_topic = arg1;
  if(val4138 != 0) {
    e4139 = document.getElementById(val4138);
    if(e4139) {
      e4139.style.background = "";
    }
  }
  arg2.style.background = "#cccccc";
  val4138 = arg2.id;
}

function add_topic() {
  text4146 = prompt("Введите имя нового раздела","");
  if( text4146) {
    if(text4146 != "") {
      req_serv("index_serv.php?q=11&title=" + encodeURIComponent(text4146) + "&p=" + cur_topic);
    }
  }
}

function del_topic() {
  req_serv("index_serv.php?q=12&p=" + cur_topic);
}

function move_post() {
  req_serv("index_serv.php?q=13&p=" + cur_post + "&t=" + cur_topic);
}

function select_post(arg1, arg2) {
  cur_post = arg1;
  if(val4163 != 0) {
    e4164 = document.getElementById(val4163);
    if(e4164) {
      e4164.style.background = "";
    }
  }
  arg2.style.background = "#cccccc";
  val4163 = arg2.id;
}

function rename_topic() {
  text4171 = prompt("Введите новое имя раздела","");
  if( text4171) {
    if(text4171 != "") {
      req_serv("index_serv.php?q=14&title=" + encodeURIComponent(text4171) + "&p=" + cur_topic);
    }
  }
}

function edit_post(arg1) {
  multi_call4177();
  req_serv("index_serv.php?q=15&p=" + cur_post);
}

function edit_end() {
  req_serv_post("index_serv.php?q=16","post=" + document.getElementById("forum_id").value + "&text=" + encodeURIComponent(document.getElementById("message").value));
}
topic_form = document.createElement("span");
topic_form.id = "topic_form";
topic_form.innerHTML = "<form method=\"Post\" onsubmit='return(false);'><table id=\"topic_form_tbl\" style=\"background-color: #E0E0E0; font-size: 11px; color: #666666; margin-bottom: 15px; margin-top: 10px; width: 100%;\" cellspacing=\"0\" cellpadding=\"0\"><tr><td class=\"table_1_1\"></td><td class=\"table_1_2\" colspan=\"2\"></td><td class=\"table_1_3\"></td></tr><tr><td class=\"table_1_8\" style=\"height: 20px;\"></td><td style=\"text-align: center; font-weight: bold;\" colspan=\"2\">Сообщение</td><td class=\"table_1_4\"></td></tr><tr id=\"tf_title_row\"><td class=\"table_1_8\" style=\"height: 20px;\"></td><td style=\"width: 110px;font-weight: bold;\">Заголовок:</td><td><input id=\"tf_title\" style=\"width: 98%;\" type=\"text\" size=\"20\"><input id=\"forum_id\" type=\"hidden\"><input id=\"user_id\" type=\"hidden\" value=\"0\"></td><td class=\"table_1_4\"></td></tr><tr id=\"tf_name_row\"><td class=\"table_1_8\" style=\"height: 20px;\"></td><td style=\"font-weight: bold;\">Имя:</td><td><input id=\"tf_name\" type=\"text\" size=\"20\"><span id=\"info\" style=\"margin-left: 5px;\"></span></td><td class=\"table_1_4\"></td></tr><tr><td class=\"table_1_8\" style=\"height: 20px;\"></td><td></td><td id=\"tf_buttons\"><input class=\"btn\" title=\"Выделение текста жирным\" type=\"submit\" value=\"b\" onclick='onPaste(\"[b]\",\"[/b]\");'><input class=\"btn\" title=\"Выделение текста наклонным шрифтом\" type=\"submit\" value=\"i\" onclick='onPaste(\"[i]\",\"[/i]\");'><input class=\"btn\" title=\"Выделение текста подчеркнутым шрифтом\" type=\"submit\" value=\"u\" onclick='onPaste(\"[u]\",\"[/u]\");'><input class=\"btn\" title=\"Вставка цитаты\" type=\"submit\" value=\"quote\" onclick='onPaste(\"[quote]\",\"[/quote]\");'><span><input class=\"btn\" title=\"Вставка кода\" type=\"submit\" value=\"code\" onclick='multi_call4268(\"codes\");'><div id=\"codes\" style=\" border-color: silver; border-width: 1px; border-style: solid; background-color: #dddddd; position: absolute; margin-left: -50px; margin-top: 20px; padding-left: 2px; padding-top: 2px; padding-right: 2px; padding-bottom: 2px; display: none;\"><a class=\"code_select\" href='javascript:multi_call4274(\"\");'>Код без подцветки</a><a class=\"code_select\" href='javascript:multi_call4274(\"#pas\");'>Delphi</a><a class=\"code_select\" href='javascript:multi_call4274(\"#cpp\");'>C++</a><a class=\"code_select\" href='javascript:multi_call4274(\"#bas\");'>Basic</a><a class=\"code_select\" href='javascript:multi_call4274(\"#php\");'>PHP</a><a class=\"code_select\" href='javascript:multi_call4274(\"#sql\");'>SQL</a><a class=\"code_select\" href='javascript:multi_call4274(\"\");'>Схема HiAsm</a><a class=\"code_select\" href='javascript:multi_call4274(\"#ini\");'>INI файл</a><a class=\"code_select\" href='javascript:multi_call4274(\"#hws\");'>HiAsm WEB Script</a><div style=\"border-top: 1px dotted gray;\"><label style=\"=\" title=\"Статический тег code не сворачивается в раскрываемую при клике полоску\"><input id=\"code_static\" style=\"border: 0px;\" type=\"checkbox\" 1> статический</label></div></div></span><input class=\"btn\" title=\"Вставка простого списка\" type=\"submit\" value=\"list\" onclick='onPaste(\"[list]\",\"[/list]\");'><input class=\"btn\" title=\"Вставка одного пункта списка\" type=\"submit\" value=\"item\" onclick='onPaste(\"[*]\",\" \");'><input class=\"btn\" title=\"Вставка разделяющей черты\" type=\"submit\" value=\"hr\" onclick='onPaste(\"[hr]\",\" \");'><span><input class=\"btn\" title=\"Ссылка на статью в Wiki\" type=\"submit\" value=\"wiki\" onclick='multi_call4332(\"p0\");'><div id=\"p0\" style=\" border-color: silver; border-width: 1px; border-style: solid; background-color: #dddddd; position: absolute; margin-left: -50px; margin-top: 20px; display: none;\">...</div></span><input class=\"btn\" title=\"Вставка ссылки\" type=\"submit\" value=\"url\" onclick='onPaste(\"[url]\",\"[/url]\");'><input class=\"btn\" title=\"Вставка ссылки ввиде кнопки\" type=\"submit\" value=\"burl\" onclick='onPaste(\"[burl]\",\"[/burl]\");'><input class=\"btn\" title=\"Вставка картинки\" type=\"submit\" value=\"img\" onclick='onPaste(\"[img]\",\"[/img] \");'><input class=\"btn\" title=\"Вставка таблицы\" type=\"submit\" value=\"table\" onclick='onPaste(\"[table]\",\"[/table]\");'><span><input class=\"btn\" title=\"Цвет текста\" type=\"submit\" value=\"color\" onclick='multi_call4268(\"colors\");'><div id=\"colors\" style=\" border-color: silver; border-width: 1px; border-style: solid; background-color: #dddddd; position: absolute; margin-left: -50px; margin-top: 20px; display: none;\"><table cellspacing=\"1\" cellpadding=\"1\"><tr><td class=\"color_select\" style=\"background-color: red;\" onclick='multi_call4374(this);'></td><td class=\"color_select\" style=\"background-color: blue;\" onclick='multi_call4374(this);'></td><td class=\"color_select\" style=\"background-color: green;\" onclick='multi_call4374(this);'></td></tr><tr><td id=\"red1\" class=\"color_select\" style=\"background-color: silver;\" onclick='multi_call4374(this);'></td><td class=\"color_select\" style=\"background-color: gray;\" onclick='multi_call4374(this);'></td><td class=\"color_select\" style=\"background-color: brown;\" onclick='multi_call4374(this);'></td></tr><tr><td id=\"red1\" class=\"color_select\" style=\"background-color: gold;\" onclick='multi_call4374(this);'></td><td class=\"color_select\" style=\"background-color: darkgray;\" onclick='multi_call4374(this);'></td><td class=\"color_select\" style=\"background-color: aqua;\" onclick='multi_call4374(this);'></td></tr></table></div></span><span><input class=\"btn\" title=\"Размер шрифта\" type=\"submit\" value=\"size\" onclick='multi_call4268(\"sizes\");'><div id=\"sizes\" style=\" border-color: silver; border-width: 1px; border-style: solid; background-color: #dddddd; position: absolute; margin-left: -50px; margin-top: 20px; padding-left: 2px; padding-top: 2px; padding-right: 2px; padding-bottom: 2px; display: none;\"><a class=\"code_select\" href='javascript:multi_call4403(\"8\");'>Очень маленький</a><a class=\"code_select\" href='javascript:multi_call4403(\"10\");'>Маленький</a><a class=\"code_select\" href='javascript:multi_call4403(\"16\");'>Большой</a><a class=\"code_select\" href='javascript:multi_call4403(\"20\");'>Очень большой</a></div></span><input class=\"btn\" title=\"Вставка ссылки на файл в SVN\" type=\"submit\" value=\"svn\" onclick='onPaste(\"[svn]\",\"[/svn]\");'><input class=\"btn\" title=\"Вставка отступа\" type=\"submit\" value=\"tab\" onclick='onPaste(\"[tab]\",\" \");'><input class=\"btn\" title=\"Вставка текста, не относящегося к теме сообщения\" type=\"submit\" value=\"offtop\" onclick='onPaste(\"[offtop]\",\"[/offtop]\");'><input class=\"btn\" title=\"Вставка выпадающего блока\" type=\"submit\" value=\"scroll\" onclick='onPaste(\"[scroll=]\",\"[/scroll]\");'><input class=\"btn\" title=\"Вставка флуда\" type=\"submit\" value=\"flood\" onclick='onPaste(\"[flood]\",\"[/flood]\");'></td><td class=\"table_1_4\"></td></tr><tr><td class=\"table_1_8\" style=\"height: 20px;\"></td><td>Помощь:</td><td id=\"tf_buttons\"><img style=\"margin-right: 4px;\" src=\"xx/wiki.png\"><a class=\"easy_link\" href=\"javascript:;\" onclick='multi_call4451();'>Куда залить файл?</a>&nbsp;&nbsp;<a class=\"easy_link\" href=\"javascript:show_wiki('63')\">Как скопировать и вставить схему?</a></td><td class=\"table_1_4\"></td></tr><tr><td class=\"table_1_8\" style=\"height: 20px;\"></td><td style=\"font-weight: bold;\">Сообщение:<div style=\"width: 93px; height: 150px; background-color: white; border: 1px solid silver;\"><img id=\"sm\" class=\"smile\" style=\"margin: 2px;\" title=\" :D \" src=\"xx/smilies/icon_biggrin.gif\" onclick='onPaste(this.title,\"\");'><img id=\"sm\" class=\"smile\" style=\"margin: 2px;\" title=\" :) \" src=\"xx/smilies/icon_smile.gif\" onclick='onPaste(this.title,\"\");'><img id=\"sm\" class=\"smile\" style=\"margin: 2px;\" title=\" :( \" src=\"xx/smilies/icon_sad.gif\" onclick='onPaste(this.title,\"\");'><img id=\"sm\" class=\"smile\" style=\"margin: 2px;\" title=\" :oops: \" src=\"xx/smilies/icon_redface.gif\" onclick='onPaste(this.title,\"\");'><img id=\"sm\" class=\"smile\" style=\"margin: 2px;\" title=\" :-o \" src=\"xx/smilies/icon_surprised.gif\" onclick='onPaste(this.title,\"\");'><img id=\"sm\" class=\"smile\" style=\"margin: 2px;\" title=\" :shock: \" src=\"xx/smilies/icon_eek.gif\" onclick='onPaste(this.title,\"\");'><img id=\"sm\" class=\"smile\" style=\"margin: 2px;\" title=\" :?: \" src=\"xx/smilies/icon_question.gif\" onclick='onPaste(this.title,\"\");'><img id=\"sm\" class=\"smile\" style=\"margin: 2px;\" title=\" :-? \" src=\"xx/smilies/icon_confused.gif\" onclick='onPaste(this.title,\"\");'><img id=\"sm\" class=\"smile\" style=\"margin: 2px;\" title=\" 8-) \" src=\"xx/smilies/icon_cool.gif\" onclick='onPaste(this.title,\"\");'><img id=\"sm\" class=\"smile\" style=\"margin: 2px;\" title=\" :lol: \" src=\"xx/smilies/icon_lol.gif\" onclick='onPaste(this.title,\"\");'><img id=\"sm\" class=\"smile\" style=\"margin: 2px;\" title=\" :x \" src=\"xx/smilies/icon_mad.gif\" onclick='onPaste(this.title,\"\");'><img id=\"sm\" class=\"smile\" style=\"margin: 2px;\" title=\" :P \" src=\"xx/smilies/icon_razz.gif\" onclick='onPaste(this.title,\"\");'><img id=\"sm\" class=\"smile\" style=\"margin: 2px;\" title=\" :o \" src=\"xx/smilies/icon_surprised.gif\" onclick='onPaste(this.title,\"\");'><img id=\"sm\" class=\"smile\" style=\"margin: 2px;\" title=\" :cry: \" src=\"xx/smilies/icon_cry.gif\" onclick='onPaste(this.title,\"\");'><img id=\"sm\" class=\"smile\" style=\"margin: 2px;\" title=\" :evil: \" src=\"xx/smilies/icon_evil.gif\" onclick='onPaste(this.title,\"\");'><img id=\"sm\" class=\"smile\" style=\"margin: 2px;\" title=\" :twisted: \" src=\"xx/smilies/icon_twisted.gif\" onclick='onPaste(this.title,\"\");'><img id=\"sm\" class=\"smile\" style=\"margin: 2px;\" title=\" :roll: \" src=\"xx/smilies/icon_rolleyes.gif\" onclick='onPaste(this.title,\"\");'><img id=\"sm\" class=\"smile\" style=\"margin: 2px;\" title=\" :wink: \" src=\"xx/smilies/icon_wink.gif\" onclick='onPaste(this.title,\"\");'><img id=\"sm\" class=\"smile\" style=\"margin: 2px;\" title=\" :!: \" src=\"xx/smilies/icon_exclaim.gif\" onclick='onPaste(this.title,\"\");'><img id=\"sm\" class=\"smile\" style=\"margin: 2px;\" title=\" :idea: \" src=\"xx/smilies/icon_idea.gif\" onclick='onPaste(this.title,\"\");'><img id=\"sm\" class=\"smile\" style=\"margin: 2px;\" title=\" :arrow: \" src=\"xx/smilies/icon_arrow.gif\" onclick='onPaste(this.title,\"\");'><img id=\"sm\" class=\"smile\" style=\"margin: 2px;\" title=\" :| \" src=\"xx/smilies/icon_neutral.gif\" onclick='onPaste(this.title,\"\");'><img id=\"sm\" class=\"smile\" style=\"margin: 2px;\" title=\" :mrgreen: \" src=\"xx/smilies/icon_mrgreen.gif\" onclick='onPaste(this.title,\"\");'></div></td><td><textarea id=\"message\" style=\"width: 100%; padding: 0; margin: 0;\" rows=\"14\"></textarea><div style=\"text-align: right;\"><div style=\" background-image: url('xx/split.png'); background-repeat: no-repeat; width: 81px; height: 10px; cursor: n-resize; float: right; display: block;\" onmousedown='beginMove(1,document.getElementById(\"message\"),event,0);'></div></div></td><td class=\"table_1_4\"></td></tr><tr><td class=\"table_1_8\" style=\"height: 20px;\"></td><td style=\"font-weight: bold;\">Файлы:</td><td><div id=\"attaches\"></div><a class=\"bold_link1\" href='javascript:multi_call4494();'>Добавить файл</a></td><td class=\"table_1_4\"></td></tr><tr id=\"preview_row\" style=\"display: none;\"><td class=\"table_1_8\" style=\"height: 20px;\"></td><td style=\"font-weight: bold;\">Просмотр:</td><td><div id=\"mpreview\" style=\"background-color: #f4f4f4; border: 1px solid black; padding: 7px; overflow: auto;\"></div><div style=\"text-align: right;\"><div style=\" background-image: url('xx/split.png'); background-repeat: no-repeat; width: 81px; height: 10px; cursor: n-resize; float: right; display: block;\" onmousedown='beginMove(1,document.getElementById(\"mpreview\"),event,0);'></div></div></td><td class=\"table_1_4\"></td></tr><tr><td class=\"table_1_8\" style=\"height: 20px;\"></td><td style=\"text-align: center; margin: 5px;\" colspan=\"2\"><input id=\"tf_send_btn\" style=\"margin: 5px;\" type=\"submit\" value=\"Отправить\"><input style=\"margin: 5px;\" type=\"submit\" value=\"Просмотр\" onclick='multi_call4518();'><input style=\"margin: 5px;\" type=\"submit\" value=\"Сбросить\" onclick='multi_call4526();'></td><td class=\"table_1_4\"></td></tr><tr><td class=\"table_1_7\" style=\"height: 5px;\"></td><td class=\"table_1_6\" colspan=\"2\"></td><td class=\"table_1_5\"></td></tr></table></form>";

function f_add_post() {
  if(document.getElementById("tf_name").value.length > 2) {
    if(document.getElementById("tf_title").value.length > 2) {
      len4548 = document.getElementById("message").value.length;
      if(len4548 < 24000) {
        if(len4548 > 3) {
          req_serv_post(document.getElementById("forum_id").value,"name=" + document.getElementById("tf_name").value + "&title=" + document.getElementById("tf_title").value + "&text=" + encodeURIComponent(document.getElementById("message").value) + "&user_id=" + document.getElementById("user_id").value);
          _trace("Отправка поста");
        }
        else {
          alert("Длинна сообщения не может быть меньше 3 знаков");
        }
      }
      else {
        alert("Длинна сообщения не может превышать 24000 знаков");
      }
    }
    else {
      alert("Заголовок сообщения должен содержать более 2х символов");
    }
  }
  else {
    alert("Ваш ник должен содержать более двух символов");
  }
}
wiki_folder = "<div style=\"vertical-align: center; height: 18px;\"><img style=\"float: left;\" src=\"xx/plus.gif\" onclick='if(document.getElementById(\"p%3%2\").style.display != \"block\") {this.src = \"xx/minus.gif\";document.getElementById(\"p%3%2\").style.display = \"block\";if(document.getElementById(\"p%3%2\").innerHTML == \"...\") {req_serv(\"index_serv.php?q=9&p=%2&w=%3\");}}else {this.src = \"xx/plus.gif\";document.getElementById(\"p%3%2\").style.display = \"none\";}'><img id=\"if%3%2\" style=\"float: left;\" src=\"xx/f.gif\"><span id=\"f%3%2\">%1</span></div><div id=\"p%3%2\" class=\"tree_line\">...</div>";
wiki_post = "<div style=\"vertical-align: center; height: 16px;\"><img style=\"float: left;\" src=\"xx/join.gif\"><img id=\"ip%2\" style=\"float: left;\" src=\"xx/p.gif\"><a class=\"easy_link2\" href='javascript:multi_call4593(\"%2\",\"%1\");'>%1</a></div>";

function show_wiki(arg1) {
  window.open("profile.html?q=45&p=" + arg1,"show_wiki","toolbar=0,width=570,height=200,scrollbars=1,resizable=1");
}
ftools_ver = "312";
luser = "Логин: <span style=\"font-weight: bold;\">%1</span><br>[ <a class=\"easy_link\" href='javascript:multi_call4618(\"%2\");'>профиль</a> | <a class=\"easy_link\" href='javascript:req_serv_post(\"forum_serv.php?q=29\",\"\");'>выйти</a> ]";
