﻿function ValidateComment()
{
    if(document.getElementById("txtName").value =="")
	{
		 alert("Enter your name!");
		 document.getElementById("txtName").focus();
		 return false;
  	}  
  	
   if(document.getElementById("txtEmailId").value =="")
	{
		 alert("Enter your Email Address!");
		 document.getElementById("txtEmailId").focus();
		 return false;
  	}  
  	if(document.getElementById("txtLocation").value =="")
	{
		 alert("Enter Location!");
		 document.getElementById("txtLocation").focus();
		 return false;
  	}
  	if(document.getElementById("txtComments").value =="")
	{
		 alert("Enter Comments!");
		 document.getElementById("txtComments").focus();
		 return false;
  	}
  	  
  	if(document.getElementById("txtEmailId").value !="")
	{
	    if(echeck(document.getElementById("txtEmailId").value))
	    {
         // alert(document.getElementById("txtEmailId").value);
 	    }
	    else
	    {
	        document.getElementById("txtEmailId").focus();
	        return false;
	    }
    }
    return true;    
}
