if (typeof(autodemo) != 'object')
{
    autodemo = {
        launch: function(url, width, height, name, scroll, resize, ret)
        {
            var w;
            if (width && height)
            {
                var params = ''
                params += 'width=' + width;
                params += ',height=' + height;
                params += ',resizable=' + (resize ? 'yes' : 'no');
                params += ',scrollbars=' + (scroll ? 'yes' : 'no');
                params += ',toolbar=no';
                params += ',menubar=no';
                params += ',status=no';
                params += ',location=no';
                params += ',directories=no';
                w = window.open(url, (!name ? '' : name), params);
            }
            else
            {
                if (!name)
                {
                    w = window.open(url);
                }
                else
                {
                    w = window.open(url, name);
                }
            }

            if (ret) return w;
            return false;
        }
    }
}