<script language="javascript">

			function CheckMultiple480(frm, name) {
				for (var i=0; i < frm.length; i++)
				{
					fldObj = frm.elements[i];
					fldId = fldObj.id;
					if (fldId) {
						var fieldnamecheck=fldObj.id.indexOf(name);
						if (fieldnamecheck != -1) {
							if (fldObj.checked) {
								return true;
							}
						}
					}
				}
				return false;
			}
		function CheckForm480(f) {
			if (f.email.value == "") {
				alert("Please enter your email address.");
				f.email.focus();
				return false;
			}
		
						if (f.format.selectedIndex == -1) {
							alert("Please choose a format to receive your email campaigns in");
							f.format.focus();
							return false;
						}
					
					lists_chosen = CheckMultiple480(f, "lists");
					if (!lists_chosen) {
						alert("Please choose some mailing lists to subscribe to");
						return false;
					}
				
					lists_chosen = CheckMultiple480(f, "lists");
					if (!lists_chosen) {
						alert("Please choose some mailing lists to subscribe to");
						return false;
					}
				
			var fname = "CustomFields_511_480";
			var fld = document.getElementById(fname);
			if (fld.value == "") {
				alert("Please enter a value for field Surname");
				fld.focus();
				return false;
			}
		
			var fname = "CustomFields_510_480";
			var fld = document.getElementById(fname);
			if (fld.value == "") {
				alert("Please enter a value for field First Name");
				fld.focus();
				return false;
			}
		
			var fname = "CustomFields_534_480";
			var fld = document.getElementById(fname);
			if (fld.value == "") {
				alert("Please enter a value for field Company");
				fld.focus();
				return false;
			}
		
				return true;
			};
		
</script>

