function openWin(file, title, params)
  {
  w = window.open(file, title, params);
  }
  
function changecolor(id,color) {

eval('document.getElementById("'+id+'").className="' + color + '";');

}

function SelOn(Elem) {
document.getElementById(Elem).style.background = '#FDEA00';
}
function SelOff(Elem) {
document.getElementById(Elem).style.background = '';
}

function SelOnbody(Elem) {
var col1=Math.floor(Math.random()*255);
var col2=Math.floor(Math.random()*255);
var col3=Math.floor(Math.random()*255);
var mystr='rgb('+col1+','+col2+','+col3+')';
//alert(mystr);
document.getElementById(Elem).style.background = mystr;

}


function albl(Elem) {	
//Используется для отображения невидимого div
//alert(document.getElementById('dno').style);
		if (document.getElementById(Elem).style.display=='none') {
		document.getElementById(Elem).style.display='block';
		
		} else {
		document.getElementById(Elem).style.display='none';
		}
}
