function clearIt(theText) 
{
     if (theText.value == theText.defaultValue) 
     {
         theText.value = ""
     }
 }
 
function replacetext(theText)
{
	if (theText.value == "")
		theText.value = "Enter Email Here!"
}

function validateEmail(src) {
		emailReg = "^[\\w-_\.]*[\\w-_\.]\@[\\w]\.+[\\w]+[a-zA-Z]$"
		var regex = new RegExp(emailReg);
		if(regex.test(src) == false){
			alert('Please enter a valid email address and try again!');
			document.frmEmailList.txtEmail.value = ""
			document.frmEmailList.txtEmail.focus();
			return false;
		}
		return regex.test(src);
}
