function activateInput(id1, id2, stdval) {
	el1 = $('#' + id1);
	if((typeof el1 !== undefined) && (el1)) {
		if(el1.val() == stdval) {
			el2 = $('#' + id2);
			if((typeof el2 !== undefined) && (el2)) {
				el1.css('display', 'none');
				el2.css('display', 'inline');
				el2.trigger('focus');
			}
		}
	}
}

function deactivateInput(id1, id2, stdval) {
	el1 = $('#' + id1);
	if((typeof el1 !== undefined) && (el1)) {
		if(el1.val() == '') {
			el2 = $('#' + id2);
			if((typeof el2 !== undefined) && (el2)) {
				el1.css('display', 'none');
				el2.css('display', 'inline');
			}
		}
	}
}

function focusInput(id, stdval) {
	el = $('#' + id);
	if((typeof el !== undefined) && (el)) {
		if(el.val() == stdval) {
			el.val('');
			el.css('color', '#000000');
		}
	}
}

function unfocusInput(id, stdval) {
	el = $('#' + id);
	if((typeof el !== undefined) && (el)) {
		if(el.val().length == 0) {
			el.val(stdval);
			el.css('color', '#808080');
		}
	}
}
