function showHideDiv(name, prop) 
{
	if (document.layers)
	{
		document.layers[name].show = prop;
	}
	else if (document.getElementById)
	{
		document.getElementById(name).style.visibility = prop;
	}
}
function block(area,icon)
{
	var imgExpand = "/images/common/window_open.gif";
	var imgClose = "/images/common/window_close.gif";
	if (document.layers)
	{
		current = (document.layers[area].display == 'none') ? 'block' : 'none';
		document.layers[icon].src = (current == 'none') ? imgExpand : imgClose;
		document.layers[area].display = current;
	}
/*	else if (document.all)
	{
		current = (document.all[area].style.display == 'none') ? 'block' : 'none';
		document.all[icon].src = (current == 'none') ? imgExpand : imgClose;
		document.all[area].style.display = current;
	}
*/	else if (document.getElementById)
	{
		vista = (document.getElementById(area).style.display == 'none') ? 'block' : 'none';
		document.getElementById(icon).src = (vista == 'none') ? imgExpand : imgClose; 
		document.getElementById(area).style.display = vista;
	}	// end if (document.layers)

}	// end function block

/* on = "true" to block
   on = "false" to none */
function blockDiv(area, icon, on)
{
	var imgExpand = "/images/common/window_open.gif";
	var imgClose = "/images/common/window_close.gif";
	
	if (document.layers)
	{
		if(document.layers[icon]!=null && document.layers[area]!=null )
		{
			document.layers[icon].src = on ? imgExpand : imgClose;
			document.layers[area].display = on ? 'block' : 'none';
		}
	}
	else if (document.getElementById)
	{
		if(document.getElementById(icon)!=null && document.getElementById(area)!=null)
		{
			document.getElementById(icon).src = on=="true" ? imgExpand : imgClose; 
			document.getElementById(area).style.display = on=="true" ? 'block' : 'none';
		}
	}
}