function selCat(id){

hideAllCat(4);

	a = document.getElementById("catName_"+id);
	div = document.getElementById("cat_"+id).style;
	
	a.className = "cur"+id;
	div.display = "block";	
	
}

function hideAllCat(n){


for(i=1;i<=n;i++)
	{
		a = document.getElementById("catName_"+i);
		div = document.getElementById("cat_"+i).style;
			
		a.className = "";
		div.display = "none";
	}

}


function popup(href, title, width, height)
{
	this_top = (screen.height - height) / 2;
	this_left = (screen.width - width) / 2;
	xx = open(href, title, 'toolbar=0, Scrollbars=no, menubar=0, directories=0, status=0, resizable=1, width=' + width + ', height=' + height + ', top=' + this_top + ', left=' + this_left);
	xx.focus();

	//return false;
}

function popupScroll(href, title, width, height)
{
	this_top = (screen.height - height) / 2;
	this_left = (screen.width - width) / 2;
	xx = open(href, title, 'toolbar=0, Scrollbars=yes, menubar=0, directories=0, status=1, resizable=1, width=' + width + ', height=' + height + ', top=' + this_top + ', left=' + this_left);
	xx.focus();

	//return false;
}

