function Trim(FormInfo,Collapse)
{

	TestString = FormInfo.value.replace(/^\s+/,"").replace(/\s+$/,"")
	
	if (Collapse)
	{TestString = TestString.replace(/\s+/g," ")}
	
	FormInfo.value = TestString

}

// ****************************************************************

function RemoveSpaces(FormInfo)
{
	
	FormInfo.value = FormInfo.value.replace(/\s+/g,"")
	
}

// ****************************************************************
