// Create account validation
	function validate_form(){
		var val = "";
		var val1 = "";
		var email = /^([\w]+)(.[\w]+)*@([\w]+)(.[\w]{2,4}){1,2}$/
		
		
		val = f.name;
		if (val.value == ""){
			alert("Please enter your name.");
			return false;
		}
		
		val = f.email;
		if (val.value == "") {//  || val.value.search(email)==-1){
			alert("Please enter correct/valid email.");
			return false;
		}
		
		val = f.login;
		if(val.value == "") {
			alert("Please enter your login - the system needs it to identify your account.");
			return false;
		}
		
		val = f.pass;
		val1 = f.pass1;
		if(val.value.length < 6) {
			alert("Password should contain at least 6 symbols.");
			return false;
		}
	
		if(val.value != val1.value) {
			alert("Password has been retyped incorrectly. Please try again.");
			return false;
		}
		
		
		return true;
	}

