var actButtonsArr = null; //\u041C\u0430\u0441\u0441\u0438\u0432 \u0430\u043A\u0442\u0438\u0432\u043D\u044B\u0445 \u043A\u043D\u043E\u043F\u043E\u043A, \u0434\u043B\u044F \u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u044F \u0433\u0440\u0430\u0444\u0438\u043A\u043E\u0432var actGraphsArr = null; //\u041C\u0430\u0441\u0441\u0438\u0432 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0432\u0443\u044E\u0449\u0438\u0445 \u0430\u043A\u0442\u0438\u0432\u043D\u044B\u0445 \u043E\u0431\u043B\u0430\u0441\u0442\u0435\u0439 - \u0433\u0440\u0430\u0444\u0438\u043A\u043E\u0432/*        UTIL.JS        */var _util_debug;_util_debug = 0;           function ge(elem_id) {/* \u0432 Mozilla \u0438 Netscape \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0441 \u0437\u0430\u0434\u0430\u043D\u043D\u044B\u043C \u0438\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u043E\u043C \u043C\u043E\u0436\u043D\u043E \u0442\u043E\u043B\u044C\u043A\u043E   \u043E\u0434\u0438\u043D\u043C \u0441\u043F\u043E\u0441\u043E\u0431\u043E\u043C, \u0447\u0442\u043E \u0438 \u0434\u0435\u043B\u0430\u0435\u0442 \u044D\u0442\u0430 \u0444\u0443\u043D\u043A\u0446\u0438\u044F */         return document.getElementById (elem_id);      }      function dw (text) {        document.write (text);        return false;}/* \u0423\u043F\u0440\u0430\u0432\u043B\u044F\u0435\u0442 \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435\u043C \u043E\u0431\u044A\u0435\u043A\u0442\u0430 \u0441 \u0437\u0430\u0434\u0430\u043D\u043D\u044B\u043C \u0438\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u043E\u043C */      function disp (id, mode) {         if (elem = ge(id)) {          if (elem.tagName && elem.tagName == 'TABLE' && mode == 'block')           {            try {              elem.style.display = 'table';            }            catch (e) {elem.style.display = 'block';}          } else elem.style.display = mode;         }         return false;      }            function setGlobalTop (elem, y) {         elem.style.top = y - globalTop (elem) + elem.offsetTop + 'px';         return y;      }      function setGlobalLeft (elem, x) {         elem.style.left = x - globalLeft (elem) + elem.offsetLeft + 'px';         return x;      }            function dispCoords (elem) {/*  \u0412 \u043E\u0442\u043B\u0430\u0434\u043E\u0447\u043D\u044B\u0445 \u0446\u0435\u043B\u044F\u0445: \u0432\u044B\u0432\u043E\u0434\u0438\u0442 \u043B\u043E\u043A\u0430\u043B\u044C\u043D\u044B\u0435 \u0438 \u0433\u043B\u043E\u0431\u0430\u043B\u044C\u043D\u044B\u0435 \u043A\u043E\u043E\u0440\u0434\u0438\u043D\u0430\u0442\u044B \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430, \u0430     \u0442\u0430\u043A\u0436\u0435 \u0435\u0433\u043E \u0432\u043D\u0435\u0448\u043D\u0438\u0435 \u0440\u0430\u0437\u043C\u0435\u0440\u044B */         alert ('offsetLeft :' + elem.offsetLeft                  + '; offsetTop: ' + elem.offsetTop                 + '\n\r'+ 'offsetWidth: ' + elem.offsetWidth                 + '; offsetHeight: ' + elem.offsetHeight                + '\n\r' + 'globalTop: ' + globalTop (elem)                  + '; globalLeft: ' + globalLeft (elem) );         return false;      }function globalLeft(eElement){   if (!eElement && this)                    // if argument is invalid   {                                         // (not specified, is null or is 0)      eElement = this;                       // and function is a method   }                                         // identify the element as the method owner   var DL_bIE = document.all ? true : false; // initialize var to identify IE   var nLeftPos = eElement.offsetLeft;       // initialize var to store calculations   var eParElement = eElement.offsetParent;  // identify first offset parent element   while (eParElement != null)   {                                         // move up through element hierarchy      if(DL_bIE)                             // if browser is IE, then...      {         if( (eParElement.tagName != "TABLE") && (eParElement.tagName != "BODY") )         {                                   // if parent is not a table or the body, then...            nLeftPos += eParElement.clientLeft; // append cell border width to calcs         }      }      else                                   // if browser is Gecko, then...      {         if(eParElement.tagName == "TABLE")  // if parent is a table, then...         {                                   // get its border as a number            var nParBorder = parseInt(eParElement.border);            if(isNaN(nParBorder))            // if no valid border attribute, then...            {                                // check the table's frame attribute               var nParFrame = eParElement.getAttribute('frame');               if(nParFrame != null)         // if frame has ANY value, then...               {                  nLeftPos += 1;             // append one pixel to counter               }            }            else if(nParBorder > 0)          // if a border width is specified, then...            {               nLeftPos += nParBorder;       // append the border width to counter            }         }      }      nLeftPos += eParElement.offsetLeft;    // append left offset of parent      eParElement = eParElement.offsetParent; // and move up the element hierarchy   }                                         // until no more offset parents exist   return nLeftPos;                          // return the number calculated}function globalTop(eElement){      if (!eElement && this)                    // if argument is invalid   {                                         // (not specified, is null or is 0)      eElement = this;                       // and function is a method   }                                         // identify the element as the method owner   var DL_bIE = document.all ? true : false; // initialize var to identify IE         var nTopPos = eElement.offsetTop;         // initialize var to store calculations   var eParElement = eElement.offsetParent;  // identify first offset parent element   while (eParElement != null)   {                                         // move up through element hierarchy      if(DL_bIE)                             // if browser is IE, then...      {         if( (eParElement.tagName != "TABLE") && (eParElement.tagName != "BODY") )         {                                   // if parent a table cell, then...            nTopPos += eParElement.clientTop; // append cell border width to calcs         }      }      else                                   // if browser is Gecko, then...      {         if(eParElement.tagName == "TABLE")  // if parent is a table, then...         {                                   // get its border as a number            var nParBorder = parseInt(eParElement.border);            if(isNaN(nParBorder))            // if no valid border attribute, then...            {                                // check the table's frame attribute               var nParFrame = eParElement.getAttribute('frame');               if(nParFrame != null)         // if frame has ANY value, then...               {                  nTopPos += 1;              // append one pixel to counter               }            }            else if(nParBorder > 0)          // if a border width is specified, then...            {               nTopPos += nParBorder;        // append the border width to counter            }         }      }      nTopPos += eParElement.offsetTop;      // append top offset of parent            eParElement = eParElement.offsetParent; // and move up the element hierarchy   }                                         // until no more offset parents exist   return nTopPos;                           // return the number calculated}function isparent (elem, parent) {      return _isparent (elem, parent);}function _isparent (elem, parent) {      if (!elem) return false;      if (elem.parentNode == parent) return true;      return _isparent (elem.parentNode, parent);}function gotOut (element, event) {     var ispar;     te = (document.all)? window.event.toElement : event.relatedTarget;     ispar = (isparent (te, element));     return element != te && !ispar;  }function isVis (elem) { // \u041F\u0440\u043E\u0432\u0435\u0440\u044F\u0435\u0442, \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044F \u043B\u0438 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u043D\u0430 \u044D\u043A\u0440\u0430\u043D\u0435     if (!elem) return false;     vis = (!elem.style) || (elem.style.display != 'none') && (elem.style.visibility != 'hidden');     if (!elem.parentNode) return vis; else return vis & isVis (elem.parentNode);}function keyOf (arr, value) { for (k in arr) if (arr[k] == value) return k;  return null;} function nz2 (value, valueIfNull, valueIfNotNull)/* \u0422\u0430\u043A\u0430\u044F \u0444\u0443\u043D\u043A\u0446\u0438\u044F \u0434\u043E\u043B\u0436\u043D\u0430 \u0431\u044B\u0442\u044C \u0432 \u043A\u0430\u0436\u0434\u043E\u043C \u044F\u0437\u044B\u043A\u0435! \u0412\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043F\u0435\u0440\u0432\u044B\u0439 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440, \u0435\u0441\u043B\u0438    \u043E\u043D \u043D\u0435 \u0440\u0430\u0432\u0435\u043D null, \u0438\u043D\u0430\u0447\u0435 - \u0432\u0442\u043E\u0440\u043E\u0439.       \u0415\u0441\u043B\u0438 \u0442\u0440\u0435\u0442\u0438\u0439 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440 \u043D\u0435 \u0440\u0430\u0432\u0435\u043D null, \u0442\u043E   \u043E\u043D \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044F \u0432\u043C\u0435\u0441\u0442\u043E \u043F\u0435\u0440\u0432\u043E\u0433\u043E, \u0435\u0441\u043B\u0438 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u043F\u0435\u0440\u0432\u043E\u0433\u043E \u043D\u0435 null.*/{ if (value != null) return nz2 (valueIfNotNull, value); else return valueIfNull;}/* \u0432\u0435\u0440\u0441\u0438\u044F \u0434\u043B\u044F \u043F\u0435\u0447\u0430\u0442\u0438 */function pv (logoimg, sitetitle, english, color, xtop, xcomment) {  var ct = ge('p_content');    if (!color) color = 'silver';    if (logoimg) {    var imgurl = logoimg;    if (!logoimg.match (/\http:\/\/.*/)) {      var xm2 = document.URL.match (/([^\?]+\/)+\??.*/);      if (xm2) imgurl = xm2[1] + logoimg;    }  }      if (!ct) return;    var urlShort = document.URL.match (/(http:\/\/?([^\/]+)).*/);  var d = new Date();      nwnd = window.open ();  var dHead = nwnd.document.getElementsByTagName("head");    var styleStr = "";    if (dHead.length) {    var rg = new RegExp ("\<link[^<>]*rel *= *[\'\"]?stylesheet[\'\"]? *[^<>]*\>", "gi");    var lRefs = document.getElementsByTagName("head")[0].innerHTML.match(rg);        for (var i = 0; i < lRefs.length; i++) styleStr += lRefs[i];  }  nwnd.document.write (     '<html><head>'  + '<style>.no_pv {display: none} @media print {.only_screen {display: none}}</style>'  + styleStr      + '<base href="' + document.URL + '" />'   + '</head><body id="body" style="padding: 1cm">'   + '<div style="text-align: left; margin-bottom: 10px" class="only_screen">'    + (     english?        '<a href="javascript: window.print();">[Print]</a> <a href="javascript: window.close();">[Close window]</a>'     : '<a href="javascript: window.print();">[\u041F\u0435\u0447\u0430\u0442\u044C]</a> <a href="javascript: window.close();">[\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043E\u043A\u043D\u043E]</a>'    )  + '</div>'   + '<div style="border-bottom: 2px solid '+color+'; padding-bottom: 10px; margin-bottom: 10px; text-align: left">'  +(xtop? '<img src="' + xtop + '" /><br />' : '')      +(logoimg ?       '<img src="' + logoimg + '" alt="' + sitetitle + '" />'     : '<b style="font-family: sans-serif; font-size: large">' + sitetitle + '</b>')  +(urlShort? '<br />' + urlShort[1] : '')  +(xcomment? '<p style="margin-top: 0px; font-size: 12px; color: ' + color + '">' + xcomment + '</p>' : '')    + '</div>'  + '<div class="print_body">'             + ct.innerHTML  + '</div>'  + '<div style="text-align: left; border-top: 1px solid ' + color + '; margin-bottom: 10px; text-align: left; font-size: 12px; color: darkgray; font-family: sans-serif">'  + ( english?          'Source of this doucment: <b>' + document.URL + '</b>.Copyrights: &copy;&nbsp;Metal-Courier. 1995-'+ d.getFullYear() +'. All rights reserved.Copying, reprinting or further distribution in any form by any means is only allowed while having a preliminary written approval of the copyright owner.'      : '\u0414\u0430\u043D\u043D\u044B\u0439 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B \u0432\u0437\u044F\u0442 \u043F\u043E \u0430\u0434\u0440\u0435\u0441\u0443 <b>' + document.URL + '</b>. \u0410\u0432\u0442\u043E\u0440\u0441\u043A\u0438\u0435 \u043F\u0440\u0430\u0432\u0430: &copy;&nbsp;\u041C\u0435\u0442\u0430\u043B\u043B-\u041A\u0443\u0440\u044C\u0435\u0440. 1995-'+ d.getFullYear() +'. \u0412\u0441\u0435 \u043F\u0443\u0431\u043B\u0438\u043A\u0443\u0435\u043C\u044B\u0435 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u043E\u043D\u043D\u044B\u043C \u0430\u0433\u0435\u043D\u0442\u0441\u0442\u0432\u043E\u043C "\u041C\u0435\u0442\u0430\u043B\u043B-\u041A\u0443\u0440\u044C\u0435\u0440" \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u044B \u0438 \u0434\u0430\u043D\u043D\u044B\u0435 \u044F\u0432\u043B\u044F\u044E\u0442\u0441\u044F \u0441\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0441\u0442\u044C\u044E \u0430\u0433\u0435\u043D\u0442\u0441\u0442\u0432\u0430. \u041F\u0435\u0440\u0435\u043F\u0435\u0447\u0430\u0442\u043A\u0430 \u043B\u0438\u0431\u043E \u0434\u0430\u043B\u044C\u043D\u0435\u0439\u0448\u0435\u0435 \u0438\u0445 \u0440\u0430\u0441\u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0435\u043D\u0438\u0435 \u0432 \u043B\u044E\u0431\u043E\u0439 \u0444\u043E\u0440\u043C\u0435 \u043B\u044E\u0431\u044B\u043C \u0441\u043F\u043E\u0441\u043E\u0431\u043E\u043C \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u0442\u0441\u044F \u0442\u043E\u043B\u044C\u043A\u043E \u043F\u0440\u0438 \u043D\u0430\u043B\u0438\u0447\u0438\u0438 \u043F\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0433\u043E \u043F\u0438\u0441\u044C\u043C\u0435\u043D\u043D\u043E\u0433\u043E \u0441\u043E\u0433\u043B\u0430\u0441\u0438\u044F \u0432\u043B\u0430\u0434\u0435\u043B\u044C\u0446\u0430 \u0430\u0432\u0442\u043E\u0440\u0441\u043A\u0438\u0445 \u043F\u0440\u0430\u0432.'    )  + '</div>'  + '</body></html>' );   nwnd.document.close ();}function getCheck (chkArray) {  var err;  var i;  try {    for(i = 0; i < chkArray.length; i++)       if (chkArray[i].checked) return (chkArray[i].value);  } catch (err) {alert(err);}  return null;} function setCheck (chkArray, value) {  var err;  var i;  try {    for(i = 0; i < chkArray.length; i++)       chkArray[i].checked = (chkArray[i].value == value);  } catch (err) {alert(err);}  return null;}function findCheck (chkArray, value) {  var err;  var i;  try {    for(i = 0; i < chkArray.length; i++)       if (chkArray[i].value == value) return chkArray[i];  } catch (err) {alert(err);}  return null;}function innerHTMLw (element) {   if (!element || !element.innerHTML) return false;   nwnd = window.open ();   var ihtml = element.innerHTML;   ihtml = ihtml.replace(/\</g, '&lt;').replace(/\>/g, '&gt;');   nwnd.document.write (    "<html>"   +"<head><meta http-equiv='Content-Type' content='text/html; charset=windows-1251' /></head>"   +"<body><textarea rows='40' cols='80'>"+ihtml+"</textarea></body>"   +"</html>"   );   nwnd.document.close();      }function LoadButtonsArr(){	try	{		var currButton = document.getElementById("id_b_0.1");		var currGraph = document.getElementById("id_l_0.1");		var currIndex = 0;				//\u0412\u044B\u043F\u043E\u043B\u043D\u044F\u0435\u043C \u0440\u0430\u0437\u043E\u0432\u0443\u044E \u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0443 \u043C\u0430\u0441\u0441\u0438\u0432\u0430 \u0430\u043A\u0442\u0438\u0432\u043D\u044B\u0445 \u043A\u043D\u043E\u043F\u043E\u043A \u0438 \u0430\u043A\u0442\u0438\u0432\u043D\u044B\u0445 \u0431\u043B\u043E\u043A\u043E\u0432 - \u0433\u0440\u0430\u0444\u0438\u043A\u043E\u0432		if(currGraph != null)		{			actButtonsArr = [];			actGraphsArr = [];		}						while(currGraph != null)		{			actButtonsArr[currIndex] = document.getElementById("id_b_"+currIndex+".1");			actGraphsArr[currIndex] = document.getElementById("id_l_"+currIndex+".1");								currGraph = document.getElementById("id_l_"+(++currIndex)+".1");		}	}	catch(err)	{		return;	}}	function SwitchGraph(event){	try	{		var event = event || window.event;		var clickedElem = event.target || event.srcElement;		var oldBIndex = -1;		var tmpArr1 = null;		var tmpArr2 = null;					if(clickedElem.id != "")		{			//\u041C\u0435\u043D\u044F\u0435\u043C \u0441\u0442\u0430\u0440\u0443\u044E \u043A\u043D\u043E\u043F\u043A\u0443 \u043D\u0430 \u043D\u0435 \u0430\u043A\u0442\u0438\u0432\u043D\u0443\u044E.			tmpArr1 = clickedElem.id.split("_");			tmpArr2 = tmpArr1[tmpArr1.length-1].split(".");			oldBIndex = parseInt(tmpArr2[0]);			actButtonsArr[oldBIndex].className = "CNonActiveButton";			actGraphsArr[oldBIndex].style.display = "none";								//\u0412\u044B\u0441\u0442\u0430\u0432\u043B\u044F\u0435\u043C \u043D\u043E\u0432\u0443\u044E \u0430\u043A\u0442\u0438\u0432\u043D\u0443\u044E \u043A\u043D\u043E\u043F\u043A\u0443 \u0438 \u043D\u043E\u0432\u044B\u0439 \u0430\u043A\u0442\u0438\u0432\u043D\u044B\u0439 \u0431\u043B\u043E\u043A - \u0433\u0440\u0430\u0444\u0438\u043A			clickedElem.className = "CActiveButton";			document.getElementById("id_l_"+oldBIndex+"."+tmpArr2[1]).style.display = "block";								//\u041C\u0435\u043D\u044F\u0435\u043C \u0441\u0442\u0430\u0440\u0443\u044E \u0430\u043A\u0442\u0438\u0432\u043D\u0443\u044E \u043A\u043D\u043E\u043F\u043A\u0443 \u043D\u0430 \u043D\u043E\u0432\u0443\u044E \u0438 \u0441\u0442\u0430\u0440\u044B\u0439 \u0430\u043A\u0442\u0438\u0432\u043D\u044B\u0439 \u0431\u043B\u043E\u043A - \u0433\u0440\u0430\u0444\u0438\u043A \u043D\u0430 \u043D\u043E\u0432\u044B\u0439			actButtonsArr[oldBIndex] = clickedElem;			actGraphsArr[oldBIndex] = document.getElementById("id_l_"+oldBIndex+"."+tmpArr2[1]);		}	}	catch(err)	{		return;	}}