
// Inbox

function deleteInboxMsg(id,url) {
  var params=[];
  params.push('t='+SAPO.Utility.Cookie.get().tags);
  params.push('m='+id); 
  params.push('u='+url); 
  var save=new Ajax.Request('/op/inboxdel/',{method: 'post',onSuccess:genericOK,postBody: params.join('&')});
  }

// Tools

function genericOK(t) {
  p=t.responseText.split('#');
  if(p[1]!=='undefined') {
    location.href=p[1];
    }
  return(true);
  }

