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 val3329 = 0;
var res3342 = 0;
arr3358 = new Array(":D",":)",":(",":oops:",":-o",":shock:",":?:",":-?","8-)",":lol:",":x",":P",":o",":cry:",":evil:",":twisted:",":roll:",":wink:",":!:",":idea:",":arrow:",":|",":mrgreen:");
arr3363 = 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");
arr3484 = new Array("#pas","#sha","#cpp","#bas","#php","#sql","#ini","#hws");
function multi_call3481(arg1) {
  arr3483 = arr3484;
  for( var _item3483 in arr3483) {
    if(arg1 == arr3483[_item3483]) {
      return((parseInt(_item3483)+1));
      break;
    }
  }
  return(0);
}
var line = "";
var ind = 0;
var ch = "";
arr3701 = 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 ");
arr3702 = new Array("font-weight: bold;");
arr3749 = new Array(" add make begin_sdk end_sdk link point makeext ");
arr3750 = new Array("font-weight: bold;");
arr3789 = 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 ");
arr3790 = new Array("font-weight: bold;");
arr3832 = 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 ");
arr3833 = new Array("color: blue;");
arr3872 = new Array(" function global int if else switch case deafult for while do return echo array break ");
arr3873 = new Array("font-weight: bold;");
arr3908 = 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 ");
arr3909 = new Array("font-weight: bold;","color: red;");
arr3995 = 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 ");
arr3996 = new Array("font-weight: bold; color: navy;");
var buf = "";
function multi_call3496(arg1,arg2) {
  var val4008 = "";
  
  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 == " ")))) {
      s3560 = ((line).substr(ind,(line.length-ind))).replace(/</gi,"&lt;");
      buf = "<span style=\" color: green;\">" + s3560 + "</span>";
      ind = line.length;
      return(1);
    }
    else {
      return(0);
    }
  }
  
  function proc_str(arg1, arg2, arg3, arg4) {
    var s3586 = "";
    
    if(ch == arg1) {
      read_next();
      while((((ch != arg3) || ((prev_wo_inc() == arg2) && (s3586 != ""))) && (endln() == 0))) {
        s3586 += ch;
        read_next();
      }
      s3590 = (s3586).replace(/</gi,"&lt;");
      buf = "<span style=\"" + arg4 + "\">" + arg1 + s3590 + 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 i3620 = 0; i3620 < arg3.length; i3620++) {
        if(arg3[i3620].indexOf((" " + buf + " ").toLowerCase()) != -1) {
          buf = "<span style=\"" + arg4[i3620] + "\">" + 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",arr3701,arr3702)) {
          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",arr3749,arr3750)) {
          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",arr3789,arr3790)) {
          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",arr3832,arr3833)) {
          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",arr3872,arr3873)) {
          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",arr3908,arr3909)) {
          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",arr3995,arr3996)) {
          next_ch();
        }
        else if(proc_symbol("0123456789"," color: #000080;")) {
          next_ch();
        }
        else {
          next_ch();
          buf = ch;
        }
        break;
    }
    val4008 = val4008 + buf;
    buf = "";
  }
  return(val4008);
}
var val4047 = 0;
var res4061 = 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 val4140 = "";
var val4165 = "";
function multi_call4179() {
  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_call4285(arg1) {
  var val4292 = "";
  
  if(document.getElementById("code_static").checked) {
    val4292 = "s";
  }
  onPaste("[" + val4292 + "code]\r\n" + arg1 + "\r\n","\r\n[/code]");
  document.getElementById("codes").style.display = "none";
}
function multi_call4343(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_call4279(arg1) {
  if(document.getElementById(arg1).style.display == "none") {
    document.getElementById(arg1).style.display = "inline";
  }
  else {
    document.getElementById(arg1).style.display = "none";
  }
}
function multi_call4385(arg1) {
  onPaste("[color=" + arg1.style.backgroundColor + "]","[/color]");
  document.getElementById("colors").style.display = "none";
}
function multi_call4414(arg1) {
  onPaste("[size=" + arg1 + "]","[/size]");
  document.getElementById("sizes").style.display = "none";
}
function multi_call4462() {
  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_call4505() {
  window.open("forum_serv.php?q=6","attach","toolbar=0,width=400,height=120");
}
function multi_call4529() {
  document.getElementById("mpreview").innerHTML = bbcode(document.getElementById("message").value);
  document.getElementById("preview_row").style.display = "";
}
function multi_call4537() {
  if( confirm("Вы уверенны, что хотите очистить все поля сообщения?") ) {
    e4540 = document.getElementById("topic_form");
    e4540.parentNode.removeChild(e4540);
  }
}
function multi_call4606(arg1,arg2) {
  onPaste("[wiki=" + arg1 + "]" + arg2,"[/wiki]");
  document.getElementById("colors").style.display = "none";
}
function multi_call4631(arg1) {
  window.open("profile.html?q=33&u=" + arg1,"winprofile","toolbar=0,width=600,height=700");
}


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;")).replace(/\$/gi,"&#36;").indexOf("[table]") != -1) {
          val3329 = (val3329+1);
        }
        if(((arr3269[_item3269]).replace(/</gi,"&lt;")).replace(/\$/gi,"&#36;").indexOf("[/table]") != -1) {
          val3329 = (val3329-1);
        }
        val3335 = ((((arr3269[_item3269]).replace(/</gi,"&lt;")).replace(/\$/gi,"&#36;")).replace("[table]","<table class=\"forum_table\" cellpadding=\"2\" cellspacing=\"1\">")).replace("[/table]","</table>");
        if(val3329 > 0) {
          if(((arr3269[_item3269]).replace(/</gi,"&lt;")).replace(/\$/gi,"&#36;").indexOf("||") != -1) {
            res3342 = (res3342+1);
            val3335 = ("<tr class=\"forum_post_" + (res3342%2) + "\"><td><b>" + val3335 + "</b></td></tr>").replace(/\|\|/gi,"</b></td><td><b>");
          }
          if(val3335.indexOf("|") != -1) {
            res3342 = (res3342+1);
            val3335 = ("<tr class=\"forum_post_" + (res3342%2) + "\"><td>" + val3335 + "</td></tr>").replace(/\|/gi,"</td><td>");
          }
          val3313 = "";
        }
        val3356 = val3335;
        arr3357 = arr3358;
        for( var _item3357 in arr3357) {
          val3356 = (val3356).replace(arr3357[_item3357],"<img id=\"\" src=\"xx/smilies/icon_" + arr3363[_item3357] + ".gif\">");
        }
        s3407 = (((((((((((((((((val3356).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://svn.hiasm.com/packs/delphi/code/hi$1.pas\" class=\"easy_link\" title=\"Скопировать в папку %HiAsm%\\Elements\\Delphi\\code\">$1.pas</a> ] [ <a href=\"http://svn.hiasm.com/packs/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://svn.hiasm.com/packs/web/code/hi$1.hws\" class=\"easy_link\" title=\"Скопировать в папку %HiAsm%\\Elements\\WEB\\code\">$1.hws</a> ] [ <a href=\"http://svn.hiasm.com/packs/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://svn.hiasm.com/packs/vbs/code/hi$1.hws\" class=\"easy_link\" title=\"Скопировать в папку %HiAsm%\\Elements\\VBS\\code\">$1.hws</a> ] [ <a href=\"http://svn.hiasm.com/packs/vbs/conf/$1.ini\" class=\"easy_link\" title=\"Скопировать в папку %HiAsm%\\Elements\\VBS\\conf\">$1.ini</a> ]")).replace(/\[\*]/gi,"<li>");
        s3468 = ((empty_tag(((((((((((((((((((((((s3407).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(/\[wf](.*?)\[\/wf]/gi,"xf/attach/wiki/$1")).replace(/\[img]([^ '"?%&]+|load.php\?a\=[0-9]+)\[\/img]/gi,"<img src=\"$1\">");
        s3315 += (((s3468).replace(/\[img=(.*?) align=([^'"]+)]([^ '"?%&]+|load.php\?a\=[0-9]+)\[\/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]([^ '"?%&]+|load.php\?a\=[0-9]+)\[\/img]/gi,"<img src=\"$1\" class=\"imgl\">")).replace(/\[tag=(.*?)]/gi,"[$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_call3481(arr3269[_item3269])) {
          val3316 = multi_call3481(arr3269[_item3269]);
        }
        else if(val3316 == 0) {
          s3315 += ((arr3269[_item3269]).replace(/ /gi,"&nbsp;")).replace(/</gi,"&lt;") + val3313;
        }
        else {
          s3315 += multi_call3496(val3316,arr3269[_item3269]) + val3313;
        }
      }
    }
    val3313 = "<br>";
  }
  return(s3315);
}

function showFlood(arg1) {
  ln4014 = arg1.parentNode.lastChild;
  if(ln4014.style.display != "block") {
    ln4014.style.display = "block";
  }
  else {
    ln4014.style.display = "none";
  }
}

function switchTable(arg1) {
  ln4021 = arg1.parentNode.lastChild;
  if(ln4021.style.display != "block") {
    ln4021.style.display = "block";
    arg1.firstChild.src = "xx/icon_minus.gif";
  }
  else {
    ln4021.style.display = "none";
    arg1.firstChild.src = "xx/icon_plus.gif";
  }
}

function vote(arg1) {
  var s4039 = "-";
  var res4042 = 0;
  
  pn4033 = arg1.parentNode;
  arr4035 = pn4033.childNodes;
  for( var _item4035 in arr4035) {
    if(arr4035[_item4035].id == "ans") {
      s4039 += arr4035[_item4035].lastChild.innerHTML;
      res4042 = (res4042+1);
      if(arr4035[_item4035].firstChild.checked == true) {
        val4047 = res4042;
      }
    }
  }
  fn4048 = pn4033.firstChild;
  if(val4047 > 0) {
    req_serv("forum_serv.php?q=63&v=" + encodeURIComponent(fn4048.innerHTML + s4039) + "&a=" + val4047);
  }
  else {
    alert("Необходимо выбрать хотя бы один ответ!");
  }
}

function vote_res(arg1) {
  var res4066 = 0;
  var s4079 = "";
  var s4080 = "-";
  
  pn4059 = arg1.parentNode.parentNode;
  res4061 = (res4061+10);
  arr4062 = pn4059.childNodes;
  for( var _item4062 in arr4062) {
    if(arr4062[_item4062].id == "ans") {
      res4066 = (res4066+1);
      res4067 = (res4066+res4061);
      s4079 += "<tr><td>" + arr4062[_item4062].lastChild.innerHTML + "</td><td id=\"vote" + res4067 + "\">0</td></tr>";
      s4080 += arr4062[_item4062].lastChild.innerHTML;
    }
  }
  fn4081 = pn4059.firstChild;
  _escp_4084 = encodeURIComponent(fn4081.innerHTML + s4080);
  ln4085 = arg1.parentNode.lastChild;
  ln4085.style.display = "block";
  ln4085.innerHTML = "<table>" + s4079 + "</table>";
  req_serv("forum_serv.php?q=64&v=" + _escp_4084 + "&id=" + res4061);
}

function onPaste(arg1, arg2) {
  res4094 = arg1 + selectText(document.getElementById("message")) + arg2;
  document.getElementById("message").focus();
  setSelectText(document.getElementById("message"),res4094)
}

function fs_click(arg1) {
  s4101 = "code_" + arg1;
  s4102 = "img_" + arg1;
  if(document.getElementById(s4101).style.display != "block") {
    document.getElementById(s4101).style.display = "block";
    document.getElementById(s4102).src = "xx/pages2.png";}
  else {
    document.getElementById(s4101).style.display = "none";
    document.getElementById(s4102).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() {
  text4127 = prompt("Введите название статьи","");
  if( text4127) {
    if(text4127 != "") {
      req_serv("index_serv.php?q=17&title=" + encodeURIComponent(text4127) + "&p=" + cur_topic);
    }
  }
}

function select_topic(arg1, arg2) {
  cur_topic = arg1;
  if(val4140 != 0) {
    e4141 = document.getElementById(val4140);
    if(e4141) {
      e4141.style.background = "";
    }
  }
  arg2.style.background = "#cccccc";
  val4140 = arg2.id;
}

function add_topic() {
  text4148 = prompt("Введите имя нового раздела","");
  if( text4148) {
    if(text4148 != "") {
      req_serv("index_serv.php?q=11&title=" + encodeURIComponent(text4148) + "&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(val4165 != 0) {
    e4166 = document.getElementById(val4165);
    if(e4166) {
      e4166.style.background = "";
    }
  }
  arg2.style.background = "#cccccc";
  val4165 = arg2.id;
}

function rename_topic() {
  text4173 = prompt("Введите новое имя раздела","");
  if( text4173) {
    if(text4173 != "") {
      req_serv("index_serv.php?q=14&title=" + encodeURIComponent(text4173) + "&p=" + cur_topic);
    }
  }
}

function edit_post(arg1) {
  multi_call4179();
  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; 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><table style=\"width: 100%;\" cellspacing=\"0\" cellpadding=\"0\"><tr><td><input id=\"tf_title\" style=\"width: 100%;\" type=\"text\" size=\"20\"><input id=\"forum_id\" type=\"hidden\"><input id=\"user_id\" type=\"hidden\" value=\"0\"></td><td style=\"width: 200px; padding-left: 10px;\"><label><input id=\"mailme\" type=\"checkbox\" 1><span style=\"float: left; padding-top: 2px;\">следить за ответами по e-mail</span></label></td></tr></table></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_call4279(\"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_call4285(\"\");'>Код без подцветки</a><a class=\"code_select\" href='javascript:multi_call4285(\"#pas\");'>Delphi</a><a class=\"code_select\" href='javascript:multi_call4285(\"#cpp\");'>C++</a><a class=\"code_select\" href='javascript:multi_call4285(\"#bas\");'>Basic</a><a class=\"code_select\" href='javascript:multi_call4285(\"#php\");'>PHP</a><a class=\"code_select\" href='javascript:multi_call4285(\"#sql\");'>SQL</a><a class=\"code_select\" href='javascript:multi_call4285(\"\");'>Схема HiAsm</a><a class=\"code_select\" href='javascript:multi_call4285(\"#ini\");'>INI файл</a><a class=\"code_select\" href='javascript:multi_call4285(\"#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_call4343(\"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_call4279(\"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_call4385(this);'></td><td class=\"color_select\" style=\"background-color: blue;\" onclick='multi_call4385(this);'></td><td class=\"color_select\" style=\"background-color: green;\" onclick='multi_call4385(this);'></td></tr><tr><td id=\"red1\" class=\"color_select\" style=\"background-color: silver;\" onclick='multi_call4385(this);'></td><td class=\"color_select\" style=\"background-color: gray;\" onclick='multi_call4385(this);'></td><td class=\"color_select\" style=\"background-color: brown;\" onclick='multi_call4385(this);'></td></tr><tr><td id=\"red1\" class=\"color_select\" style=\"background-color: gold;\" onclick='multi_call4385(this);'></td><td class=\"color_select\" style=\"background-color: darkgray;\" onclick='multi_call4385(this);'></td><td class=\"color_select\" style=\"background-color: aqua;\" onclick='multi_call4385(this);'></td></tr></table></div></span><span><input class=\"btn\" title=\"Размер шрифта\" type=\"submit\" value=\"size\" onclick='multi_call4279(\"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_call4414(\"8\");'>Очень маленький</a><a class=\"code_select\" href='javascript:multi_call4414(\"10\");'>Маленький</a><a class=\"code_select\" href='javascript:multi_call4414(\"16\");'>Большой</a><a class=\"code_select\" href='javascript:multi_call4414(\"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_call4462();'>Куда залить файл?</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_call4505();'>Добавить файл</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_call4529();'><input style=\"margin: 5px;\" type=\"submit\" value=\"Сбросить\" onclick='multi_call4537();'></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) {
      len4559 = document.getElementById("message").value.length;
      if(len4559 < 24000) {
        if(len4559 > 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 + "&mailme=" + (0+document.getElementById("mailme").checked));
          _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_call4606(\"%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 = "473";
luser = "Логин: <span style=\"font-weight: bold;\">%1</span><br>[ <a class=\"easy_link\" href='javascript:multi_call4631(\"%2\");'>профиль</a> | <a class=\"easy_link\" href='javascript:req_serv_post(\"forum_serv.php?q=29\",\"\");'>выйти</a> ]";

function set_title(arg1) {
  document.title = arg1;
  return("");
}

