function isFileExt(file_input, allowed_exts) {

	var allowed_exts = allowed_exts.split(","); // Turn the list of exts into an array
	var file_parts = file_input.value.split("."); // Split the file path
	var ext = file_parts[file_parts.length - 1]; // The extension will be the last element if present
	
	for (var i = 0; i < allowed_exts.length; i++) {
		if (ext.toLowerCase() == allowed_exts[i].toLowerCase()) {
			return true;
		}
	}
	
	return false;
	
}