/*
        ClassAd javascript
*/


/*
        Open a popup window
*/
function openWindow(winUrl, winWidth, winHeight, winArgs, winName)        {

        if(winUrl==null)        { winUrl = ''; }
        if(winWidth==null || typeof winWidth != 'number')        { winWidth = 600; }
        if(winHeight==null || typeof winHeight != 'number')                { winHeight = 400; }
        if(winName==null)        { winName = 'ctsWin'; }

        winArgs = "width="+winWidth+",height="+winHeight+","+winArgs;

        openWin = window.open(winUrl,winName,winArgs);
        openWin.focus();
        //return false;
}

/*
        Open window for detailed picture viewing
*/
function openPictureWin()        {
        openWindow('',900,650,'location=no,menubar=yes,titlebar=no,scrollbars=yes,resizable=yes','detailPictures');
}