var isMSIE = /*@cc_on!@*/false;

function del_mes(id)
{
 if(confirm('Удалить сообщение?'))
 { 
  var req = null;
  if(isMSIE) req = new ActiveXObject("Msxml2.XMLHTTP"); 
  else req = new XMLHttpRequest();
  req.open('GET', 'mes_del_ajax.php'+'?id='+id, true);
  req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=utf-8');

  req.onreadystatechange = function()
  { 
    if (req.readyState == 4 && req.status == 200)
     {
      //alert('Сообщение удалено!');
	  back_2();
     }
  };
  
  req.send(null); 

  //back_2();
  //history.back();
  //history.go(-1);
 }
}
