function CheckForm(id) {

        if (document.sendform.name.value.length < 1 && id==1) {
         alert("Пожалуйста, укажите Ваше Ф.И.О.");
                document.sendform.name.select();
                document.sendform.name.focus();
                return false;
        }
        
        if (document.sendform.email.value.length < 1 && id==1) {
         alert("Пожалуйста, укажите e-mail ");
                document.sendform.email.select();
                document.sendform.email.focus();
                return false;
        }
        if (document.sendform2.email.value.length < 1 && id==2) {
         alert("Пожалуйста, укажите e-mail ");
                document.sendform2.email.select();
                document.sendform2.email.focus();
                return false;
        }               
        if (document.sendform.organization.value.length < 1 && id==1) {
         alert("Пожалуйста, укажите организацию");
                document.sendform.organization.select();
                document.sendform.organization.focus();
                return false;
        }
        if (document.sendform.post.value.length < 1 && id==1) {
         alert("Пожалуйста, укажите Вашу должность");
                document.sendform.post.select();
                document.sendform.post.focus();
                return false;
        }
        if (document.sendform.phonek.value.length < 1 && id==1) {
         alert("Пожалуйста, укажите код города");
                document.sendform.phonek.select();
                document.sendform.phonek.focus();
                return false;
        }
        if (document.sendform.phone.value.length < 1 && id==1) {
         alert("Пожалуйста, укажите контактный телефон");
                document.sendform.phone.select();
                document.sendform.phone.focus();
                return false;
        }
                
        return true;
}

function Subscr(sub) {

            var diva = document.getElementById('allsub').getElementsByTagName('td');

            for(var i=1; i<=diva.length; i++)	{                          	
                    document.getElementById('sub'+ i).className='sub_none';                            
                    document.getElementById('subscribe_'+ i).style.display='none';
            }
            
            document.getElementById('sub'+ sub).className='sub_block';
            document.getElementById('subscribe_'+ sub).style.display='block';
}