/* Form validations for forms on home.html and maillist_edu.html */

function Validate(){
					var valid = false;
					var nam = validateName();
					var eml = validateEmail();
					var cit = validateCity();
					var tel = validateTelNo();
					
					if((nam == false)||(tel == false)||(eml == false)||(cit == false)){
						valid = false;
						} else {
							valid = true;
						}
					return valid;
					}
						
			function validateName(){
					var pn = document.getElementById('pname');
					valid = false;
					if(pn.value == ""){
						alert("Please enter your name and submit again!");
					} else {
						valid = true;
					}
					return valid;
				}
												
			function validateEmail(){
					var em = document.getElementById('email');
					valid = false;
					if(em.value == ""){
						alert("Please enter your e-mail address and submit again!");
					} else {
						valid = true;
					}
					return valid;
				}
				
			function validateCity(){
					var ct = document.getElementById('city');
					valid = false;
					if(ct.value == ""){
						alert("Please enter the city and submit again!");
					} else {
						valid = true;
					}
					return valid;
				}
				
				function validateTelNo(){
					var tl = document.getElementById('telnumber');
					valid = false;
					if(tl.value == ""){
						alert("Please enter your telephone number and submit again!");
					} else {
						valid = true;
					}
					return valid;
				}		
