
// fade out, change value, fade in
function yoyo(id, newValue) {
  $(id).fadeOut(250, function() {
    $(id).html(newValue);
    $(id).fadeIn(500);
  })
}


function alertBox(msg, title) {
  $('#alert').dialog('option', 'title', title);
  $('#alert p').html(msg);
  $('#alert').dialog('open');
}

