// JavaScript Document

/* Show hide div  */
function hideDivArea(str_area_hide){
	tag = document.getElementsByTagName("div");
	for(x=0;x<tag.length; x++)
	{
	if(tag[x].getAttribute('id').indexOf(str_area_hide) != -1)
	{
	tag[x].style.display = "none";
	}
	}
}
function showDivArea(areas_show, areas_hide){

	for (var i = 0; i < areas_show.length; i++)
	{
	ge = document.getElementById(areas_show[i]);
	ge.style.display = "block";
	}
	for (var i = 0; i < areas_hide.length; i++)
	{
	hideDivArea(areas_hide[i]);
	}
}

currentDisplayDiv = "";

function show_switch(id)
{
	currentDisplayObj = document.getElementById(currentDisplayDiv);
   
	if (currentDisplayObj != null)
	currentDisplayObj.style.display='none'; 
      
	if (id == currentDisplayDiv)
	{
	currentDisplayDiv = "";
	return;
	}
	currentDisplayDiv = id;
   
	if (document.getElementById(id).style.display == 'none')
	{
	document.getElementById(id).style.display='block';
	}
	else
	{
	document.getElementById(id).style.display='none';
	}
}

function show_switch_alone(id)
{
	if (document.getElementById(id).style.display == 'none')
	{
	document.getElementById(id).style.display='block';
	}
	else
	{
	document.getElementById(id).style.display='none';
	}
}

function hide(id)
{
	document.getElementById(id).style.display='none';
}

function show(id)
{
	document.getElementById(id).style.display='block';
}
