function openDialog(title,node,x,y) {
         $('#'+node).dialog({ 
                  width : x,
                  modal : true,
                  bgiframe : true,
                  autoOpen:false,
                  minheight: 50,
                  resizable: true,
                  draggable:true,
                  closeOnEscape: true,
                  height : y,
                  /*
                  buttons : {
                  "Ok": function() { alert(node); $('#'+node).find("form").submit(); },
                  "Cancel": function() { alert('Cancel') }
                  },
                  */
                  title : title         
         });
         
         $('#'+node).data('title.dialog',title);
         $('#'+node).dialog('open');
}

function closeDialog(node) {
         $("#"+node).dialog("close");
}

function ajax(script,node,querystring) {

    $.ajax({
        type: "POST",
        url: script,
        async: false,
        data: querystring,
        success: function(msg) {

                  $("#"+node).html(msg);
        }
    });
}