var xmlhttp,alerted
if (!xmlhttp && !alerted) {
 try {
  xmlhttp = new XMLHttpRequest();
 } catch (e) {
 // alert("O seu browser não suporta este método")
 }
}

function RSchange() {
 if (xmlhttp.readyState==4) {
  document.getElementById('content').innerHTML=window.alert(xmlhttp.responseText);
 }
}
function go(tipo,id) {
if (xmlhttp) { 
  d=document
  xmlhttp.open("GET", "../../photum/frames/favoritos.php?id="+id+"&tipo="+tipo,true);
  xmlhttp.onreadystatechange=RSchange
  xmlhttp.send(null)
 }
}

// JavaScript Document