
var xmlHttpOT
function showOtherTips(n, ar)
{ 
xmlHttpOT=GetXmlHttpObjectTips()
if (xmlHttpOT==null)
 {
 alert ("Browser tidak support HTTP Request")
 return
 } 
var url="include/show-other-tips-in-action.php"
url=url+"?nmb="+n
url=url+"&ar="+ar
url=url+"&sid="+Math.random()
xmlHttpOT.onreadystatechange=stateOtherTips
xmlHttpOT.open("GET",url,true)
xmlHttpOT.send(null)
}

function stateOtherTips() 
{ 
if(xmlHttpOT.readyState != 4)
{
 document.getElementById("tips_content").innerHTML = 'Mohon tunggu...';
}
if (xmlHttpOT.readyState==4 || xmlHttpOT.readyState=="complete")
 { 
 document.getElementById("tips_content").innerHTML=xmlHttpOT.responseText 
 } 
}

function GetXmlHttpObjectTips()
{
var xmlHttpOT=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttpOT=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttpOT=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttpOT=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttpOT;
}
