/***********************************************
 window.js - javascript function to open a new,
 centered window of a size determined by the 
 values passed to the function. by Ian Wotkun.
 **********************************************/

function openWindow(url, width, height)
{
    var left = parseInt((screen.availWidth/2) - (width/2));
    var top = parseInt((screen.availHeight/2) - (height/2));

    var windowFeatures = "width=" + width + ",height=" + height +
    ",resizable=no,titlebar=no,status=no,menubar=no, left=" + left +
    ",top=" + top + ",screenX=" + left + ",screenY=" + top;

    var myWindow = window.open(url, "subWind", windowFeatures);
}

function openComments(url, width, height)
{
    var left = 100;
    var top = 50;

    var windowFeatures = "width=" + width + ",height=" + height +
    ",resizable=no,scrollbars=yes,titlebar=no,status=no,menubar=no, left=" + left +
    ",top=" + top + ",screenX=" + left + ",screenY=" + top;

    var myWindow = window.open(url, "subWind", windowFeatures);
}
function pho(link, width, height)
{
    if(!width){width = 640;}
    if(!height){height = 480;}
    var photoWindow = window.open(link,"photo",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width='+width+',height='+height);

}

