function nWindow(oFile, wWidth, wHeight){

var cWidth=window.screen.width;
var cHeight=window.screen.height;

if(cHeight && cWidth){
        var leftOffset=Math.ceil((cWidth-wWidth)/2);
        var topOffset=Math.ceil((cHeight-wHeight)/2);
        window.open(oFile, "met_photo", 'width='+wWidth+',height='+wHeight+',top='+topOffset+',left=' + leftOffset);
        }
return false;
}
