// JavaScript Document
function Validate(x){
		
				if(x.name.value==""){
				alert("!الرجاء إدخال الإسم");
				x.name.focus();
				return false;
			}
			else if(x.address.value==""){
				alert("!الرجاء إدخال العنوان");
				x.address.focus();
				return false;
			}
			
			else if(x.company.value==""){
				alert("!الرجاء إدخال إسم الشركة");
				x.company.focus();
				return false;
			}	
			if(x.email.value==""){
				alert("!الرجاء إدخال البريد الإلكتروني");
				x.email.focus();
				return false;
			}	
			else if(x.phone1.value==""){
				alert("!الرجاء إدخال الهاتف");
				x.phone1.focus();
				return false;
			}	
			else if(x.subject.value==""){
				alert("!الرجاء إدخال الموضوع");
				x.subject.focus();
				return false;
			}	
			else if(x.message.value==""){
				alert("!الرجاء إدخال الرسالة");
				x.message.focus();
				return false;
			}

			if(x.phone1.value.match(/^\d+$/)){
				
			}	
			
		<!--Email validation script---------->	

			
		if(!CheckValidEmail(x.email.value) )
			{
				alert("!الرجاء التأكد من البريد الإلكتروني");
				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;
		
			
						}	

