function minsk_txtarea(ref) {
	if (ref.rows <= 5) {
		return;
	}
	ref.rows = ref.rows - 5;
}

function oek_txtarea(ref) {
	if (ref.rows >= 100) {
		return;
	}
	ref.rows = ref.rows + 5;
}

function textCounter(field, countfield, maxlimit) {
	if (field.value.length > maxlimit) {
		field.value = field.value.substring(0, maxlimit);
	} else {
		countfield.value = maxlimit - field.value.length;
	}
}