// JavaScript Document

function form_validation()
{
	var emailValidation = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;
	
	if(document.getElementById("txtName").value=="")
	{
		alert("Please Enter Your Name");
		document.getElementById("txtName").focus();	
		return false;
	}

	if(document.getElementById("txtEmail").value=="")
	{
		alert("Please enter E-Mail Address");
		document.getElementById("txtEmail").focus();	
		return false;
	}
	
	if(document.getElementById("txtEmail").value!="")
	{
		if(!(document.getElementById("txtEmail").value.match(emailValidation)))
		{
		alert("Please enter Valid Email Id.");
		document.getElementById("txtEmail").focus();
		return false;
		}
	}


} // end function