function DontBlank()
{
  s_word=document.getElementById('search_word');
  if(s_word.value=='' || s_word.value=='ПОИСК ПО САЙТУ') alert('Введите слово для поиска!');
  else {
    if(s_word.value.length <= 2) alert('Слово для поиска слишком короткое!');
    else {
      if(s_word.value=='td' || s_word.value=='tr' || s_word.value=='script' || s_word.value=='html' || s_word.value=='div') alert('Слово недопустимо для поиска!');
      else {
        document.search_form.submit();
        return true;
      }
    }
  }
  return  false;
}

function treeExpand(trname) {
  //  if(trname != 'ur_1_7')document.getElementById('ur_1_7').style.display = 'none';
  //  if(trname != 'ur_1_14')document.getElementById('ur_1_14').style.display = 'none';
  //  if(trname != 'ur_1_15')document.getElementById('ur_1_15').style.display = 'none';
  //  if(trname != 'ur_1_17')document.getElementById('ur_1_17').style.display = 'none';

  tr = document.getElementById(trname);
  if (tr.style.display == '') { tr.style.display = 'none';} else { tr.style.display = '';}
  return true;
};

function imenus_data0() {
  this.main_is_horizontal = true;
  this.menu_showhide_delay = 150;

  //Main Menu

  this.main_container_styles = "padding-top:4px; padding-right:0px; padding-bottom:0px; padding-left:6px; width:625px; height:30px";
  this.main_item_styles = "color:#0266BC; text-align:center; font-family:Verdana; font-size:8pt; font-weight:bold; text-decoration:none; padding-top:8px; padding-right:0px; padding-bottom:6px; padding-left:0px;";
  this.main_item_hover_styles = "color:#39A9F1;";
  //this.main_item_active_styles = "text-decoration:underline; ";

  //Sub Menu

  this.subs_container_styles = "background-color:#F2F8FF; border-style:solid; border-color:#0266BC; border-width:1px; padding-top:2px; padding-right:4px; padding-bottom:2px; padding-left:4px;";
  this.subs_item_styles = "color:#0266BC; text-align:left; font-family:Verdana; font-size:8pt; font-weight:normal; text-decoration:none; padding-top:0px; padding-right:4px; padding-bottom:0px; padding-left:4px;";
  //this.subs_item_hover_styles = "background-color:#ffffff;";
  //this.subs_item_active_styles = "text-decoration:underline; ";
};

function replace_string(txt,cut_str,paste_str){
  var f=0;
  var ht=txt;
  f=ht.indexOf(cut_str);
  while (f!=-1){
    f=ht.indexOf(cut_str);
    if (f>0)ht = ht.substr(0,f) + paste_str + ht.substr(f+cut_str.length);
  }
  return ht;
}
