function MyWindow(width, height, view, fnc, object, parameters, parameters_ext) {
    this.width = width;
    this.height = height;
    this.view = view;
    this.object = object;
    this.fnc = fnc;
    this.window = 'null';
    this.reload = 'null';
    this.aj_parameters = '';
    this.aj_parameters_ext = '';
    this.open = function() {
        this.aj_parameters = {
            'data[Window][view]':this.view,
            'data[Window][object]':this.object,
            'data[Window][fnc]':this.fnc,
            'data[Window][other]':this.aj_parameters,
            'data[Window][other_ext]':this.aj_parameters_ext
        };
		
        if(this.window == 'null' || this.reload != 'null') {
            this.window = new UI.Window(
                {
                    id: "forgotPasswordWindow",
                    theme: "offshoreworkmates",
                    //shadowTheme: "drop_shadow",
                    //shadow: true,
					//resizable: false,
                    activeOnClick: false,
                    draggable: false,
                    width:this.width,
                    height:this.height
					/*,
			                    show: Element.appear,
			                    hide: Element.fade
					*/
                }
            ).show().center().setAjaxContent(
                "/pages/ajax_windows/",
                {
                    evalScripts:true,
                    onCreate: function() {
                        this.setContent('<div class="message" style="margin-top: 35px; margin-left: 205px">Please wait...</div><div class="spinner"></div>');
                    },
                    parameters:this.aj_parameters
                }
            );
        } else {
            this.window.show();
            this.window.center();
        }
    };
    this.close = function(){
        this.window.destroy();
        //this.window = 'null';
    };
}