function CheckData() {
	error = new Array(); 
	
	if (document.contact.Email.value.length <= 0) {
		//alert ("Please enter your email address.");	
		
		document.contact.Email.focus();
		document.contact.Email.style.border="#FF0000 1px solid";
		var problem = true;
		error += new Array("Please enter your email address.\n"); 
	} else {
	
		var hasDot = document.contact.Email.value.indexOf(".");
		var hasAt =  document.contact.Email.value.indexOf("@");
						
		if (hasDot == -1 || hasAt == -1) {
			//alert("Please enter a valid email address.");	
			document.contact.Email.style.border="#FF0000 1px solid";
			var problem = true;
			error += new Array("Please enter a valid email address.\n"); 
		}
	}
	
	
	if ((document.contact.name.value.length <= 0)||(document.contact.question.value=='*')) {
		//alert ("Please enter your name.");
		document.contact.name.style.border="#FF0000 1px solid";
		error += new Array("Please enter your name.\n"); 
		var problem = true;
	}
	if ((document.contact.question.value.length <= 0)||(document.contact.question.value=='*')) {
		//alert ("Please enter your name.");
		document.contact.question.style.border="#FF0000 1px solid";
		error += new Array("Please enter your question.\n"); 
		var problem = true;
	}
	
	if (problem == true) {
		alert(error);
		return false;
	} else {
		confirm('You voluntarily choose to provide personal details to us via this website. Personal information will be treated as confidential by us and held in accordance with the Data Protection Act 1998. You agree that such personal information may be used to provide you with details of services and products in writing, by email or by telephone.');
		return true;
	}
}
	
	
function CheckData2() {
	error = new Array(); 
	
	if (document.contact.EmailAddress.value.length <= 0) {
		//alert ("Please enter your email address.");	
		
		document.contact.EmailAddress.focus();
		document.contact.EmailAddress.style.border="#FF0000 1px solid";
		var problem = true;
		error += new Array("Please enter your email address.\n"); 
	} else {
	
		var hasDot = document.contact.EmailAddress.value.indexOf(".");
		var hasAt =  document.contact.EmailAddress.value.indexOf("@");
						
		if (hasDot == -1 || hasAt == -1) {
			//alert("Please enter a valid email address.");	
			document.contact.EmailAddress.style.border="#FF0000 1px solid";
			var problem = true;
			error += new Array("Please enter a valid email address.\n"); 
		}
	}
	
	
	if ((document.contact.name.value.length <= 0)||(document.contact.name.value=='*')) {
		//alert ("Please enter your name.");
		document.contact.name.style.border="#FF0000 1px solid";
		error += new Array("Please enter your name.\n"); 
		var problem = true;
	}
	
	
	if ((document.contact.enquiry.value.length <= 0)||(document.contact.enquiry.value=='*')) {
		//alert ("Please enter your name.");
		document.contact.enquiry.style.border="#FF0000 1px solid";
		error += new Array("Please enter your enquiry.\n"); 
		var problem = true;
	}
	
	
	if (problem == true) {
		alert(error);
		return false;
	} else {
		if(confirm('You voluntarily choose to provide personal details to us via this website. Personal information will be treated as confidential by us and held in accordance with the Data Protection Act 1998. You agree that such personal information may be used to provide you with details of services and products in writing, by email or by telephone.')){
		return true;	
		}else{
		return false;
		}
	}
}

function NewsletterCheck(){
	error = new Array(); 
	
	if (document.news.Email.value.length <= 0) {
		//alert ("Please enter your email address.");	
		
		document.news.Email.focus();
		document.news.Email.style.border="#FF0000 1px solid";
		var problem = true;
		error += new Array("Please enter your email address.\n"); 
	} else {
	
		var hasDot = document.news.Email.value.indexOf(".");
		var hasAt =  document.news.Email.value.indexOf("@");
						
		if (hasDot == -1 || hasAt == -1) {
			//alert("Please enter a valid email address.");	
			document.news.Email.style.border="#FF0000 1px solid";
			var problem = true;
			error += new Array("Please enter a valid email address.\n"); 
		}
	}
	if (problem == true) {
		alert(error);
		return false;
	} else {
		if(confirm('You voluntarily choose to provide personal details to us via this website. Personal information will be treated as confidential by us and held in accordance with the Data Protection Act 1998. You agree that such personal information may be used to provide you with details of services and products in writing, by email or by telephone.')){
		return true;	
		}else{
		return false;
		}
		//
	}
	
}
		
