function confirmLink(theLink) {var is_confirmed = confirm('Удаление записи! Вы уверены?'); return is_confirmed;};
function open_window(http,type) {window.open(''+http+'://rfpro.ru/?'+type+'', 'Tools', config='height=550,width=605,resizable=yes,scrollbars=yes'); return;};
function open_window2(http,type) {window.open(''+http+'://rfpro.ru/'+type+'', 'Tools', config='height=550,width=605,resizable=yes,scrollbars=yes'); return;};
function small_window(http,type) {window.open(''+http+'://rfpro.ru/?'+type+'', 'Tools', config='height=300,width=450,resizable=no,scrollbars=no'); return;};
function blur2() {document.form2.button.blur(); document.form2.button.disabled = true; return;}
function textCounter(field, counter) {counter.value = field.value.length;}
function CheckDisable(field, butname) {if (field.value.length == 0) {butname.disabled = true} else {butname.disabled = false}; return}
function x() {return;}

function CheckUncheck(form_name, id_checkbox) {
	if (form_name.id_checkbox.checked == true) {
		form_name.id_checkbox.checked = false;
	} else {
		form_name.id_checkbox.checked = true;
	};
}

function resize_textarea(to, id) {
	var orig = 10; // устанавливаем высоту по умолчанию
	var step = 5; // устанавливаем шаг, на который будем уменьшать или увеличивать высоту

	// получаем переменную с ID textarea
	var textarea = document.getElementById(id);

	// если необходимо уменьшить поле
	if (to == 0) {
		// если текущая высота меньше или равна высоте по умолчанию, присваиваем значение по умолчанию
		if (textarea.rows <= orig) {textarea.rows = orig}
			else {textarea.rows -= step};

	// если необходимо увеличить поле
	} else {
		textarea.rows += step;
	};
	
	return false;	
}

function newColor(idCell, color1) {
	if (document.all) eval('document.all.'+idCell+'.style.background = "'+color1+'"');
	else eval('document.getElementById("' + idCell + '").style.background = "'+color1+'"');
}

function backColor(idCell, color1) {
	if (document.all) eval('document.all.'+idCell+'.style.background = "'+color1+'"');
	else eval('document.getElementById("' + idCell + '").style.background = "'+color1+'"');
}









