function showFull(url, width, height)
{
	width = Number(width) + 50;
	height = Number(height) + 50;
	full = window.open(url, 'full', 'width=' + width + ',height=' + height + ',resizable,scrollbars');
}

function popupMsg(f) {

ok = 1;
msg = "";

// ������� ��������� ������ �� ������������.

if(!f.fio.value) { ok = 0; msg = "���\n"; }
if(!f.email.value) { ok = 0; msg += "E-mail\n"; }
if(!f.text.value) { ok = 0; msg += "���������"; }
if(ok) {

window.open("", "popmsg", "width=400, height=300, status=0, menubar=0, location=0 resizable=0 directories=0 toolbar=0")
f.submit();
f.reset();

} else alert("�� ������� ��������� ������:\n" + msg)

} 

/*-----------------------------------------------*/
/*P������ �� ������!!!---------------------------*/
/*-----------------------------------------------*/
function validForm(f) {
// ���� ������� �����, �� �������� ��������������
if (isDigit(f.value)) document.getElementById("msg").style.display = "none";
// � ��������� ������ ���������� ��������������
else document.getElementById("msg").style.display = "block";
} 
// ������� �� ��������, ����� ������� ��� ���
function isDigit(data) {
numStr="0123456789";
k = 0;
for (i=0;i<data.length;i++) {
thisChar = data.substring(i, i+1);
if (numStr.indexOf(thisChar) != -1) k++;
}
if (k == data.length) return 1
else return 0
}

/*---------------------------------------------------------*/
/*---------------------------------------------------------*/
/*---------------------------Top_Menu----------------------*/
/*---------------------------------------------------------*/
/*---------------------------------------------------------*/
function checkMenu(id)
{
	//���� ������� ������
	if(navigator.appName == "Netscape"){
//		alert(e.id);

	}
	//���� �� ������
	else{
		var objItem = window.event.toElement

		var str = objItem.id;
		var i = str.substring(str.length-2, str.length);

		if(i != id){
			document.getElementById("nameMenu"+i).className = "menuCheck"
			document.getElementById("listMenu"+i).className = "check"
			document.getElementById("nameMenu"+id).className = "menuNoCheck"
			document.getElementById("listMenu"+id).className = "nocheck"

		}
		else{
			document.getElementById("nameMenu"+id).className = "menuCheck"
			document.getElementById("listMenu"+id).className = "check"
		}
	}
}

function outTopMenu(id, e)
{
		//���� ������� ������
	if(navigator.appName == "Netscape"){
	}
	//���� �� ������
	else{
		var objItem = window.event.fromElement
		var str = objItem.id;
		var i = str.substring(str.length-2, str.length);
		if(i != id){
			document.getElementById("nameMenu"+i).className = "menuNoCheck"
			document.getElementById("listMenu"+i).className = "nocheck"
			document.getElementById("nameMenu"+id).className = "menuCheck"
			document.getElementById("listMenu"+id).className = "check"

		}
	}

}

 function Over(){
   document.getElementById('check').id = 'nocheck';
   document.getElementById('menuCheck').id = 'menuNoCheck';
 }
 function Out(){
   document.getElementById('nocheck').id = 'check';
    document.getElementById('menuNoCheck').id = 'menuCheck';
 }