var globCurrentIdName = "graph";var globOldIdName = "table";/* JS Util Library (c) AVANSITE (www.avansite.com) */try{var s='' + window.location; window.avsIsDebug = s.match(/\#dbg/);} catch(e) {window.avsIsDebug = false;} function ge(elem_id) {return document.getElementById (elem_id);}function he (error) {if (window.avsIsDebug) {if(error.description) alert (error.description); else alert (error);} } function findElementsByClassname (classname, root) {   var res = new Array;   var count = 0;   if (!root) root = document.documentElement;   for (var item = root.firstChild; item; item = item.nextSibling) {     if (typeof (item.className) == 'string'          && item.className.match(new RegExp('(^| )'+classname+'($| )', 'ig')))        res[count++] = item;     var subel = findElementsByClassname (classname, item);     var subkey;     for (subkey in subel) res[count++] = subel[subkey];   }   return res; }/*  \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 outerHtml \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430.  attribs - \u0430\u0441\u0441\u043E\u0446\u0438\u0430\u0442\u0438\u0432\u043D\u044B\u0439 \u043C\u0430\u0441\u0441\u0438\u0432.  iHtml - \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u0435, \u043F\u0440\u0438 false \u0441\u043E\u0437\u0434\u0430\u0435\u0442\u0441\u044F \u043E\u0434\u0438\u043D\u043E\u0447\u043D\u044B\u0439 \u0442\u044D\u0433.*/ function genElem (tagName, attribs, iHtml) {  var res = '<' + tagName;  for (var attribName in attribs) {    var attribValue = attribs[attribName];    if (attribValue) {      if (typeof('attribValue') == 'boolean') attribValue = attribName;       res = res + ' ' + attribName + '="' + attribValue.replace(/"/g, '&quot;') + '"';    }  }  if (iHtml) {    if (typeof(iHtml) == 'boolean' && !iHtml) res += '/ >';     else res += '>' + iHtml + '</' + tagName + '>';   } else res += '>' + '</' + tagName + '>';  return (res);}function addStyle (specifier, rule, canHtml) {  if (document.styleSheets && document.styleSheets.length > 0) {   if (document.all)      document.styleSheets[0].addRule (specifier, rule, 0);      else {        //alert (specifier + ' {' + rule + '}' );        document.styleSheets[0].insertRule (specifier + ' {' + rule + '}', 0);      }  } else {    if (canHtml) document.write ('<style type="text/css">' + specifier + ' {' + rule + '}' + '</style>');  }}function SwitchGraph(linkNumber, currentIdName, oldIdName, currentNumber, elementsCount){	try	{		if(oldIdName != "")		{			globOldIdName = oldIdName;			globCurrentIdName = currentIdName;		}		for(i=1; i<=elementsCount; i++)			document.getElementById("link"+currentNumber+"_"+i).className = "CNonActiveButton";		document.getElementById("link"+linkNumber).className = "CActiveButton";				for(i=1; i<=elementsCount; i++)			document.getElementById(globCurrentIdName+currentNumber+"_"+i).style.display = "none";					for(i=1; i<=elementsCount; i++)				document.getElementById(globOldIdName+currentNumber+"_"+i).style.display = "none";		document.getElementById(globCurrentIdName+linkNumber).style.display = "block";	}	catch(err)	{		return;	}}