function useridws(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=1015,height=600,left = 10,top = 10');");
}
 
function popUpz(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=325,height=350,left = 362,top = 234');");
}
 
 
 
/////////////////////login//////////////
var status_go = false;
function login(type)
{    if (type == "user")
     { var element = document.getElementById("username");
	   element.value ="";
	 }
	 if (type =="password")
	 { var element = document.getElementById("s_password");
	   element.innerHTML = '<input type="password" value=""  id="password" name="password" />'
	   status_go = true;
	 }
}
function go()
{  var returnValue = false; 
   var element = document.getElementById("password");
   if (status_go =true)
   { return true;}
   else 
   { return returnValue;}
}
 
///////////////////////////////////////////
 
function handleError()
{
return true;
}
window.onerror = handleError;
 
////////////////////////////////////////////
 
 
///////////irc////////////////
var status_irc = "false";
var status_ifame_irc = "false";
function click_irc()
{  
    var tombol = document.getElementById("ircidws");
	if (status_irc=="false")
	{   
	   show_irc(); status_irc ="true";
	   tombol.className ="aktif"; 
	}
	else 
	{  hide_irc(); status_irc ="false";
	   tombol.className ="";
	}
	
	
	
};
function show_irc()
{ var iframe = document.getElementById("iframe_irc");
  var iframe_isi = document.getElementById("iframe_irc_isi");
  if (status_ifame_irc =="false") 
  {  
      iframe_isi.innerHTML ='<iframe height="200" width="968" src="http://01.office-on-the.net:9090/?channels=kosongsatu&nick=tamu&prompt=1"></iframe>';
	  iframe.style.display ="block";
	  status_ifame_irc="true";
  }
  else 
  {   
    iframe.style.display ="block"; 
  }
}
 
function hide_irc()
{   var iframe = document.getElementById("iframe_irc");
    iframe.style.display ="none";
}
function iframe_up()
{    var iframe_isi = document.getElementById("iframe_irc_isi");
     var iframe = iframe_isi.getElementsByTagName("iframe");
	 var height = iframe.item(0).height;
	 height = eval(height) + 10;
	 if (height < 300)
	 { iframe.item(0).height = height; }
	 else 
	 { alert('Size IRC sudah Maksimal'); }
	 
}
function iframe_down()
{    var iframe_isi = document.getElementById("iframe_irc_isi");
     var iframe = iframe_isi.getAttribute("iframe");
	 var iframe = iframe_isi.getElementsByTagName("iframe");
	 var height = iframe.item(0).height;
	 height = eval(height) - 10;
	 if (height > 200)
	 { iframe.item(0).height = height; }
	  else 
	 { alert('Size IRC sudah Minimal'); }
	
}
///////////////////////////