<!--
var newwindow;
function pibpreview(item)
{
//    var url = 'https://firebrnr.yi.org/New.Site/php/program.php?material=' + item;
    var url = 'http://www.girls-explore.com/program.php?material=' + item;
    // why substract 72px?  somehow it overshoots by 22px, so this gives me a 50px margin
    var winheight = screen.availHeight - 72;
    if ( winheight < 703 ) { winheight = screen.availHeight - 72; }
    else winheight = 703;
    newwindow = window.open(url,'mywindow','top=0,left=0,width=500,height=' + winheight + ',location=0,status=0,scrollbars=1,resizable=1');
    if (window.focus) {newwindow.focus()}
}
//-->
