
function createPopUp(id, title, width){
  jQuery(id)
    .show()
    .dialog({
      autoOpen: false,
      closeOnEscape: false,
      modal:true,
      overlay:{"opacity":"0.9","background-color":"#000"}
    }
  )

  if(title){
    var titleStr = jQuery(id).find(title).get(0);
    jQuery(id).dialog('option', 'title', titleStr);
  }

  if(width){
    jQuery(id).dialog('option', 'width', width);
  }
}

function showPopUp(id){
  jQuery(id).dialog("open");
}

function closePopUp(id){
  jQuery(id).dialog("close");
}


