function ShowWin(furl,fh,fw,name)
  {
   window.open(furl, name, "toolbar=no,menubar=no,scrollbars=yes,resizable=no,height="+fh+",width="+fw+",top=100,left=100");
   return false;
  }
function helpWin(url) {
        var popupWin = window.open(url, 'f1', 'scrollbars=yes,height=300,width=400,left=200,top=200');
        if (window.focus) {
                popupWin.focus();
        }
        }

function supportWin(url,w,h) {
        w = w + 20;
        h = h + 20;
        var popupWin = window.open('wait.html', 'f1', 'scrollbars=no,height='+h+',width='+w+',left=100,top=100');
        if (window.focus) {
                popupWin.focus();

        }
        popupWin.document.write('<html><title>Техническая поддержка</title><body bgcolor=#ffffff topmargin=10 leftmargin=10><a href="javascript:window.close();"><img src=/images/support/'+url+' border=0 alt="Закрыть окно"></a></body></html>');
        }

   function check_ru()  {
	document.all.COMMENTS.value = document.all.host_ru.value;
      }
   function check_com() {
        document.all.COMMENTS.value = document.all.host_com.value;
      }

   function check_pofig() {
        document.all.COMMENTS.value = document.all.pofig_host.value;
      }

function change_top_menu(id)
{
	constructor = document.getElementById('constructor_form');
	mail = document.getElementById('mail_form');
	panel = document.getElementById('panel_form');
	if (id == '0')
		{
			constructor.style.display = 'none';
			mail.style.display = 'none';
			panel.style.display = '';
		}
	else if (id == '1')
		{
			constructor.style.display = '';
			mail.style.display = 'none';
			panel.style.display = 'none';
		}
	else if (id == '2')
		{
			constructor.style.display = 'none';
			mail.style.display = '';
			panel.style.display = 'none';
		}
	return true;
}
