/* ---------------------------- */
 function _if_tr_color(_p_id)
 {
  _v_tr=document.getElementById(_p_id);
  if(_v_tr.old_class==null)
  {
   if(_v_tr.className==null) _v_tr.old_class='';
   else _v_tr.old_class=_v_tr.className;
  }
  if(_v_tr.className=='dict_trd')
   _v_tr.className=_v_tr.old_class;
  else _v_tr.className='dict_trd';
 }
/* ---------------------------- */
 function _if_set_value(_p_element,_p_value)
 {
  if(_p_element!='')
  {
   _v_element=document.getElementById(_p_element);
   _v_element.value=_p_value;
  }
 }
/* ---------------------------- */
 function _if_form_action(_p_form,_p_url,_p_element,_p_value)
 {
  _v_form=document.getElementById(_p_form);
  _if_set_value(_p_element,_p_value);
  if(_p_url!='') _v_form.action=_p_url;
  _v_form.submit();
  return false;
 }
/* ---------------------------- */
 function _if_show_hide_div(_p_id)
 {
  var _v_div=document.getElementById(_p_id);
  if(_v_div==null) return;
  if(_v_div.style.display!='block') _v_div.style.display='block';
  else _v_div.style.display='none';
 }
/* ---------------------------- */
 function _if_show_big_image(_p_num_aim,_p_num_art)
 {
   var _v_div=document.getElementById('bimage_overlay');
   if(_v_div==null) return;
   _v_body=_if_body_measure();
   xajax__if_x_create_image(_p_num_aim,_p_num_art,_v_body.width,_v_body.height,'true');
 }
/* ---------------------------- */
 function _if_body_measure()
 {
  var _v_body={};  
  if(window.innerWidth)
  {// Все браузеры кроме IE  
   _v_body.width=window.innerWidth;  
   _v_body.height=window.innerHeight;  
  } 
  else if (document.documentElement && document.documentElement.clientWidth)
  {  
 // Эти ф-ции для IE6 и документов с объявлением DOCTYPE  
   _v_body.width=document.documentElement.clientWidth;  
   _v_body.height=document.documentElement.clientHeight+document.documentElement.scrollTop;
  } 
  else if (document.body.clientWidth)
  {  
 // Эти ф-ции для IE4, IE5 и IE6 без объявления DOCTYPE  
   _v_body.width=document.body.clientWidth;  
   _v_body.height=document.body.clientHeight+document.body.scrollTop;  
  } 
  return _v_body;
 }
