How to set top and left position attribut (for dialog)

How to set top and left position attribut (for dialog)

Hi all,

I memorize the values position of a dialog ((top, left), width and height) and set them when user return to the page (dialog on same place)

I can   initialize the   width and height   .  

But I can not set  position ( top and left ) . Does anyone have the answer ? 


Thank's for your help


YVO


<script> 

var dialog_window_1_top     = <?php echo $_SESSION['dialog_window_1']['win_top']; ?>;

var dialog_window_1_left    = <?php echo $_SESSION['dialog_window_1']['win_left']; ?>;

var dialog_window_1_width   = <?php echo $_SESSION['dialog_window_1']['win_width']; ?>;

var dialog_window_1_height  = <?php echo $_SESSION['dialog_window_1']['win_height']; ?>;

...

$('#dialog_window_1').dialog({

        open: function(event, ui) { $(".ui-dialog-titlebar-close").hide(); },

        width: dialog_window_1_width,

        height: dialog_window_1_height,


??????? to set  dialog_window_1_top   and  dialog_window_1_left    with position...