// lazy shortcut
d=document;

function popprint(url,name,width,height){
var t=(screen.height-height)/2;
var l=(screen.width-width)/2;
window.open(url,name,'width='+width+',height='+height+',top='+t+',left='+l+',resizable=1,location=1,status=1,scrollbars=1,toolbar=1');
}

// the actual things being opened making use of the above two functions

function poppass(screening_id,pass_width,pass_height,text_top,text_left,text_width,text_height){
popprint ('pop_pass.php?screening_id='+screening_id+'&pass_width='+pass_width+'&pass_height='+pass_height+'&text_top='+text_top+'&text_left='+text_left+'&text_width='+text_width+'&text_height='+text_height,'pass',pass_width+100,500);
}
