function truncate(input, maxLength)
{
	if(input.length > maxLength)
	{
		return input.substr(0, maxLength) + "...";
	} else {
		return input;
	}
}