// JavaScript Document
	function setarg(tf1)
	{
		switchVisible('prodCategories',0);
		switchVisible('bottom',0);
		switchVisible('newFooter',0);
		switchVisible('prodDisplaySection',1);
		switchVisible('mainA',1);
		switchVisible('mainB',1);
		proditem=tf1;
		FilterData(0);
		//alert("debug setarg:  proditem= "+proditem);
	}
	//function setarg2(tf1)
	//{
		//proditem=tf1;
		//FilterData(0);
		//alert("debug setarg2:  proditem= "+proditem);
	//}
	function initDispl()
	{
		switchVisible('prodCategories',1);
		switchVisible('bottom',1);
		switchVisible('newFooter',1);
		switchVisible('prodDisplaySection',0);
		switchVisible('mainA',0);
		switchVisible('mainB',0);
	}
 
	function PrintItem(id,value)
	{
		//alert(id+"  "+value);
		var newdiv = document.createElement("div");
		newdiv.innerHTML = value;
		var container = document.getElementById(id);
		container.appendChild(newdiv);
	}
//        
/////////////
// Utilities
///////////////
function showTs(q,w,h)
{
//
	document.getElementById('base').setAttribute('src',q,'width',w,'height',h);
	ddrivetip('', '',w,h);
}
//
function showT(q,w,h)
{
	document.getElementById('base').setAttribute('src',q,'width',w,'height',h);
}
//
function switchVisible(id,viz)
{
	if( (id==null) || (getLayer(id)==null) )alert("debug switchVisible:  id= "+id+" viz= "+viz );
	if(viz==0)getLayer(id).style.visibility="hidden";
	else getLayer(id).style.visibility="visible";
}
//
function getLayer(id) {return (document.getElementById(id));}
