function openSimpollPopup(url_key){ var leftVal = (screen.width / 2) - 320; var topVal = (screen.height / 2) - 240; window.open('http://simpoll.ru/run/survey/'+url_key,'new','width=640,height=480,scrollbars=1,left='+leftVal+',top='+topVal); }