//* Open url in a new centered window                            *//* -------------------------------------------------------------*//* url - url of page to open                                    *//* w   - width of new window                                    * //* h   - height of new window                                   *//* [scrollbars] - optional, yes to display scrollbars else no   *//* [status] - optional, yes to show the browser status else no  *//* [name] - optional, name of the new window                    *//****************************************************************function openCenter(url, w, h, scrollbars, status, name, resizable){       var height = h;       var width = w;       var top = screen.height / 2 - height / 2;       var left = screen.width / 2 - width / 2;       if(scrollbars == null)          scrollbars = "yes";       if(status == null)          status = "yes";       if(name == null)          name = "cWindow";         if(resizable == null)          resizable = "no";                   var browserString = "status=" + status + ",resizable=" + resizable + ",toolbar=no,directories=no,location=no,scrollbars=" + scrollbars + ",width=" + width + ",height=" + height + ",top=" + top + ",left=" + left;       cWindow = window.open(url, name, browserString);     }