
    function check_person(form) 
    {
if(form.land.value.length == 0) 
        {
           alert('Введите название страны');
           form.land.focus();
           return false;
        }

if(form.org.value.length == 0) 
        {
           alert('Введите название организации');
           form.org.focus();
           return false;
        }
if(form.office.value.length == 0) 
        {
           alert('Введите должность');
           form.office.focus();
           return false;
        }


        if(form.l_name.value.length == 0) 
        {
           alert('Введите фамилию');
           form.l_name.focus();
           return false;
        }
        if(form.f_name.value.length == 0) 
        {
           alert('Введите имя');
           form.f_name.focus();
           return false;
        }
        if(form.address.value.length == 0) 
        {
           alert('Введите адрес');
           form.address.focus();
           return false;
        }
       
        if(form.login.value.length == 0) 
        {
           alert('Введите login');
           form.login.focus();
           return false;
        }
        if(form.password.value.length == 0) 
        {
           alert('Введите пароль');
           form.password.focus();
           return false;
        }
WriteCookies();
	}    
    function check_org(form) 
    {

	if(form.land.value.length == 0) 
        {
           alert('Введите название страны');
           form.land.focus();
           return false;
        }

	if(form.org.value.length == 0) 
        {
           alert('Введите название организации');
           form.org.focus();
           return false;
        }

	if(form.office.value.length == 0) 
        {
           alert('Введите должность');
           form.office.focus();
           return false;
        }

        if(form.o_l_name.value.length == 0) 
        {
           alert('Введите фамилию контактного лица');
           form.o_l_name.focus();
           return false;
        }
        if(form.o_f_name.value.length == 0) 
        {
           alert('Введите имя контактного лица');
           form.o_f_name.focus();
           return false;
        }
        
        
        if(form.o_email.value.length == 0) 
        {
           alert('Введите e-mail');
           form.o_email.focus();
           return false;
        }

 	if(form.o_login.value.length == 0) 
        {
           alert('Введите регистрационное имя');
           form.o_login.focus();
           return false;
        }

        if(form.o_info.value.length == 0) 
        {
           alert('Введите информацию');
           form.o_info.focus();
           return false;
        }
	}
    function check_login(form) 
    {
        if(form.login.value.length == 0) 
        {
           alert('Введите login');
           form.login.focus();
           return false;
        }
        if(form.password.value.length == 0) 
        {
           alert('Введите пароль');
           form.password.focus();
           return false;
        }
	}	    



    function GetValue(Offset)
{
var End=document.cookie.indexOf(";",Offset);
if(End == -1) 
 End = document.cookie.length;

return unescape(document.cookie.substring(Offset,End));
}

   function GetCookie(Name)
{
var Len = Name.length;
var i = 0;
while(i < document.cookie.length)
{
   var j = i + Len + 1;
   if(document.cookie.substring(i, j) == (Name + "=") )
      return GetValue(j);
i = document.cookie.indexOf(" ", i) + 1;
    if(i == 0)
    break;
}
return null;
}

   function SetCookie(Name,Value,Expire)
{
document.cookie = Name + "=" + escape(Value) + ";expires=" + Expire;
}

   function WriteCookies()
{
var Expire = "Friday, 25-Feb-2006 12:00:00 GMT)";

With(document.FEEDBACK1)
{
  SetCookie("l1_name", l_name.value, Expire);
SetCookie("f1_name", f_name.value, Expire);
SetCookie("m1_name", m_name.value, Expire);
SetCookie("address1", address.value, Expire);
SetCookie("email1", email.value, Expire);
SetCookie("login1", login.value, Expire);
SetCookie("password1", password.value, Expire);
}
}

   function GetCookies()
{
 with(document.FEEDBACK1)
{
l_name.value = GetCookie("l1_name");
f_name.value = GetCookie("f1_name");
m_name.value = GetCookie("m1_name");
address.value = GetCookie("address1");
email.value = GetCookie("email1");
login.value = GetCookie("login1");
password.value = GetCookie("password1");
}
}
    



