function setValidations() {
	new Validation('admin_form', {useTitles:true});
	Validation.add('validate-75length', 'Entry must be fewer than 75 characters.', {
	     maxLength : 75 // value must be no longer than 50 characters
	});
	Validation.add('validate-250length', 'Entry must be fewer than 250 characters.', {
	     maxLength : 250 // value must be no longer than 250 characters
	});
	Validation.add('validate-5000length', 'Entry must be fewer than 5,000 characters.', {
	     maxLength : 5000 // value must be no longer than 250 characters
	});
	Validation.add('validate-password', 'Your password must be more than 5 characters and not \'password\' or the same as your username', {
	    minLength : 6,
	    notOneOf : ['password','PASSWORD','1234567','0123456'],
	    notEqualToField : 'user_name'
	});
	Validation.add('validate-confirmpass', 'Your passwords did not match.', {
	     equalToField : 'user_pass'
	});
	Validation.add('validate-duration', 'Please enter a valid duration', {
		
	});
}

//Event.observe(window, 'load', setValidations);
