<!--
// подсветка строк таблицы v 0.9 (почти релиз :)
// не срабатывает если у строк/ячеек стоит bgColor 
// или в самих тегах прописан style="background-color:#цвет"

var light_color = '#F4F9F6'; //цвет, на который подсвечиваются строки/////////var light_color = '#E7F5FD';-temp
var out_color = '';          //цвет, возвращаемый строкам (т.е. тот, который стоял)
var _wind=window,_dd=document;
//_wind.onerror = null;
//_wind.onload=function(td){setEvents('hilighttable')} - вызавает ошибку вместе с tooltips.js,
// т.к. там тоже стоит onload функции
// если подключать один этот файл - раскомментировать.

function setEvents(tableindex)
{

var tableindex;

// если id="hilighttable" стоит в теге TBODY
// так удобнее - не подсвечивается THEAD с заголовком таблицы
//td=_dd.all?_dd.all:_dd.getElementsByTagName("tbody");

// если id="hilighttable" стоит в теге TABLE
td=_dd.all?_dd.all:_dd.getElementsByTagName("table");
    taLength=td.length;
    for(var it=0;it<taLength;it++)
    {    
    var tb=td[it].getAttribute("id");
    
      if (tb&&(tb.indexOf(tableindex)!=-1)) {
      var table1 = document.getElementById(tb);


if (table1 != null) {
var table = table1;
var len = table.rows.length;
for (var i = 0; i < len; i++)
{
var tr = table.rows[i];

tr.onmouseover = function omo() {this.bgColor = light_color;};
tr.onmouseout = function omo() {this.bgColor = out_color};
}

}


}
}
}

function jumpMenu(first,el)
{
 var val=el.options[el.selectedIndex].value;
 document.location.href=first+val+'.html';
}

function window_open(url,sizex,sizey,r,scrollb) {
var r,titlepage,scrollb;
if (!scrollb) scrollb=0;
//r=Math.round(Math.random() * 10000);
window.open (url, r, 'Toolbar=0, Titlebar=0, Location=0, Directories=0, Status=0, Menubar=0, Scrollbars='+scrollb+', Resizable=0, Copyhistory=1, width='+sizex+',height='+sizey);
}


function winopen()
{
var name1,name2;
//var 
//var thisarea = document.getElementById('content');
var hrefss = document.links;
var len = hrefss.length;
//var testdiv = document.getElementById('content');

for (var i = 0; i < len; i++)
{
var hr = hrefss[i];

if (hr.name=='newwin') {
var thishr = hr; 
thishr.onclick = function popups() {



var strr = new String;
strr = this.href;

var widthwin = new String;
widthwin = strr.replace(/.+(width=)/," ");
widthwin = widthwin.replace(/(&height=)+\d{0,}/," ");
//alert(widthwin);
//widthwin =100+widthwin;

var heightwin = new String;
heightwin = strr.replace(/.+(height=)/," ");
//testdiv.innerHTML += widthwin+'<br>';

var widthwin1 = 300;
widthwin1 = widthwin/1;
//alert(widthwin1);
var heightwin1 = 100;
heightwin1 = heightwin/1;
window_open(this.href, widthwin1, heightwin1,'10');
}
}

}
}

function mail_address(user,domain,zone) {
document.write(user+'@'+domain+'.'+zone);
}

function mail_send(user,domain,zone) {
document.location.href = 'mailto:'+user+'@'+domain+'.'+zone;
}

//-->

