function check_form_gb(form)
{
	if (document.all.form.name.value != false) {
			if (document.all.form.message.value != false) {document.all.form.submit();}
			else {alert("Сообщение добавляется только вместе с текстом!");}
								   }
	else {alert("Пожалуйста, введите ваше имя.");}
}


function printmail(zone,domain,account,text)
{	var myat = String.fromCharCode(64);
	document.write('<a style="font-size: 1em; font-weight: normal;" href="mailto:');
	document.write(account + myat + domain + '.' + zone);
	if (text==null || text.length==0) {
		document.write('\">'); document.write(account + myat + domain + '.' + zone);
	} else
		document.write('\" title=\"'+text+'\">'+text);
	document.write('<\/a>');
}


var NN = (document.layers)? true : false;
var W3C = (document.getElementById && !document.all)? true : false;
var showflag=false; // флаг показа
var id=null; // id таймера
var onname=""; // имя видимого на данный момент элемента


function showmenu(div,x)
{
 killtimer(); // останавливаем таймер
 
 if(showflag) hide(); // прячем, если показывали другой элемент

 x = x + document.getElementById("border").style.left;

 if(NN)
 	{document.layers[div].left=x;
	 document.layers[div].display='block';}
 if(W3C)
	{document.getElementById(div).style.left=x;
	 document.getElementById(div).style.display='block';}
 else
 	{document.all[div].style.left=x;
 	 document.all[div].style.display='block';}


 showflag=true;
 onname=div; // элемент name показывается
}


function killtimer()
{
 if(id!=null)
  {clearTimeout(id);
   id=null;}
 return true;
}


function hide()
{
 if(id!=null) killtimer();
 if(showflag)
 	{
	if(NN) document.layers[onname].dispaly='none';
	if(W3C) document.getElementById(onname).style.display='none';
	else document.all[onname].style.display='none';}
 showflag=false;
 onname="";
 this.className='menu_labels';
}


function reset()
{ // функция закрытия элемента через полсекунды
 killtimer();
 id = setTimeout('hide()', 500);
}

function place_banner(div)
{
 x = 640;
 if(NN)
 	{
	 x = x + document.layers["border"].left + "px";
	 document.layers[div].left=x;
	 document.layers[div].display='block';}
 if(W3C)
	{
	 x = x + document.getElementById("border").style.left + "px";
	 document.getElementById(div).style.left=x;
	 document.getElementById(div).style.display='block';}
 else
 	{
	 x = x + document.all["border"].style.left + "px";
	 document.all[div].style.left=x;
 	 document.all[div].style.display='block';}
}
