
function checkform (form) {
var email = form.email.value;
var re_email = form.re_email.value;

				
var themessage = "You are required to complete the following fields: ";
if (form.first_name.value=="") {
themessage = themessage + " - 'First Name'";
}
if (form.last_name.value=="") {
themessage = themessage + " - 'Last Name'";
}
if (form.email.value=="") {
themessage = themessage + " - 'Email Address'";
}
if (form.re_email.value=="") {
themessage = themessage + " - 'Retype Email Address'";
}

if (form.company_type.selectedIndex == 0) {
themessage = themessage + " - 'Company Type'";
}
if (form.company.value=="") {
themessage = themessage + " - 'Company'";
}
if (form.country.selectedIndex == 0) {
themessage = themessage + " - 'Country'";
}
//alert if fields are empty and cancel form submit



if (themessage == "You are required to complete the following fields: ") {
	if(email != re_email )
		{
			alert( "Retyped email do not match email" );
			return false;
		}
		else {
                       if(form.service.checked  )
		         {
				if(form.privacy.checked  )
		         	{
					return true;
                       	}
		         	else {alert( "Please declare that you have read our Privacy Conditions and that you consent to the processing of your data by ticking off the check box. ");
        				return false;
		         	}
                       }
		         else {alert( "Please declare that you have read our Service Conditions and that you consent to the processing of your data by ticking off the check box.");
        			return false;
		         }
		
		}	
}
else {
alert(themessage);
return false;
}


			 
}


