function CheckForm(){
	var alertmessage="";
	if(document.subscribe.action[1].checked == false){
		if(document.subscribe.fore_name.value==""){
					alertmessage='  -  Forename\n';
		}
		if(document.subscribe.sur_name.value==""){
					alertmessage+='  -  Surname\n';
		}
	}
	if(document.subscribe.address.value == ""){
				alertmessage += '  -  Email\n';
	}
	if(document.subscribe.address.value != ""){
				var email = document.subscribe.address.value;
				invalidChars = " /:,;?()"
				incorrect ='';
	for(i=0; i<invalidChars.length; i++){
				badChar = invalidChars.charAt(i)
				if(email.indexOf(badChar,0) > -1){
							incorrect += '   -  Invalid Email Address\n';
							break;
							}
				}
				atPos = email.indexOf("@",1)
				if(atPos == -1){
							incorrect += '   -  Invalid Email Address\n';
				}
				if(email.indexOf("@",atPos+1) > -1){
							incorrect += '   -  Invalid Email Address\n';
				}
							periodPos = email.indexOf(".",atPos)
				if(periodPos == -1){
							incorrect += '   -  Invalid Email Address\n';
				}
				if(periodPos+3 > email.length){
							incorrect += '   -  Invalid Email Address\n';
				}           
				if(incorrect != ''){
							alertmessage += ' -  Invalid Email Address\n';
				}
	}
	if(alertmessage == ""){
				return true;
	}
	else{
				TopMessage = "You have not entered the following form elements correctly: \n\n";
				BottomMessage = "\nPlease correct these fields to continue";
				alertmessage = TopMessage + alertmessage + BottomMessage;
				alert(alertmessage);
				return false;
	}
}
