/*
opening centered popups
*/

function CenterWindow(addy,width,height,params) {
leftPos = 0
topPos = 0
hpulka = 0
wpulka = 0
wpulka = (width / 2)
hpulka = (height / 2)
if (screen) {
leftPos = (screen.width / 2) - wpulka
topPos = (screen.height / 2) - hpulka
}
if (!params) {
params = '';
} else {
params = ', ' +params; 
}
ElementWindow = window.open(addy,'ElementWin','width='+width+',height='+height+',left='+leftPos+',top='+topPos + params)
} 	

/*
end - opening centered popups
*/