// JavaScript Document

function disableselect(e){
return false
}

function reEnable(){
return true
}

//if IE4+
document.onselectstart=new Function ("return false")

//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}

<!-- NO SELECT -->
<!-- NO RIGHT CLICK -->

var message="Ridwan";

function clickIE() {
if (document.all) {
 return false;
}
}
function clickNS(e) {
if (document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {
   return false;
  }
 }
}
if (document.layers) {
 document.captureEvents(Event.MOUSEDOWN);
 document.onmousedown=clickNS;
} else{
document.onmouseup=clickNS;
document.oncontextmenu=clickIE;
}
document.oncontextmenu=new Function("return false")
// --> 

<!-- NO RIGHT CLICK -->

function change_lang() {
	if(document.language.lang.value == "English") {
		parent.location.href = "english/portal.htm";
	} else {
		parent.location.href = "../portal.htm";
	}
}

function cari() {
 var a = document.google_search.q.value;
 if (a == "") {
  window.alert("Masukkan kata yang ingin Anda cari !");
  document.google_search.q.focus();
  return false;
 }
}

function hapus_mail() {
 var mail = document.loginForm;
 mail.login.value = "";
 mail.password.value = "";
}
function hapus_cari() {
 var cari = document.frmSearch;
 cari.search.value = ""
}

function hapus_mail() {
 var mail = document.loginForm;
 mail.login.value = "";
 mail.password.value = "";
}
function hapus_cari() {
 var cari = document.frmSearch;
 cari.search.value = ""
}

function openAntiSpam(){
	winAntiSpam = window.open('http://community23.i-p.com/templates/mail/us/abuse.htm','winAntiSpam','width=400,height=400,directories=no,status=no,scrollbars=yes,menubar=no,toolbar=no,resizable=no,screenX=0,screenY=0,left=0,top=0');
}

function mail_login() {
var mail = document.loginForm
if(mail.login.value == "") {
 window.alert("Masukkan nama login E-mail Anda !");
 mail.login.focus();
 return false;
 }
if(mail.password.value == "") {
 window.alert("Masukkan password Anda !");
 mail.password.focus();
 return false;
 }
window.setTimeout("hapus_mail()",500)
}

<!-- FAVORITES -->
function favorites() {
  browserName = navigator.appName;
  browserVer = parseInt(navigator.appVersion);
if (browserName == "Microsoft Internet Explorer" && browserVer >= 4) {
   window.external.AddFavorite(location.href, document.title);
  }
}
<!-- FAVORITES -->


function TTBROWSE (xURL, xSKINID) {

	var wurl;
	var datum = new Date();

	datum = escape(datum.getTime());
	
	xURL= "tagtag.com/ridwanwap";
	
	// is there a skin parameter?
	
	if (xSKINID=="") {
		xSKINID = "P1";
	}

	wurl=escape(xURL);
	var VERT_OFFSET = 11
  
      if((navigator.appVersion.indexOf("MSIE") != -1) && (navigator.appVersion.indexOf("Windows") != -1))
      {
        win = window.open('','WAP', 
          'width=220,height=285')
          

        win.moveTo(Math.ceil((window.screen.width - 220) / 2), 
          Math.ceil((window.screen.height - (285 + 24)) / 2) - VERT_OFFSET)
        win.location.href = 'http://tagtag.com/cgi/wapemulator.cgi?O__SKIN=' + xSKINID + '&wurl=' + wurl + '&dummy='+datum
      }
      else 
        window.open('http://tagtag.com/cgi/wapemulator.cgi?O__SKIN=' + xSKINID + '&wurl=' + wurl + '&dummy='+datum,'WAP',
          'width=220,height=285')
    
}


<!-- MENUS -->
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

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_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
<!-- MENUS -->

function click_adv(view,hidden) {
	var ie4 = document.all;
	var ns4 = document.layers;
	var ns6 = document.getElementById && !document.all; 
	if(view == "step_3" && hidden == "step_2") {
		text_info.style.display = "none";
	}
	if(ie4) {
		//after_click.style.display = "block";
		eval(view+".style.display = \"block\"");
		eval(hidden+".style.display = \"none\"");
	} else {
		//after_click.style.display = "table";
		eval(view+".style.display = \"table\"");
		eval(hidden+".style.display = \"none\"");
	}
}

function popup(msg,bak){
var content="<TABLE ALIGN=\"CENTER\" BORDER=1 BORDERCOLOR='#666666' CELLPADDING=4 CELLSPACING=1 "+
"BGCOLOR='#FCFCFC'><TD ALIGN=left>"+msg+"</TD></TABLE>";
yyy=Yoffset;
 if(ns4){skn.document.write(content);skn.document.close();skn.visibility="visible"}
 if(ns6){document.getElementById("dek").innerHTML=content;skn.display=''}
 if(ie4){document.all("dek").innerHTML=content;skn.display=''}
}

function get_mouse(e){
var x=(ns4||ns6)?e.pageX:event.x+document.body.scrollLeft;
//alert(x);
if(x>630)
  Xoffset=-210;
else
  Xoffset=-100;
skn.left=x+Xoffset;
var y=(ns4||ns6)?e.pageY:event.y+document.body.scrollTop;
/*alert(y);
if(y>360)
  Yoffset=-300;
else
  Yoffset=0;*/
skn.top=y+yyy;
}

function kill(){
	yyy=-1000;
	if(ns4) {
		skn.visibility="hidden";
	} else if (ns6||ie4)
		skn.display="none"
}

