<!--
function addFavorite() {
	window.external.AddFavorite('http://www.falts.ru','www.falts.ru');
}

function CalculateIn() {
	
	if (isNaN(parseFloat(document.calculator.price.value))) alert("Неправильный формат ввода");
	else {
	
	document.calculator.youput.value = parseFloat(document.calculator.price.value)  * 0.33;
	document.calculator.youget.value = parseFloat(document.calculator.youput.value)  * 1.76;
	}
}

function voice (i) {
	eval ("window.document.v_form.parent_id.value = '"+ i +"'");
	window.document.v_form.submit();
}

var t = 0;

function newBg(idCell) {
eval('document.all.'+idCell+'.style.background = "#3B84D0"');
eval('document.getElementById("' + idCell + '").style.background = "#3B84D0"');
}

function backBg(idCell) {
eval('document.all.'+idCell+'.style.background = "#005AA9"');
eval('document.getElementById("' + idCell + '").style.background = "#005AA9"');
}

function open_menu(id) {
	str = eval('document.all["tdinner' + id + '"].style.display')
	if (str == "none") {
		 eval('document.all["tdinner' + id + '"].style.display = ""')
	} else {
		 eval('document.all["tdinner' + id + '"].style.display = "none"')
	}
}

function getElement(id) {
return document.getElementById ? document.getElementById(id) : 
document.all ? document.all(id) : null;
}

function getRealLeft(id) {
var el = getElement(id);
if (el) {
xPos = el.offsetLeft;
tempEl = el.offsetParent;
while (tempEl != null) {
xPos += tempEl.offsetLeft;
tempEl = tempEl.offsetParent;
}
return xPos;
}
}

function getRealTop(id) {
var el = getElement(id);
if (el) {
yPos = el.offsetTop;
tempEl = el.offsetParent;
while (tempEl != null) {
yPos += tempEl.offsetTop;
tempEl = tempEl.offsetParent;
}
return yPos;
}
}

function getRealRight(id) {
return getRealLeft(id) + getElement(id).offsetWidth;
}

function getRealBottom(id) {
return getRealTop(id) + getElement(id).offsetHeight;
}

function show_one (id_name, table_name) {
	var y = getRealTop(table_name);
	var x = getRealLeft(table_name);
	//x = x + 259;
	x = x + 100;
	
	eval("document.all['" + id_name + "'].style.top = " + y + "");
	eval("document.all['" + id_name + "'].style.left = " + x + "");
	eval("document.all['" + id_name + "'].style.visibility = 'visible'"); 
}

function show_also (id_name, table_name) {
	var y = getRealTop(table_name);
	var x = getRealLeft(table_name);
	
	//x = x + 259;
	x = x + 330;
	
	//y = y + 3;
	eval("document.all['" + id_name + "'].style.top = " + y + "");
	eval("document.all['" + id_name + "'].style.left = " + x + "");
	eval("document.all['" + id_name + "'].style.visibility = 'visible'"); 
}

function show_two (id_name, table_name) {
	
	var y = getRealBottom(table_name)-110;
	var x = getRealLeft(table_name)-90;
	
	
	eval("document.all['" + id_name + "'].style.top = " + y + "");
	eval("document.all['" + id_name + "'].style.left = " + x + "");
	eval("document.all['" + id_name + "'].style.visibility = 'visible'"); 
}

function hide_menu (id_menu) {
	eval("document.all['" + id_menu + "'].style.visibility = 'hidden'");
}

function hideOneMenu (id_menu, parent_menu) {
	if (document.all[id_menu].style.visibility == 'visible') {
		eval("document.all['" + id_menu + "'].style.visibility = 'visible'");
		eval("document.all['" + parent_menu + "'].style.visibility = 'visible'");
		t = setTimeout("document.all['" + parent_menu + "'].style.visibility = 'hidden'; document.all['" + id_menu + "'].style.visibility = 'hidden';", 1000);
	}
	else { 
		eval("document.all['" + id_menu + "'].style.visibility = 'hidden'");
		eval("document.all['" + parent_menu + "'].style.visibility = 'hidden'");
	}	
}

function showMenu (id_menu) {
	clearTimeout(t);
	document.all['" + id_menu + "'].style.visibility = 'visible';
}

function showSecond (parent_menu, id_menu) {
	clearTimeout(t);
	eval("document.all['" + parent_menu + "'].style.visibility = 'visible'");
	eval("document.all['" + id_menu + "'].style.visibility = 'visible'");
}

function newColor(idCell,bg_color) {
eval('document.all.'+idCell+'.style.background = "'+ bg_color +'"');
eval('document.getElementById("' + idCell + '").style.background = "'+ bg_color +'"');
}

function check_visible (div_name) {
	if (document.all[div_name].style.visibility == 'visible') return true;
	else return false;
}

function check_empty(form_name, field_name) {
	var str = eval("document."+ form_name +"."+ field_name +".value;");
	var flag_search = 0;
	for (i=0;i<str.length;i++) {
		if (str.indexOf(i) != ' ') {
			flag_search = 1;
			break;
		}
	}
	
	if (flag_search == 1) return true;
	else return false;
}

function valid_form (form_name) {
	if (
		(check_empty(form_name, 'lnumber') == true)
		 && 
		(check_empty(form_name, 'whonumber') == true)
		 && 
		(check_empty(form_name, 'whennumber') == true)
		 && 
		(check_empty(form_name, 'type_plan') == true)
		&& 
		(check_empty (form_name, 'number_plan') == true)
		&& 
		(check_empty (form_name, 'raopa') == true)
		) {
			return true;
	}
	else {
		alert('Caiieieoa iaycaoaeuiua iiey.');
		return false;
	}
}
-->