// JavaScript Document

// Fungsi untuk buka window baru
function bukajendela(url,name,width,height)
{
	var options = "width=" + width + ",height=" + height + 
								"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no";

	new_window = window.open(url, name, options);
	new_window.focus();
}

// Fungsi untuk menulis ke layer
function write_layer(text,id)
{
	if (document.getElementById)
	{
		x = document.getElementById(id);
		x.innerHTML = '';
		x.innerHTML = text;
	}
	else if (document.all)
	{
		x = document.all[id];
		x.innerHTML = text;
	}
	else if (document.layers)
	{
		x = document.layers[id];
		text2 = 'text;';
		x.document.open();
		x.document.write(text2);
		x.document.close();
	}
}

/* FUNGSI UNTUK PEMILIHAN TABCONTENT SECARA DINAMIS */
function select_tab(instance, no_tab)
{
  instance.expandit(no_tab);
}