	//////////////////////////////////////////////////////////////////////////////////////////////// 
	// CHANGE PASSWORD	
	function changePassword (thisForm) {
		
		status = validatePassword(thisForm.originalPassword.value);
		
		if (status != 'valid') {
				
			alert(status);
			return false;
		}
		
		if (thisForm.originalPassword.value == thisForm.confirmPassword.value) {
		
			alert('Your new password cannot be the same as your old password.');
			return false;
		}
		
		status = validatePassword(thisForm.newPassword.value);
		
		if (status != 'valid') {
				
			alert(status);
			return false;
		}
		
		
		if (thisForm.newPassword.value != thisForm.confirmPassword.value) {
		
			alert('New password and confirmation password must match.');
			return false;
		}
		
		return true;
	}
	//////////////////////////////////////////////////////////////////////////////////////////////*/ 
	
	
	//////////////////////////////////////////////////////////////////////////////////////////////// 
	// UPDATE PUBLIC INFORMATION	
	function updatePublicInfo (thisForm) {
		
		//var city = thisForm.userCity.value;
				
		//var illegalChars = /[^a-zA-Z ]/;
		
		//if (illegalChars.test(city)) {
		
			//alert('Your city can only contain letters and spaces.');
			//return false;
		//}
		
		return true;
	}
	//////////////////////////////////////////////////////////////////////////////////////////////*/ 
	
	
	//////////////////////////////////////////////////////////////////////////////////////////////// 
	// VALIDATE PASSWORD	
	function validatePassword (whPassword) {
	
		var status = 'valid';
		
    	var illegalChars = /[\W]/; 
 		
 		if ((whPassword.length < 6) || (whPassword.length > 30)) {
       		
       		status = "Invalid length. Your password must be between 6 and 30 characters.";
    	} else if (illegalChars.test(whPassword)) {
      		
      		status = "Invalid characters. Your password can only contain letters, numbers and _ or -.";
    	}
    	
    	return status;
	}
	//////////////////////////////////////////////////////////////////////////////////////////////*/ 