function changeClass(obj, new_class)
{
	obj.className = new_class;
}

function changeBgColor(obj, new_color)
{
	obj.style.backgroundColor=new_color;
}

function changePic(name, pic)
{
	name.src = pic;
}

function makePopup(name)
{
	window.open('', name, 'width=' + (screen.width / 3) + ', height=' + (screen.height / 2) + ', scrollbars=yes').moveTo(screen.width / 3, screen.height / 4);
}

function popup(url, name)
{
  var x=((screen.width-250)/2);
  var y=((screen.height-250)/2);
	kodaOkna = "<html>" +
  "<head>" +
  "<title>"+name+"</title>" +
  "</head>" +
  "<body>" +
  "<a href='javascript:window.close()'><img src='" + url + "' border=\"0\"/></a>" +
  "</body>" +
  "</html>";
  okence = window.open("",name,'height=250,width=250,screenX='+x+', screenY='+y+',top='+y+',left='+x);
  okence.document.write(kodaOkna);
  okence.document.close();
}
