// JavaScript Document
function Validate(x){
		
				if(x.name.value==""){
				alert("Please enter your name!");
				x.name.focus();
				return false;
			}
			else if(x.title.value==""){
				alert(" Please enter your title!");
				x.title.focus();
				return false;
			}
			
			else if(x.company.value==""){
				alert("Please enter your company name!");
				x.company.focus();
				return false;
			}	
			else if(x.email.value==""){
				alert("Please enter the email!");
				x.email.focus();
				return false;
			}
			else if(x.phone1.value==""){
				alert("Please enter the phone number!");
				x.phone1.focus();
				return false;
			}	
			else if(x.subject.value==""){
				alert("Please enter the subject!");
				x.subject.focus();
				return false;
			}	
			else if(x.message.value==""){
				alert("Please enter the message!");
				x.message.focus();
				return false;
			}
			
		<!--Email validation script---------->	
	
			
		if(!CheckValidEmail(x.email.value) )
			{
				alert("Invalid email address!");
				x.email.focus();
				return false;
			}
			
			return true;
		}
		
		function CheckValidEmail(strEmail) 
		{
 			   	if (strEmail.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1)
			   	{
        			return true;
				}
   				else
				{
        			return false;
				}
		<!--------end Email Validaion------>
					
			return true;
		
			
						}	
