function hideErrorText()
{
	if (document.getElementById)
	{
		document.getElementById("ctnrJavascriptError").style.display = "none";
	}		
}

function showErrorText(strError)
{
	if (document.getElementById)
	{
		document.getElementById("ctnrJavascriptError").innerHTML = strError;
		document.getElementById("ctnrJavascriptError").style.display = "block";
	}
	else
	{
		alert(strError);
	}
}

function resetError(strElementID)
{
	if (document.getElementById)
	{
		document.getElementById(strElementID).style.backgroundColor = "";
		document.getElementById(strElementID).style.color = "";
	}
}

function setError(strElementID)
{
	if (document.getElementById)
	{
		document.getElementById(strElementID).style.backgroundColor = "#FF0000";
		document.getElementById(strElementID).style.color = "#FFFFFF";				
	}
}
		
	
function isEmail(strEmail)
{
	var objRegExp = /^\w+((-\w+)|(\.\w+)|(\_\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z]{2,4}$/;

	return objRegExp.test(strEmail);
}
