function setNavCell(id)
{
	var cell=get(id);
	
	if (cell)
		css_markcell(cell);
}

function get(id)
{
	var obj=null;
	
	if (document.all)
		obj=document.all[id];
	else if (document.getElementById)
		obj=document.getElementById(id);
		
	return obj;
}

function css_display(id,mode)
{
	var obj=get(id);

	if (obj.style)
  	obj.style.display=mode;
}

function css_markcell(cell)
{
	s="2px solid #862311";
	if (cell.style)
		cell.style.borderBottom=s;
	else if (cell.setAttribute)
		cell.setAttribute("borderBottom",s);
}

function onOpenPopupImage(file)
{
	var hwnd=null;
	hwnd=window.open("popup_image.php?file="+file,"popup","width=10, height=10, resizable=yes, scrollbars=yes");
	if (hwnd)
		hwnd.focus();
}