function TutupJendela()
{
	window.open('','_parent','');
	window.close();
}

function AmbilStatusElement(id)
{
	if(document.getElementById(id))
		{ var x = 0; }
	else if(document.all[id])
		{ var x = 1; }
	else if(document.layers[id])
		{ var x = 2; }
		
	return x;
}

function Lmnt(id)
{
	var type = AmbilStatusElement(id);
	
	if(type == 0)
		{ var el = document.getElementById(id); }
	else if(type == 1)
		{ var el = document.all[id]; }
	else if(type == 2)
		{ var el = document.layers[id]; }
		
	return el;
}

function BukaTutupDiv(idDiv, type)
{
	var x = Lmnt(idDiv);
	var y = x.style;
	
	if(y.display == 'none')
		{ y.display = type; }
	else if(y.display == type)
		{ y.display = 'none'; }
	else
		{ y.display = 'none'; }
}