function trim(inputString)
{
	if (typeof inputString != "string") return inputString;
	var retValue = inputString;
	var ch = retValue.substring(0, 1);
	
	while (ch == " ")
	{
		retValue = retValue.substring(1, retValue.length);
		ch       = retValue.substring(0, 1);
	}
	
	ch = retValue.substring(retValue.length - 1, retValue.length);
	
	while (ch == " ")
	{
		retValue = retValue.substring(0, retValue.length - 1);
		ch       = retValue.substring(retValue.length - 1, retValue.length);
	}
	return retValue;
}


function Collapse(id)
{
	if(document.getElementById(id).style.display == "block")
	{
		document.getElementById(id).style.display = "none";
		//document.cookie= "cookie_" + id + "=none; path=/; expires=Mon, 01-Jan-2100 00:00:00 GMT";
	}
	else
	{
		document.getElementById(id).style.display = "block";
		//document.cookie= "cookie_" + id + "=; path=/; expires=Mon, 01-Jan-2100 00:00:00 GMT";
	}
}
