	function validateForm(theForm){
	
	
		function hasValue(obj, obj_type)
		{
		    if (obj_type == "text" || obj_type == "password")
			{
		    	if (obj.value.length == 0) 
		      		return false;
		    	else 
		      		return true;
		    	}
		    else if (obj_type == "select")
			{
		        for (i=0; i < obj.length; i++)
			    	{
				if (obj.options[i].selected)
					return true;
				}

		       	return false;	
			}
		    else if (obj_type == "single_value_radio" || obj_type == "single_value_checkbox")
			{

				if (obj.checked)
					return true;
				else
		       		return false;	
			}
		    else if (obj_type == "radio" || obj_type == "checkbox")
			{

		        for (i=0; i < obj.length; i++)
			    	{
				if (obj[i].checked)
					return true;
				}

		       	return false;	
			}
		}
	
	
	
	
		
		//document.getElementById('company_info_group').style.display = "block";
		
		//reset on submit
        error_exists = false;
	
		//Check contact_info group of fields
		
			contact_error = 0;
			var contact_message = "";
			
			if(!hasValue(theForm.name, "text")){
				contact_error = 1;
				theForm.name.className = "error_hilight_fix";

			}

			
			if(!hasValue(theForm.email, "text")){
				contact_error = 1;
				theForm.email.className = "error_hilight";
			}
			
			if(!hasValue(theForm.phone, "text")){
				contact_error = 1;
				theForm.phone.className = "error_hilight";
			}
			
			
			if(!hasValue(theForm.date, "text")){
				contact_error = 1;
				theForm.date.className = "error_hilight";

			}
			
			if(!hasValue(theForm.time, "text")){
				contact_error = 1;
				theForm.time.className = "error_hilight";
			}
			
			if(!hasValue(theForm.party, "text")){
				contact_error = 1;
				theForm.party.className = "error_hilight";
			}
		//End Contact Info Group 
		
		if(contact_error == 1){
				error_exists = true;
		}
				
				
		
		if(error_exists){
			document.contact_form.how.focus();
			return false;
		}else
		{		
			return true;
		}
	}