//var arrAllowedExtensions = ['txt', 'doc', 'rtf', 'pdf', 'jpg', 'gif', 'png'];
Validation.addAllThese([
	['validate-upload-file', 'Please enter a valid file (txt, doc, rtf, pdf, jpg, gif, png).', function(v) {
		if(Validation.get('IsEmpty').test(v)) return true;
		return (v.length > 6 && ( v.endsWith('.txt') || v.endsWith('.doc') || v.endsWith('.rtf') || v.endsWith('.pdf') || v.endsWith('.jpg') || v.endsWith('.gif') || v.endsWith('.png') ));	 
	;}]
]);
