if (typeof(autodemo) != 'object')
{
    autodemo = {
        launch: function(url, width, height, name, scroll, resize, ret)
        {
            var w;
            if (width && height)
            {
               	var L = (screen.width/2)-(width/2);
				var T = (screen.height/2)-(height/2);
				var params = ''
                params += 'top=' + T;
				params += ',left=' + L;
				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;
        }
    }
}