  // Open new pop-up window with url, width and height

  function openWindow(url,width,height) {

   var left = (window.screen.width - width) / 2;

   var top = (window.screen.height - height) / 2;

   var parameters = 'left=' + left + ',top=' + top + ',width=' + width + ',height=' + height + ',toolbar=0,menubar=0,location=0,status=0,scrollbars=1,resizable=0';

   window.open(url,'login',parameters);

  }
