The following is JavaScript to be used in a function:
Note, I have 1's and 0's instead of yes and no.
var theTop=((screen.height/2)-(theHeight/2))/2; var theLeft=(screen.width/2)-(theWidth/2); var features = 'height=600,width=800,top='+theTop+',left='+theLeft+',toolbar=1,Location=0,Directories=0,Status=0,menubar=1,Scrollbars=1,Resizable=1';
window.open(in_uri, WindowName, features);
var theTop=((screen.height/2)-(theHeight/2))/2;
var theLeft=(screen.width/2)-(theWidth/2);
var features = 'height=600,width=800,top='+theTop+',left='+theLeft+',toolbar=1,Location=0,Directories=0,Status=0,menubar=1,Scrollbars=1,Resizable=1';
window.open(in_uri, WindowName, features);