﻿try
{
if (!EC) var EC = new Object();

EC.Window = new Object();

EC.Window.popUp = function(url, name, options)
{
   if (!name)
      name = "_blank";
   if (!options)
      options = "";

   var w = window.open(url, name, options);

   w.focus();

   // Do not return window object, href="javascript:EC.Window.popup" will go to the object after the window is popup
  // return w;
}

EC.Window.popUpSize = function(url, name, width, height)
{
   EC.Window.popUp(url, name, 'toolbar=1,scrollbars=1,location=1,status=1,menubar=1,resizable=1,width=' + width + ',height' + height);
}

}
catch(err)
{
}