 function ValidateFields()
        {
            var email=/^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/  
            if (document.getElementById("name").value=="Name") //if match failed
            {
                alert("Please enter your name");
                document.getElementById("name").focus();
                return false;
            }
            else if(document.getElementById("email").value=="E-mail")
            {
                alert('Email is required!!');
                document.getElementById("email").focus();
                return false;
            }
            else if (document.getElementById("email").value.search(email)==-1) //if match failed
            {
                alert("Please enter a valid email address");
                document.getElementById("email").focus();
                return false;
            }
              else if (document.getElementById("txtphone").value=="Phone") //if match failed
            {
                alert("Please enter phone number");
                document.getElementById("txtphone").focus();
                return false;
            }
            else{
                return true;
            }
        }
	  
