
/*
This function takes two strings (passwords)
Returns false if they do not match
Returns false if they are less tha 6 chars length
Otherwise returns true
*/

function confirmPasswords(pass1,pass2){

	if (pass1 != pass2){
		alert('You did not confirm the passwords correctly');
		return false;
	}

	if (pass1.length < 6){
		alert('The password must be at least 6 characters long!');
		return false;
	}
	
	return true;
	
}


