var MenuVisible="";

function Bar(i) 
{
	{
		oC = eval("Contents" + i);
		oImg = eval("image" + i);
		oTab = eval("TableBar" + i);
		
		window.event.cancelBubble = true; // prevent icoPlus from repeating event
		if (("none" == oC.style.display) || ("" == oC.style.display))
		{
			oC.style.display = "block";
			if (PCAP.PrintForm=="0") oTab.className = "clsBarOn";
		}
		else 
		{
			oC.style.display = "none";
			if (PCAP.PrintForm=="0") oTab.className = "clsBarOff";
		}
	}
}


function MouseOver(e,i)
{
	if(e.className == "clsBarOff")
	{
		e.className = "clsBarOffUnderMouse";
	}
}

function MouseOut(e)
{
	if(e.className == "clsBarOffUnderMouse")
	{
	e.className = "clsBarOff";
	}

}



function ExpandCollapse(e,i)
{
var oC=eval("CONT"+i);
if (("none" == oC.style.display) || ("" == oC.style.display))
	{
	oC.style.display = "block";
	}
else 
	{
	oC.style.display = "none";
	}
}

function DirCharEff(e)
{

if (e.className=="DirChar")
	{
	e.className="DirCharOver"
	if (MenuVisible != "")
		{
		oD= eval(MenuVisible);
		oD.style.display="none";
		}
	}
else
	e.className="DirChar"
}



function Hide(e)
{
if ((window.event.offsetX < e.offsetWidth) && (window.event.offsetX > 0) && (window.event.offsetY < e.offsetHeight) && (window.event.offsetY >0)) return;
e.style.display="none"; 
MenuVisible="";
}
String.prototype.trim = function()
{
    // Use a regular expression to replace leading and trailing 
    // spaces with the empty string
    return this.replace(/(^\s*)|(\s*$)/g, "");
}

function ValidatePostForm(eForm)
{
  if ("" == eForm.name.value)
  {
    window.alert("   (Nick).");
    eForm.name.focus();
    return false;
  }
  if ("" == eForm.subject.value)
  {
    window.alert(" ");
    eForm.subject.focus();
    return false;
  }
  return true;
}

