function openSite(winUrl,winName,width,height,resizable,scrollbars,status,toolbar,menubar,location1)
{
        if (width >= screen.width)  
        {   
            width1 = screen.availWidth-50;
            if(height > screen.height)
            {
                height1 = screen.availHeight-200;
            }
            else 
            {
                height1 = height;
            }
            fenetre = window.open(winUrl, winName, "height=" + height1 + ",width=" + width1 + ",resizable=" + resizable + ",scrollbars=" + scrollbars + ",status=" + status + ",toolbar=" + toolbar + ",menubar=" + menubar + ",location=" + location1);
            widthTmp = ((screen.availWidth - width1) / 2);
            heightTmp = ((screen.availHeight - height1) / 2);
            window.fenetre.moveTo(widthTmp,(heightTmp));
            
        }
        else if (height > screen.height)  
        {    
            if(width >= screen.width)
            {
                width1 = screen.availWidth-50;
            }
            else 
            {
                width1 = width;
            }
            height1 = screen.availHeight;
            fenetre = window.open(winUrl, winName, "height=" + height1 + ",width=" + width1 + ",resizable=" + resizable + ",scrollbars=" + scrollbars + ",status=" + status + ",toolbar=" + toolbar + ",menubar=" + menubar + ",location=" + location1);
            widthTmp = ((screen.availWidth - width1) / 2);
            heightTmp = ((screen.availHeight - height1) / 2);
            window.fenetre.moveTo(widthTmp,(heightTmp));
            
        }
        else
        {
            fenetre = window.open(winUrl, winName, "height=" + height + ",width=" + width + ",resizable=" + resizable + ",scrollbars=" + scrollbars + ",status=" + status + ",toolbar=" + toolbar + ",menubar=" + menubar + ",location=" + location1);
            widthTmp = ((screen.availWidth - width) / 2);
            heightTmp = ((screen.availHeight - height) / 2);
            window.fenetre.moveTo(widthTmp,(heightTmp));
        }
        window.fenetre.focus();
}
