Object.prototype.show = function()
{
	this.style.display = 'block';
}

Object.prototype.hide = function()
{
	this.style.display = 'none';
}

String.prototype.trim = function()
{
	return this.replace(/^\s+|\s+$/g,"");
}

function _goInfo()
{
	document.getElementById('appList').hide();
	document.getElementById('infoPage').show();
}

function _goList()
{
	document.getElementById('appList').show();
	document.getElementById('infoPage').hide();
}

function validateFeedback()
{
	var success = true;

	if (document.getElementById('contact').value.search('.+@.+\\.[a-z]+') < 0 && document.getElementById('contact').value.trim() != '')
	{
		document.getElementById('contactError').show();
		success = false;
	}
	else
		document.getElementById('contactError').hide();

	if (document.getElementById('message').value.trim() == '')
	{
		document.getElementById('messageError').show();
		success = false;
	}
	else
		document.getElementById('messageError').hide();

	return success;
}