window.open(..., ..., "width=700,height=500,left=" + ((screen.availWidth-700)/2) + ",top=" + ((screen.availHeight-500)/2));