function validateExtension(fileName) {
	return /\.(doc|docx|pdf|wpf|txt|rtf|htm|html)$/i.test(fileName);
}

function validatePassword(source, args) {
	args.IsValid = args.Value.search(/[a-zA-Z]/) >= 0 && args.Value.search(/[0-9]/g) >= 0;
}

function show(e, s) {
	if (s) {
		if (e.style.removeAttribute) {
			e.style.removeAttribute("display");
		}
		else {
			e.style.removeProperty("display");
		}
	}
	else {
		e.style.display = 'none';
	}
	e.style.visibility = s? 'visible' : 'hidden';
}