function addUriParam(uri, param, value)
{
	if (uri.indexOf('?') < 0)
		separator = '?';
	else
		separator = '&';
		
	return (uri + separator + param + '=' + value);
}

function confirmLink(theLink, confirmMsg)
{
	var is_confirmed = confirm(confirmMsg);
	return is_confirmed;
} 

function toggleDisplay(id)
{
	if (document.getElementById)
	{
		var node = document.getElementById(id);
		
		if (node)
		{
			if (node.style.display == 'none')
				node.style.display = 'block';
			else
				node.style.display = 'none';
		}
	}
}

function stripLeadingZeroes(input)
{
	if((input.length > 1) && (input.substr(0,1) == "0"))
		return input.substr(1);
	else
		return input;
}


