function login()
{
      var arrayPageSize= _getPageSize();
      var _pageWidth=arrayPageSize[0];
      var _pageHeigth=arrayPageSize[1];
      var frmAction=(_pageWidth>=1280)?'http://ecommerce.rhibo.it/logon/':'http://ecommerce.rhibo.it/logon/';

window.open("http://ecommerce.rhibo.it:8080/logon/","loginwindow","width="+(_pageWidth-100)+",height="+(_pageHeigth-100)+",toolbar=0,resizable=1,scrollbars=1");
      document.getElementById('NOME FORM').action=frmAction;
      document.getElementById('NOME FORM').submit();
      return false;
}
function _getPageSize()
{
            var x,y;
            if (self.innerHeight) // all except Explorer
            {
                  x = self.innerWidth;
                  y = self.innerHeight;
           }
           else if (document.documentElement && document.documentElement.clientHeight)
                  // Explorer 6 Strict Mode
            {
                  x = document.documentElement.clientWidth;
                  y = document.documentElement.clientHeight;
            }
            else if (document.body) // other Explorers
            {
                  x = document.body.clientWidth;
                  y = document.body.clientHeight;
            }
            var arrayPageSize = new Array(x,y);
            return arrayPageSize;
}
