		 function openCenteredWindow(url, name, resizeable, width, height , toolbar )
    {
        var resize = '';
        var showtoolbar='no,';
        var newWin = null;
        var screenWidth = screen.availWidth;
        var screenHeight = screen.availHeight;
        var xCoordinate = 0;
        var yCoordinate = 0;

        if (resizeable) {
            resize = 'resizable,';
        }


        if (toolbar) { showtoolbar = 'yes,'; }

        xCoordinate = (screenWidth - width - 10) * .5;
        yCoordinate = (screenHeight - height - 30) * .5;

        // from builder.com: "10 pixels for accumulative chrome width and 30 pixels for chrome height are general measurements that accommodate both IE and Communicator, not precise chrome measurements of either."

        newWin = window.open(url, name,'scrollbars=yes,menubar='+showtoolbar+'toolbar='+showtoolbar + resize + 'width=' + width + ',height=' + height + ',left=' + xCoordinate + ',top=' + yCoordinate);

        newWin.focus();
    } // end of openCenteredWindow
	
	
//on click event handler

pixWindow = null;

function openWindow(theURL,winName,features) {

                pixWindow = window.open(theURL,winName,features);
                                
                pixWindow.focus();


        }


