function showhidden()
{
	for(var i = 0; i < document.all.length; i++)
	{
		if(document.all(i).className == "hidden")
			document.all(i).className = "";
	}
}

function podmenu(object)
{
	hideMenu();

	if(document.all('menu'+object)) document.all('menu'+object).style.display="block";
}

function hideMenu()
{
	for(var i=1; i<=parent.nmenu; i++)
	{
		if(document.all('menu'+i)) document.all('menu'+i).style.display="none";
	}
}

function Comment(text, id)
{
	if(document.all('comment'+id))
	{
		document.all('comment'+id).innerHTML=text;
	}
}

function openWindow(Path, width, height) 
{
	var Width=550;
	var Height=500;

	if(width>0) Width=width;
	if(height>0) Height=height;

	window.open(Path,"","height=" + Height + ",width=" + Width + ",toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=1,left=200,top=50,resizable=1");
}

function discus(path)
{
	openWindow(path, 500, 500);
}

function Sort(name, val)
{
	var elem=document.forms['mf'];

	if(name=="order")
	{
		if(elem.elements[name].value==val)
		{
			if(elem.desc.value==0) elem.desc.value=1;
			else elem.desc.value=0;
		}
	}

	elem.elements[name].value=val;
	elem.submit();
}

function pc(c)
{
    for(var i = 0; i < c.length; i++)
    {
        document.write("&" + "#0" + c[i] + ";");
    }
}
