function validate_form()
{
  var valid = true;
  var error = "";
  var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
    var id1=document.contact.Email_Address.value;
    var x=document.contact.Phone.value;
    var y = /^[a-zA-Z]*$/;
    

      

	if ( document.contact.First_Name.value == "" )
    		{
		error="*Please fill in the 'First Name' Box.";
		valid=false;
	        }
	else if (!(y.test(document.contact.First_Name.value))) 
					{
					error+="<br>*Special characters & Digits are not allowed in the 'First Name' Box.";
					valid=false;
					}
 
    
	

	if ( document.contact.Last_Name.value == "" )
    		{
		error+="<br>*Please fill in the 'Last Name' Box.";
		valid=false;
		}
	else if (!(y.test(document.contact.Last_Name.value))) 
		{
                error+="<br>*Special characters & Digits are not allowed in the 'Last Name' Box.";
		valid=false;
		}


	if ( document.contact.Email_Address.value == "" )
    		{
		error+="<br>*Please fill in the 'E-Mail Address' Box.";
		valid=false;
		}
	else
		{
		if(reg.test(id1) == false) 
			{	
			error+="<br>*Please enter the valid 'Email-ID'.";
			valid=false;
			}
	    	}
	if ( document.contact.Phone.value == "" )
    		{
		error+="<br>*Please fill in the 'Phone' Box.";
		valid=false;
		}
	else   if(isNaN(x)||x.indexOf(" ")!=-1)
		{
		error+="<br>*Please enter the numeric value in 'Phone' Box.";
		valid=false;
		}
		
		if(valid==false)
			{
			document.getElementById("message").innerHTML=error;
			return valid;
			}
	
	return valid;
}

