function InputHelperIn (obj, text) {
	if (obj.value == text) {
		$(obj).val('');
	}
}

function InputHelperOut (obj, text) {
	if (obj.value == '' || obj.value == text) {
		$(obj).val(text);
	}
}

function InputHelperCreate (obj, text) {
	$(obj).focus(function () {InputHelperIn(this, text);});
	$(obj).blur(function () {InputHelperOut(this, text);});
	InputHelperOut(obj, text);
}

$(document).ready(function(){
	$('.f1 input').each(function() {
		InputHelperCreate(this, this.title);
	});
	$('.f1 textarea').each(function() {
		InputHelperCreate(this, this.title);
	});
});

