
var Profile = {
	update: function() {
		get('message').innerHTML = ''
		return true
	},
	check_changes: function(container) {
		var el = get('update_button')
		el.disabled = !container.inputs.count
		container.inputs.count ? core.delclass(el, 'passive') : core.addclass(el, 'passive')
	},
	input_change: function(el) {
		core.onchange(el, get('profile_form'), Profile.check_changes)
	},
	file_change: function(el) {
		get('fakename').value = el.value.split("\\").pop()
		var cont = get('profile_form')
		if (!cont.inputs) cont.inputs = { count: 0 }
		cont.inputs[100] = el
		cont.inputs.count++
		Profile.check_changes(cont)
	}
}
