function noSpam()
{
	var addr = '';

	addr += noSpam.arguments[0] + '@';

	for (var i = 1; i < noSpam.arguments.length; i++)
		addr += noSpam.arguments[i];

	document.write('<a href="mailto:' + addr + '">' + addr + '</a>');
};


function zebraTable(table_id)
{
	//var evenColor = '#F2F8FB';
	var evenColor = '';
	var oddColor = '#E6F1F7';

	var table;
	if (document.getElementById)
		table = document.getElementById(table_id);
	else if (document.all)
		table = document.all[table_id];
	else
		return;

	if (!table)
		return;

	var trs;
	if (table.getElementsByTagName)
		trs = table.getElementsByTagName('tr');
	else
		trs = table.all.tags('tr');

	if (!trs)
		return;

	for (var i = 0; i < trs.length; i++)
		trs[i].style.backgroundColor = (i%2 == 1) ? evenColor : oddColor;
};


function RTrim(value)
{
	if(value.length < 0)
		return '';

	var spaceChar = String.fromCharCode(32);
	var result = new String();

	var currentIndex = value.length - 1;

	while(currentIndex > -1)
	{
		if (value.charAt(currentIndex) != spaceChar)
		{
			result = value.substring(0, currentIndex +1);
			break;
		}
		currentIndex -= 1;
	}

	return result;
};

function LTrim(value)
{
	if(value.length < 1)
		return '';

	var spaceChar = String.fromCharCode(32);
	var result = new String();

	var currentIndex = 0;

	while(currentIndex < value.length)
	{
		if(value.charAt(currentIndex) != spaceChar)
		{
			result = value.substring(currentIndex, value.length);
			break;
		}
		currentIndex += 1;
	}

	return result;
};
						
function Trim(value)
{
	value = LTrim(value);
	value = RTrim(value);

	return value;
};

