// JavaScript Document
ddsmoothmenu.init({
	mainmenuid: "smoothmenu1", //menu DIV id
	orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
	classname: 'ddsmoothmenu', //class added to menu's outer DIV
	//customtheme: ["#9990A0", "#EAF0F6"],
	contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
})
/*
 $(document).ready(function() { 
            // bind 'myForm' and provide a simple callback function 
           // $('#contactForm').ajaxForm({ beforeSubmit: validate }); 
			// prepare Options Object 
			var options = { 	
			   beforeSubmit : validate,
				url:        'contactPost.php', 
				success:    function(statusText ,responseText ) { 
				//alert(statusText);
					alert('Thanks for your comment!'); 
					$('#contactForm').clearForm();
				} 
			}; 

			$('#contactForm').ajaxForm(options); 

        }); 
*/

function validate()
 {

   //alert("hi");
   objForm=document.contactForm;
  with(objForm)
  {
  
    
	if(first_name.value=='')
	 {
       alert("Please Enter your First Name");
	   return false;
	 }

	 if(last_name.value=='')
	 {
       alert("Please Enter your Last Name");
	   return false;
	 }

	  if(title.value=='')
	 {
       alert("Please Enter title");
	   return false;
	 }

	  if(email.value=='')
	 {
       alert("Please Enter your Email");
	   return false;
	 }
	 if(phone.value=='')
	 {
       alert("Please Enter your phone");
	   return false;
	 }
	 if(street.value=='')
	 {
       alert("Please Enter your address");
	   return false;
	 }
	  if(zip.value=='')
	 {
       alert("Please Enter your zipcode");
	   return false;
	 }
	  if(city.value=='')
	 {
       alert("Please Enter your city");
	   return false;
	 }

	  if(state.value=='')
	 {
       alert("Please Enter your state");
	   return false;
	 }
	 if(country.value=='')
	 {
       alert("Please Enter your Country");
	   return false;
	 }
	if(URL.value=='')
	 {
       alert("Please Enter your website");
	   return false;
	 }
	 if(company.value=='')
	 {
       alert("Please Enter your Company Name");
	   return false;
	 }
	  if(employees.value=='')
	 {
       alert("Please Enter your employees in company");
	   return false;
	 }
	  if(industry.value=='')
	 {
       alert("Please Enter your industry");
	   return false;
	 }
	 if(revenue.value=='')
	 {
       alert("Please Enter your industry");
	   return false;
	 } 
	 
	 product_int=document.getElementById('product_interest');
  var flag=0;
	for(i=0;i< product_int.options.length;i++){
		
			if(product_int.options[i].selected)
			{
              flag=1;
			}
		
	 }

	 if(!flag)
	 {
		alert("Please select product interested");
		return false;
	 }
	 
	 if(document.getElementById('comments').value=='')
	 {
       alert("Please enter question/comment");
	   return false;
	 } 
	 if(lead_source.value=='')
	 {
       alert("Please enter lead source");
	   return false;
	 } 
	 


  }



 }
