function validate()
{
	var obj = document.getElementById("txtEmail");
	var strEmail = obj.value;
	if (strEmail == "")
	{
		alert("An E-Mail Address is Required, Please Enter a Valid E-Mail Address");
		return(false);
	}
	else
	{
		if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(strEmail)) 
		{
			return (true);
		}
		else
		{
			alert("Invalid E-Mail Address, Please Enter a Valid E-Mail Address");
			return(false);
		}
	}
}

function clearform()
{
	if (document.getElementById("frmContact"))
		document.getElementById("frmContact").reset();
}

function logval()
{
	var strPass = document.getElementById("txtPass").value;

	if (strPass == "")
	{
		return(false);
	}
	else
		return true;
}
function countChars ()
{
	var tmp = document.getElementById("txtBody").value.length;
	document.getElementById("txtChars").value = tmp;
}
