  if (parseInt(navigator.appVersion)>= 4)
  {
    if (navigator.appName == "Netscape")
    {
        layerStyleRef="layer.";
        layerRef="document.layers";
        styleSwitch="";
    }
    else
    {
    layerStyleRef="layer.style.";
    layerRef="document.all";
    styleSwitch=".style";
    }
  }


function hid(layerName){
  if (parseInt(navigator.appVersion)>= 4)
  {
   eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');
  }
}

function viz(layerName)
{
    if (parseInt(navigator.appVersion)>= 4)
    {
     eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');
    }
}

function p5()
{
  if (theForm.Login.value == "")
  {
   alert("Введите имя пользователя");
   theForm.Login.focus();
   return (false);
  }

  if (theForm.Password.value == "")
  {
   alert("Введите пароль");
   theForm.Password.focus();
   return (false);
  }

  if (theForm.Password2.value == "")
  {
   alert("Повторите пароль");
   theForm.Password2.focus();
   return (false);
  }

  if (theForm.Password.value != theForm.Password2.value)
  {
   alert("Введеные пароли не совпадают. Повторите ввод пароля.");
   theForm.Password.focus();
   return (false);
  }

  if (theForm.Familia.value == "")
  {
   alert("Введите свою фамилию");
   theForm.Familia.focus();
   return (false);
  }

  if (theForm.Imia.value == "")
  {
   alert("Введите своё имя");
   theForm.Imia.focus();
   return (false);
  }

  if (theForm.Otchestvo.value == "")
  {
   alert("Введите своё отчество");
   theForm.Otchestvo.focus();
   return (false);
  }

  if (theForm.Specialnost.value == "")
  {
   alert("Укажите свою специальность");
   theForm.Specialnost.focus();
   return (false);
  }

  if (theForm.Gorod.value == "")
  {
   alert("Из какого Вы города?");
   theForm.Gorod.focus();
   return (false);
  }

  if (theForm.MestoRab.value == "")
  {
   alert("Где Вы работаете?");
   theForm.MestoRab.focus();
   return (false);
  }

  if (theForm.Dolgnost.value == "")
  {
   alert("Какая Ваша должность?");
   theForm.Dolgnost.focus();
   return (false);
  }

// alert(document.theForm.Anonim.checked);
//Anonim=document.theForm.Anonim.checked;
//alert (Anonim);
 return(true);
}



function p9_1()
{
  if (theForm.FIO.value == "")
  {
   alert("Введите Ваше имя");
   theForm.FIO.focus();
   return (false);
  }

  if (theForm.MRab.value == "")
  {
   alert("Где Вы работаете?");
   theForm.MRab.focus();
   return (false);
  }

  if (theForm.Dolgnost.value == "")
  {
   alert("Какая Ваша должность?");
   theForm.Dolgnost.focus();
   return (false);
  }

  if (theForm.Dolgnost.value == "123456")
  {
//   alert("Какая Ваша должность?");
//   theForm.Dolgnost.focus();
   return (false);
  }

  if (theForm.RabTel.value == "")
  {
   alert("Укажите контактный телефон");
   theForm.RabTel.focus();
   return (false);
  }

//  if (theForm.Imia.value == "")
//  {
//   alert("Введите Ваше имя");
//   theForm.Imia.focus();
//   return (false);
//  }

//  if (theForm.Familia.value == "")
//  {
//   alert("Введите Вашу фамилию");
//   theForm.Familia.focus();
//   return (false);
//  }

//  if (theForm.Otchestvo.value == "")
//  {
//   alert("Введите Ваше отчество");
//   theForm.Otchestvo.focus();
//   return (false);
//  }

//  if (theForm.Specialnost.value == "")
//  {
//   alert("Укажите свою специальность");
//   theForm.Specialnost.focus();
//   return (false);
//  }

//  if (theForm.MestoRab.value == "")
//  {
//   alert("Где Вы работаете?");
//   theForm.MestoRab.focus();
//   return (false);
//  }

//  if (theForm.Dolgnost.value == "")
//  {
//   alert("Какая Ваша должность?");
//   theForm.Dolgnost.focus();
//   return (false);
//  }
// // alert(document.theForm.Anonim.checked);
////Anonim=document.theForm.Anonim.checked;
////alert (Anonim);
 return(true);
}