sw = new Image;
img = new Array;
img[0] = new Image;
img[1] = new Image;
img[0].src = "images/ru_on.gif";
img[1].src = "images/en_on.gif";


function swap(num)
{
  eval('sw.src = document.images["img' + num + '"].src');
  eval('document.images["img' + num + '"].src = img[' + num + '].src');
  eval('img[' + num + '].src = sw.src');
}

function opwi(addr)
{
NewWindow = window.open(addr, 'sample', 'toolbar=no, titlebar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width=1000, height=700')
NewWindow.focus()
}

function newdoc (filename, wname)	
{
	   	newWindow = window.open(filename, wname, "copyhistory,height=300,width=400, scrollbars,resizable");
}