// JavaScript Document

function validForm()
{
	//alert("check");	
	//alert(document.frm.small.value);	 

 	if(document.frm.fname.value == "" || document.frm.fname.value == "Name")
	{
		alert("Please Enter your Name");
		document.frm.fname.focus();
		return false;
	}
	/*
	if(document.frm.company.value == "" )
	{
		alert("Please Enter your Company Name");
		document.frm.company.focus();
		return false;
	}
	
		
	if(document.frm.add1.value == "" )
	{
		alert("Please Enter your Address");
		document.frm.add1.focus();
		return false;
	}
	*/
	
	if(document.frm.email2.value == "" || document.frm.email2.value == "Email")
	{
		alert("Please enter Email Address");
		document.frm.email2.focus();
		return false;
	}
	else
	{
		emailExp= /^\w+(\-\w+)*(\.\w+(\-\w+)*)*@\w+(\-\w+)*(\.\w+(\-\w+)*)+$/;
	 	 if (!(emailExp.test(document.frm.email2.value)))
		{ 
			   alert("Invalid Email Address");
			   document.frm.email2.focus();
			   return false;  
		} 
	}
	
	
	


	if(document.frm.phone.value == "" || document.frm.phone.value == "Phone No." )
	{
		alert("Please Enter your Phone No");
		document.frm.phone.focus();
		return false;
	}
	
	if(document.frm.comments.value == "" || document.frm.comments.value == "Comments" )
	{
		alert("Please Enter your Comment");
		document.frm.comments.focus();
		return false;
	}
	
	
		
}






