function iZoom(path, obj)
{
    var xwin = parseInt(screen.availWidth / 2)-150;
    var ywin = parseInt(screen.availHeight / 2)-100;

    zwin = window.open("popup/popup.php?url="+path,"","left="+xwin+",top="+ywin+",scrollbars=no");
    zwin.moveTo(xwin,ywin);
}

function window_open(domain){
window.open(domain,'Info','width=500,height=300,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes,menuebar=no');
}

function imageZoom(maxWidth, maxHeight)
{
    this.maxWidth = maxWidth || 100;
    this.maxHeight = maxHeight || 100;
    this.winRef = false;
    
    this.zoom = function(imgSource)
    {   
        var x = parseInt( (screen.availWidth / 2) - (this.maxWidth / 2) );
        var y = parseInt( (screen.availHeight / 2) - (this.maxHeight / 2) );
                 
        this.winRef = window.open("", "", "resizable=no,left="+x+",top="+y+",width="+this.maxWidth+",height="+this.maxHeight+",scrollbars=no");
        this.winRef.moveTo(x, y);
        
        this.html  = '<html>';
        this.html += '<body style="margin: 0px; background-color: #ffffff" onload="self.resizeTo(document.images[0].offsetWidth + 6, document.images[0].offsetHeight + 32)">';
        this.html += '<img src="'+imgSource+'" width="'+this.maxWidth+'">';                             
        this.html += '</body>';
        this.html += '</html>';
        
        this.winRef.document.open();
        this.winRef.document.write(this.html);
        this.winRef.document.close();

        this.winRef.focus();
    }   
}