function submitform(prod,name,country,postcode,mail) {
	$.ajax({
		type: "GET",
		url: "ajax.php",
		data: "mailer="+1+"&postcode="+postcode+"&email="+mail+"&product="+prod+"&country="+country+"&name="+name+"&mailcust=1",
		success: function(msg){
			switch(msg){				
				case "ERROR:NOPOSTCODE":
					document.getElementById('errormessage_errordiv').innerHTML='Please enter a uk only postcode.';
					$("#errordiv").fadeIn("fast");
					break;
				case "ERROR:NOPROD":
					document.getElementById('errormessage_errordiv').innerHTML='Please select a product.';
					$("#errordiv").fadeIn("fast");
					break;
				case "ERROR:NOEMAIL":
					document.getElementById('errormessage_errordiv').innerHTML='Please enter your email address.';
					$("#errordiv").fadeIn("fast");
					break;
				case "ERROR:INVALIDEMAIL":
					document.getElementById('errormessage_errordiv').innerHTML='Invalid Email.';
					$("#errordiv").fadeIn("fast");
					break;
				case "ERROR:NOCOUNTRY":
					document.getElementById('errormessage_errordiv').innerHTML='No country was selected';
					$("#errordiv").fadeIn("fast");
					break;
				case "ERROR:NONAME":
					document.getElementById('errormessage_errordiv').innerHTML='Please enter your name';
					$("#errordiv").fadeIn("fast");
					break;
				default:
					$("#thankscontact").fadeIn("fast");
			}
			/*if (msg == "ERROR:NOPOSTCODE") {
				document.getElementById('errormessage_errordiv').innerHTML='The postcode was entered blank.';
				$("#errordiv").fadeIn("fast");
			}else if (msg == "ERROR:NOPROD") {
				document.getElementById('errormessage_errordiv').innerHTML='No Product was selected.';
				$("#errordiv").fadeIn("fast");
			}else if (msg == "ERROR:NOEMAIL") {
				document.getElementById('errormessage_errordiv').innerHTML='No Email Address Selected.';
				$("#errordiv").fadeIn("fast");
			}else if (msg == "ERROR:INVALIDEMAIL") {
				document.getElementById('errormessage_errordiv').innerHTML='Invalid Email';
				$("#errordiv").fadeIn("fast");
			}else{
				$("#thankscontact").fadeIn("fast");
		   }*/
		}
	});//end: ajax
}