function todo(){
	this.action=new Array();
	this.execute=function(){for(var i in this.action){
		try{todo.action[i]();}catch(er){alert('todo >> "'+er.message+'" in "'+er.fileName+'" on "'+er.lineNumber+'"');}
	}};
	var onLoadAction=function(o){return function(){o.execute();}}(this);
	if(typeof document.attachEvent!='undefined')window.attachEvent('onload',onLoadAction);
	else window.addEventListener('load',onLoadAction,false);
};

todo.prototype.onload=function(func){this.action[this.action.length]=func;};
todo=new todo();

todo.onload(function(){selectedRows()});

function openWindow(name, href, width, height, scrollbar){
	FLS=window.open(href, name, "width="+width+", height="+height+",scrollbars="+scrollbar+", resizable=no,left=100,top=100");
	FLS.focus();
return false;
}

function selectedRows(){
    var tables = document.getElementsByTagName('TABLE');
    for(i=0; i<tables.length; i++){
	if(tables[i].className == "productionsTable"){
	    //перебираем tr
	    var trs = tables[i].getElementsByTagName('TR');
	    for(t=0; t<trs.length; t++){
		trs[t].onmouseover = function(){this.className='rowSel'};
		trs[t].onmouseout = function(){this.className=''};
	    }
	}
    }
}


function downlodsFontTable(obj, select_id){

   sel_obj = document.getElementById(select_id);

   FLS=window.open(sel_obj.options[sel_obj.selectedIndex].value, 'pdf_font');
   FLS.focus();

   return false;
}
