function showInfo( id ) {
    document.getElementById(id).style.display = 'inline';
}

function hideInfo( id ) {
    document.getElementById(id).style.display = 'none';
}

function verify( msg ) {
    return confirm(msg);
}

function uncheck(ids) {
  for( var i = 0; i < ids.length; i++ ) {
    document.getElementById(ids[i]).checked = false;
  }
}

function updateContent(params, container, url, method) {
  var ajax = new Ajax.Updater(
    {
      success: container,
      failure: container
    },
    url,
    {
      method: method,
      parameters: params,
      evalScripts: true,
      onCreate: function() {
        $(loading).show();
      },
      onComplete: function() {
        $(loading).hide();
      }
    }
  );
}

