function PopUpWindow( _url, _name, _width, _height, _features){var window_features = 'height=' + _height + ',width=' + _width + ',top=' + popWindowObject.get_top_distance(_height, true) + ',left=' + popWindowObject.get_left_distance(_width, true) + ',' + _features;var w = window.open(_url, _name, window_features);if(w && w.open){w.focus();};};var popWindowObject ={get_left_distance:function (pop_width, bln_maximise){var _w = this.get_window_width(bln_maximise);var div = 2;return (_w / div) - (pop_width / div);},get_top_distance:function (pop_height, bln_maximise){var _h = this.get_window_height(bln_maximise);var div = 2;return (_h / div) - (pop_height / div);},get_window_height:function (bln_maximise){var ret_val = 1024;if(bln_maximise){ret_val = screen.height;}else{if(window.self&&self.innerHeight){ret_val = self.innerHeight;};if(document.documentElement&&document.documentElement.clientHeight){ret_val = document.documentElement.clientHeight;};};return ret_val;},get_window_width:function (bln_maximise){var ret_val = 800;if(bln_maximise){ret_val = screen.width;}else{if(window.self&&self.innerWidth){ret_val = self.innerWidth;};if(document.documentElement&&document.documentElement.clientWidth){ret_val = document.documentElement.clientWidth;};};return ret_val;}};