// JavaScript Document

function trocaCor(cor, id1, id2){
	document.getElementById(id1).style.backgroundColor = cor;
	document.getElementById(id2).style.backgroundColor = cor;
}

<!-- INI Google Analytics (for adSense track) Tag -->
window.google_analytics_uacct = "UA-2412061-5";
<!-- FIM Google Analytics (for adSense track) Tag -->

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
/////////////////////////////////////////////
// Início dos scripts ajax dos comentários //
/////////////////////////////////////////////
var xmlHttp;

function showUser(str,fechar,lingua)
{ 
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
 {
 alert ("Seu navegador nao suporta HTTP Request");
 return;
 }
valor = str;
var url="/comentarios/getuser.php";
url=url+"?q="+str;
url=url+"&f="+fechar;
url=url+"&l="+lingua;
url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=stateChanged;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}

function stateChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 var divid="comentarios"+valor;
 document.getElementById(divid).innerHTML=xmlHttp.responseText;
 } 
}

function GetXmlHttpObject()
{
var xmlHttp=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttp=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttp;
}
/////////////////////////////////////////////
// Final  dos scripts ajax dos comentários //
/////////////////////////////////////////////
