Jquery dialog to open multiple windows
<p>I'm trying to make system of multiple dialogs in one page using jquery dialog... </p>

<p>Functions looks like... </p>

<pre><code> function open_w(id){

         $('.opened').dialog('close');
         $(id).addClass('opened');
         $(id).dialog({position: 'center',  modal:true, width: '750px' });
           };


     function close_w(){
     $('.opened').dialog('close');
     $('.opened').removeClass('opened');
      };
</code></pre>

<p>As you see passing the ID opens me that windows, but before open close me old windows.. When i open it fist time everything is good.. But Next time it's doesn't want open</p>

<p>Where is mistake?</p>
