	function validate(){
		var firstname=document.form1.firstname;
		var lastname=document.form1.lastname;
		var email=document.form1.email;
		var password=document.form1.password;
		var passwordConfirm=document.form1.passwordConfirm;
		var comments=document.form1.comments;
		var imageVerification=document.form1.imageVerification;
		
		if((firstname.value==null)||(firstname.value=="")){
			alert('Required Field: Firstname.');
			firstname.focus();
			return false;
		}

		if((lastname.value==null)||(lastname.value=="")){
			alert('Required Field: Lastname.');
			lastname.focus();
			return false;
		}
		
		if((email.value==null)||(email.value=="")){
			alert('Required Field: Email.');
			email.focus();
			return false;
		}

		if(echeck(email.value)==false){
			alert('Invalid Email.');
			email.focus();
			return false;
		}

		if((password.value==null)||(password.value=="")){
			alert('Required Field: Password.');
			password.focus();
			return false;
		}

		if((passwordConfirm.value==null)||(passwordConfirm.value=="")){
			alert('Required Field: Password Confirm.');
			passwordConfirm.focus();
			return false;
		}

		if(password.value!=passwordConfirm.value){
			alert('Password and Password Confirm not equal.');
			password.focus();
			return false;
		}

		if((imageVerification.value==null)||(imageVerification.value=="")){
			alert('Required Field: Security Code.');
			imageVerification.focus();
			return false;
		}
	}
