function OpenWindow(url,name,x,y) {
 var vlevo=(screen.width - x)/2
 var vrsek=(screen.height - y)/2
 window.open(url, name, "width="+x+", height="+y+", left="+vlevo+", top="+vrsek);
}