var d=document,E_msg='Maaf browser anda tidak support AJAX technology, Silahkan menggunakan browser dengan versi yang lebih baru'; 
function nAJX(){
	alert (E_msg);
	return;
}
function setID (ID,op,pgt){var tgr=d.getElementById(ID);if (op=='tampil'){tgr.style.display="block";}else if (op=='sembunyi'){tgr.style.display="none";}else if (op=='ganti'){tgr.innerHTML=pgt;}else {}}
function Ads(p,id){if(p=='')return;
xmlHttp=AJAX();if (xmlHttp==null)nAJX();
var url="catat.php?md=ads&jns="+p+"&id="+id+"&sd="+Math.random();
xmlHttp.onreadystatechange=function(){
		if(xmlHttp.readyState==4){
			if(xmlHttp.responseText!='')window.open(''+xmlHttp.responseText+'');
		}
	}
xmlHttp.open("GET",url,true);xmlHttp.send(null);
}
function AJAX(){var xmlHttp=null;try  {  xmlHttp=new XMLHttpRequest();  }catch (e)  {  try    {    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");    }  catch (e)    {    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");    }  }return xmlHttp;}
function setLang(ln) { 
	d.cookie="lang="+ln;
	window.location.reload();
}

function catat(jns,id){
xmlHttp=AJAX();if (xmlHttp==null)nAJX();
var url="catat.php?md="+jns+"&id="+id+"&sd="+Math.random();
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}
function bookmark(url,title) {
  if(url==''){url=document.URL;}
  if(title==''){title=document.title;}
  if (document.all) window.external.AddFavorite(url,title);
  else if (window.sidebar) window.sidebar.addPanel(title,url,"");
}
