function checkInput(obj, str) {
	if (str) {
		if ('' === obj.value) {
			obj.setAttribute('class', 'hasInput');
			obj.setAttribute('className', 'hasInput');
		}
	} else {
		if ('' === obj.value) {
			if ('mid' === obj.id) {
				obj.setAttribute('class', 'mid');
				obj.setAttribute('className', 'mid');
			} else {
				obj.setAttribute('class', 'pwd');
				obj.setAttribute('className', 'pwd');
			}
		}
	}
}