 function block_user(num) {
 select_all(0);
 
 document.forms['mess'].elements['chz['+num+']'].checked=true;
 chng_action('/admin/messages/massblock/','_blank'); 
 } 
   
 function show_mess(num) {
 select_all(0);
 document.forms['mess'].elements['chz['+num+']'].checked=true;
 chng_action('/admin/messages/massshow/',''); 
 } 
   
 function kill_mess(num) {
 select_all(0);
 document.forms['mess'].elements['chz['+num+']'].checked=true;
 chng_action('/admin/messages/masskill/','');
   
 } 
 
  function good_mess(num) {
 select_all(0);
 document.forms['mess'].elements['chz['+num+']'].checked=true;
 chng_action('/admin/messages/massgood/','');
   
 } 
   
 function select_all(num) {
   
  var re = /^chz\[[1-9][0-9]*\]$/;
  var nchecks = 0;
  for( j in document.forms['mess'] )
  {
     if(re.test(j))
     {
       nchecks++;
     }
  
  }
  
  //nchecks = 2;
  
  if (document.images['img_select'].alt=='Убрать у всех выделение') num=0;
   
  for (i=1;i<=nchecks;i++) {
   if (num==1) {
    document.forms['mess'].elements['chz['+i+']'].checked=true
   }
   else {
    document.forms['mess'].elements['chz['+i+']'].checked=false
   }
  }
   if (num==1) {
    document.images['img_select'].src='/multimedia/images/design/minus.gif';
    document.images['img_select'].alt='Убрать у всех выделение';
    }
   else {
    document.images['img_select'].src='/multimedia/images/design/plus.gif';
    document.images['img_select'].alt='Выделить все';
    }
 } 
   
 function chng_action(action,target) {
 document.forms['mess'].action=action;
 document.forms['mess'].target=target;
 document.forms['mess'].submit();
 document.forms['mess'].action='/submit/message/';
 document.forms['mess'].target='';
 } 



function cnews_informer()
{
         var req = new JsHttpRequest();
         req.onreadystatechange = function() {
             if(req.readyState == 4) 
                document.getElementById('cnews_informer').innerHTML = req.responseText;
         }

         req.open('POST', '/ajax/inform_cnews/informCnews.php', true);
         req.send( null );
}


function exitUserFromPostings()
{
         var req = new JsHttpRequest();
         req.onreadystatechange = function() {
             if(req.readyState == 4) 
                location.reload();
         }

         req.open('POST', '/ajax/mainPage/ajaxAuthorizationItogi.php', true);
         req.send( { activator: 'exitUser' } );
}




function showInformers()
{

         var req = new JsHttpRequest();
         req.onreadystatechange = function() {
             if (req.readyState == 4) {
                 document.getElementById('pageTop').innerHTML = req.responseText;
             }
         }

         req.open('POST', '/ajax/news/ajaxNewsPageTop.php', true);
         req.send( null );


}

function showPosts(myear, murl)
{
         
         
         
         var req = new JsHttpRequest();
         req.onreadystatechange = function() {
             if (req.readyState == 4) {
                 document.getElementById('newsPosts').innerHTML = req.responseText;
             }
         }

         req.open('POST', '/ajax/news/ajaxNewsPosts.php', true);
         req.send( {year: myear , url: murl , ajaxRandom: Math.round(Math.random() * 1000000000)} );


}
function showPosts_new(myear, murl)
{
         var req = new JsHttpRequest();
         req.onreadystatechange = function() {
             if (req.readyState == 4) {
                 document.getElementById('newsPosts').innerHTML = req.responseText;
             }
         }

         req.open('POST', '/ajax/news/ajaxNewsPosts_new.php', true);
         req.send( {year: myear , url: murl , ajaxRandom: Math.round(Math.random() * 1000000000)} );


}

function showPosts_newWorks(myear, murl)
{
         var req = new JsHttpRequest();
         req.onreadystatechange = function() {
             if (req.readyState == 4) {
                 document.getElementById('newsPosts').innerHTML = req.responseText;
             }
         }

         req.open('POST', '/ajax/news/ajaxNewsPosts_newWorks.php', true);
         req.send( {year: myear , url: murl , ajaxRandom: Math.round(Math.random() * 1000000000)} );


}
function showPosts_newWorksNoForm(myear, murl)
{
         var req = new JsHttpRequest();
         req.onreadystatechange = function() {
             if (req.readyState == 4) {
                 document.getElementById('newsPosts').innerHTML = req.responseText;
             }
         }

         req.open('POST', '/ajax/news/ajaxNewsPosts_newWorksNoForm.php', true);
         req.send( {year: myear , url: murl , ajaxRandom: Math.round(Math.random() * 1000000000)} );


}

function showBrothers(mfilename)
{

         var req = new JsHttpRequest();
         req.onreadystatechange = function() {
             if (req.readyState == 4) {
                 document.getElementById('newsBrothers').innerHTML = req.responseText;
             }
         }

         req.open('POST', '/ajax/news/ajaxNewsBrothers.php', true);
         req.send( { filename: mfilename } );


}

function showRedTram()
{

         var req = new JsHttpRequest();
         req.onreadystatechange = function() {
             if (req.readyState == 4) {
                 document.getElementById('redTram').innerHTML = req.responseText;
             }
         }

         req.open('POST', '/ajax/news/ajaxRedTram.php', true);
         req.send( null );
}


function showRightPanel()
{

         var req = new JsHttpRequest();
         req.onreadystatechange = function() {
             if (req.readyState == 4) {
                 document.getElementById('rightPanel').innerHTML = req.responseText;
             }
         }
         
         req.open('POST', '/ajax/news/ajaxRightPanel.php', true);
         req.send( null );
}


function showLeftMenu()
{


         var req = new JsHttpRequest();
         req.onreadystatechange = function() {
             if (req.readyState == 4) {
                 document.getElementById('leftMenu').innerHTML = req.responseText;
             }
         }
         
         req.open('POST', '/ajax/news/ajaxLeftMenu.php', true);
         req.send( null );


}

function showLeftMenu_part1()
{
         var req = new JsHttpRequest();
         req.onreadystatechange = function() {
             if (req.readyState == 4) {
                 document.getElementById('leftMenu_part1').innerHTML = req.responseText;
             }
         }
         
         req.open('POST', '/ajax/news/ajaxMenuCellsNews.php', true);
         req.send( null );
}

function showLeftMenu_part2()
{
         var req = new JsHttpRequest();
         req.onreadystatechange = function() {
             if (req.readyState == 4) {
                 document.getElementById('leftMenu_part2').innerHTML = req.responseText;
             }
         }
         
         req.open('POST', '/ajax/news/ajaxMenuCellsNews_part2.php', true);
         req.send( null );
}



function showLeftMenu2()
{


         var req = new JsHttpRequest();
         req.onreadystatechange = function() {
             if (req.readyState == 4) {
                 document.getElementById('leftMenu2').innerHTML = req.responseText;
             }
         }
         
         req.open('POST', '/ajax/news/ajaxLeftMenu2.php', true);
         req.send( null );


}


function showBanners()
{

         var req = new JsHttpRequest();
         req.onreadystatechange = function() {
             if (req.readyState == 4) {
                 //document.getElementById('SostavBanner1').innerHTML = (req.responseJS.SostavBanner1 != null)?(req.responseJS.SostavBanner1):('');
                 document.getElementById('SostavBanner4').innerHTML = (req.responseJS.SostavBanner4 != null)?(req.responseJS.SostavBanner4):('');
                 document.getElementById('SostavBanner5').innerHTML = (req.responseJS.SostavBanner5 != null)?(req.responseJS.SostavBanner5):('');
             }
         }
         
         req.open('POST', '/ajax/news/ajaxShowBanners.php', true);
         req.send( null );         


}

function showEditButton(murl)
{

         var req = new JsHttpRequest();
         req.onreadystatechange = function() {
             if (req.readyState == 4) {
                 document.getElementById('editButton').innerHTML = req.responseText;
             }
         }
         
         req.open('POST', '/ajax/news/ajaxEditButton.php', true);
         req.send( {url : murl} );

}


function searchSinchrone()
{

      if(sForm.action == '/prints/')
      {
        sForm.INDEX_DATA.value=sForm.q.value;
        sForm.atext.value='';
      }

      if(sForm.action=='/movies/')
      {
        sForm.atext.value=sForm.q.value;
        sForm.INDEX_DATA.value='';
      
      }

      return true;



} 



function pressSearchTab(obj)
{
         
         document.getElementById('ts1').className='searchButOut';
         document.getElementById('ts2').className='searchButOut';
         document.getElementById('ts3').className='searchButOut';
         obj.className = 'searchButOver';

         if(obj.id == 'ts1')
         {
           sForm.action = '/search/';
         }

         if(obj.id == 'ts3')
         {
           sForm.action='/prints/';
           sForm.INDEX_DATA.value=sForm.q.value; 
         }
         
         if(obj.id == 'ts2')
         {
           sForm.action='/movies/';
           sForm.atext.value=sForm.q.value;
         }
}











 function setAuthorization()
 {
          if( document.getElementById('authorizator_popup').style.display == 'block' )
          {
            document.getElementById('authorizator_popup').innerHTML     = '';
            document.getElementById('authorizator_popup').style.display = 'none';
            return;            
          }
          else
          {
              var req = new JsHttpRequest();
              req.onreadystatechange = function() {
                  if (req.readyState == 4) {
                      document.getElementById('authorizator').innerHTML = req.responseText;
                  }
              }

              req.open('POST', '/ajax/mainPage/ajaxAuthorization.php', true);
              req.send( null );
          }
 } 
 function authorizationUser(USER_NAME, USER_PASSWORD)
 {
          var req = new JsHttpRequest();
          req.onreadystatechange = function() {
              if(req.readyState == 4) 
              { 
                if( req.responseJS.FINISH == 1 )
                  window.location.href = location.href;
                else
                {
                    document.getElementById('err_USER_NAME').innerHTML = ((req.responseJS.MESS.USER_NAME)?(req.responseJS.MESS.USER_NAME):(''));
                    document.getElementById('err_USER_PASSWORD').innerHTML = ((req.responseJS.MESS.USER_PASSWORD)?(req.responseJS.MESS.USER_PASSWORD):(''));
                    if( req.responseJS.MESS.USER_CANT_LOGIN )
                      alert(req.responseJS.MESS.USER_CANT_LOGIN);                    
                }
              }
          }

          req.open('POST', '/ajax/mainPage/ajaxAuthorization.php', true);
          req.send( { USER_NAME: USER_NAME, USER_PASSWORD: USER_PASSWORD, activator: 'authorizationUser' } );
 }
 function exitUser()
 {  
          document.getElementById('authorizator_popup').innerHTML     = '';
          document.getElementById('authorizator_popup').style.display = 'none';

          var req = new JsHttpRequest();
          req.onreadystatechange = function() {
              if(req.readyState == 4) 
              {
                document.getElementById('authorizator').innerHTML = req.responseText;
              }
          }

          req.open('POST', '/ajax/mainPage/ajaxAuthorization.php', true);
          req.send( { activator: 'exitUser' } );
 }
 function showRegistrationForm()
 {
          
          if( document.getElementById('authorizator_popup').style.display == 'block' )
          {
            document.getElementById('authorizator_popup').innerHTML     = '';
            document.getElementById('authorizator_popup').style.display = 'none';
            return;            
          }
          else
          {
              document.getElementById('authorizator_popup').style.display = 'block';
              document.getElementById('authorizator_popup').innerHTML = '<div style="color:white; background:#396391; padding:3px; font-weight:bold; font-size:10px;"><a style="font-weight:bold; float:right; color:white; text-decoration:none;" href="javascript:closeFormPopup()">X</a>Регистрация за 2 секунды</div>';

              var req = new JsHttpRequest();
              req.onreadystatechange = function() {
                  if(req.readyState == 4) 
                  {
                    document.getElementById('authorizator_popup').innerHTML += req.responseText;
                  }
              }

              req.open('POST', '/ajax/mainPage/ajaxAuthorization.php', true);
              req.send( { navigator: 'registrationForm' } );
          }
 }
 function registrationUser()
 {
          var req = new JsHttpRequest();
          req.onreadystatechange = function() {
              if(req.readyState == 4) 
              {
                if( req.responseJS.FINISH == 0 )                  
                {
                    document.getElementById('err_REG_USER_BIRTHDAY'   ).innerHTML = ((req.responseJS.MESS.REG_USER_BIRTHDAY   )?(req.responseJS.MESS.REG_USER_BIRTHDAY   ):(''));
                    document.getElementById('err_REG_USER_LOGIN'      ).innerHTML = ((req.responseJS.MESS.REG_USER_LOGIN      )?(req.responseJS.MESS.REG_USER_LOGIN      ):(''));
                    document.getElementById('err_REG_USER_PASSWORD'   ).innerHTML = ((req.responseJS.MESS.REG_USER_PASSWORD   )?(req.responseJS.MESS.REG_USER_PASSWORD   ):(''));
                    document.getElementById('err_REG_USER_PASSWORD2'  ).innerHTML = ((req.responseJS.MESS.REG_USER_PASSWORD2  )?(req.responseJS.MESS.REG_USER_PASSWORD2  ):(''));
                    document.getElementById('err_REG_USER_FIRST_NAME' ).innerHTML = ((req.responseJS.MESS.REG_USER_FIRST_NAME )?(req.responseJS.MESS.REG_USER_FIRST_NAME ):(''));
                    document.getElementById('err_REG_USER_LAST_NAME'  ).innerHTML = ((req.responseJS.MESS.REG_USER_LAST_NAME  )?(req.responseJS.MESS.REG_USER_LAST_NAME  ):(''));
                    document.getElementById('err_REG_USER_MIDDLE_NAME').innerHTML = ((req.responseJS.MESS.REG_USER_MIDDLE_NAME)?(req.responseJS.MESS.REG_USER_MIDDLE_NAME):(''));
                    document.getElementById('err_REG_USER_EMAIL'      ).innerHTML = ((req.responseJS.MESS.REG_USER_EMAIL      )?(req.responseJS.MESS.REG_USER_EMAIL      ):(''));
                    document.getElementById('err_REG_USER_COMPANY'    ).innerHTML = ((req.responseJS.MESS.REG_USER_COMPANY    )?(req.responseJS.MESS.REG_USER_COMPANY    ):(''));
                    document.getElementById('err_REG_USER_SPECIALITY' ).innerHTML = ((req.responseJS.MESS.REG_USER_SPECIALITY )?(req.responseJS.MESS.REG_USER_SPECIALITY ):(''));
                    document.getElementById('err_REG_USER_FILE'       ).innerHTML = ((req.responseJS.MESS.REG_USER_FILE       )?(req.responseJS.MESS.REG_USER_FILE       ):(''));
                    document.getElementById('err_REG_USER_SEX'        ).innerHTML = ((req.responseJS.MESS.REG_USER_SEX        )?(req.responseJS.MESS.REG_USER_SEX        ):(''));
                }
                else
                {
                    closeFormPopup()            ;
                    alert(req.responseJS.FINISH);
                }
              }
          }

          var SEX;
          if( document.REG_USERS.REG_USER_SEX[0].checked )
            SEX = document.REG_USERS.REG_USER_SEX[0].value;
          else
              if( document.REG_USERS.REG_USER_SEX[1].checked )
                SEX = document.REG_USERS.REG_USER_SEX[1].value;

          req.open('POST', '/ajax/mainPage/ajaxAuthorization.php', true);
          req.send( {  
                      REG_USER_BIRTHDAY    : document.getElementById('REG_USER_BIRTHDAY'   ).value ,
                      REG_USER_LOGIN       : document.getElementById('REG_USER_LOGIN'      ).value ,
                      REG_USER_PASSWORD    : document.getElementById('REG_USER_PASSWORD'   ).value ,
                      REG_USER_PASSWORD2   : document.getElementById('REG_USER_PASSWORD2'  ).value ,
                      REG_USER_FIRST_NAME  : document.getElementById('REG_USER_FIRST_NAME' ).value ,
                      REG_USER_LAST_NAME   : document.getElementById('REG_USER_LAST_NAME'  ).value ,
                      REG_USER_MIDDLE_NAME : document.getElementById('REG_USER_MIDDLE_NAME').value ,
                      REG_USER_EMAIL       : document.getElementById('REG_USER_EMAIL'      ).value ,
                      REG_USER_COMPANY     : document.getElementById('REG_USER_COMPANY'    ).value ,
                      REG_USER_SPECIALITY  : document.getElementById('REG_USER_SPECIALITY' ).value ,
                      REG_USER_FILE        : document.getElementById('REG_USER_FILE')              ,
                      REG_USER_SEX         : SEX                                                   ,
                      activator            : 'registrationUser'
                    } );
 }
 function showProfileForm()
 {
          if( document.getElementById('authorizator_popup').style.display == 'block' )
          {
            document.getElementById('authorizator_popup').innerHTML     = '';
            document.getElementById('authorizator_popup').style.display = 'none';
            return;            
          }
          else
          {
              document.getElementById('authorizator_popup').style.display = 'block';
              document.getElementById('authorizator_popup').innerHTML = '<div style="color:white; background:#396391; padding:3px; font-weight:bold; font-size:10px;"><a style="font-weight:bold; float:right; color:white; text-decoration:none;" href="javascript:closeFormPopup()">X</a>Редактирование профайла</div>';

              var req = new JsHttpRequest();
              req.onreadystatechange = function() {
                  if(req.readyState == 4) 
                  {
                    document.getElementById('authorizator_popup').innerHTML += req.responseText;
                  }
              }

              req.open('POST', '/ajax/mainPage/ajaxAuthorization.php', true);
              req.send( { navigator: 'profileForm' } );
          }
 }
 function saveProfileUser()
 {
          var req = new JsHttpRequest();
          req.onreadystatechange = function() 
          {
              if(req.readyState == 4) 
              {
                if( req.responseJS.FINISH == 0 )                  
                {
                    document.getElementById('err_PROFILE_USER_BIRTHDAY'   ).innerHTML = ((req.responseJS.MESS.PROFILE_USER_BIRTHDAY   )?(req.responseJS.MESS.PROFILE_USER_BIRTHDAY   ):(''));
                    document.getElementById('err_PROFILE_USER_LOGIN'      ).innerHTML = ((req.responseJS.MESS.PROFILE_USER_LOGIN      )?(req.responseJS.MESS.PROFILE_USER_LOGIN      ):(''));
                    document.getElementById('err_PROFILE_USER_FIRST_NAME' ).innerHTML = ((req.responseJS.MESS.PROFILE_USER_FIRST_NAME )?(req.responseJS.MESS.PROFILE_USER_FIRST_NAME ):(''));
                    document.getElementById('err_PROFILE_USER_LAST_NAME'  ).innerHTML = ((req.responseJS.MESS.PROFILE_USER_LAST_NAME  )?(req.responseJS.MESS.PROFILE_USER_LAST_NAME  ):(''));
                    document.getElementById('err_PROFILE_USER_MIDDLE_NAME').innerHTML = ((req.responseJS.MESS.PROFILE_USER_MIDDLE_NAME)?(req.responseJS.MESS.PROFILE_USER_MIDDLE_NAME):(''));
                    document.getElementById('err_PROFILE_USER_EMAIL'      ).innerHTML = ((req.responseJS.MESS.PROFILE_USER_EMAIL      )?(req.responseJS.MESS.PROFILE_USER_EMAIL      ):(''));
                    document.getElementById('err_PROFILE_USER_COMPANY'    ).innerHTML = ((req.responseJS.MESS.PROFILE_USER_COMPANY    )?(req.responseJS.MESS.PROFILE_USER_COMPANY    ):(''));
                    document.getElementById('err_PROFILE_USER_SPECIALITY' ).innerHTML = ((req.responseJS.MESS.PROFILE_USER_SPECIALITY )?(req.responseJS.MESS.PROFILE_USER_SPECIALITY ):(''));
                    document.getElementById('err_PROFILE_USER_FILE'       ).innerHTML = ((req.responseJS.MESS.PROFILE_USER_FILE       )?(req.responseJS.MESS.PROFILE_USER_FILE       ):(''));
                    document.getElementById('err_PROFILE_USER_SEX'        ).innerHTML = ((req.responseJS.MESS.PROFILE_USER_SEX        )?(req.responseJS.MESS.PROFILE_USER_SEX        ):(''));
                }
                else
                {
                    setAuthorization()           ;
                    closeFormPopup()             ;
                    alert(req.responseJS.FINISH) ;
                }
              }
          }

          var SEX;
          if( document.PROFILE_USERS.PROFILE_USER_SEX[0].checked )
            SEX = document.PROFILE_USERS.PROFILE_USER_SEX[0].value;
          else
              if( document.PROFILE_USERS.PROFILE_USER_SEX[1].checked )
                SEX = document.PROFILE_USERS.PROFILE_USER_SEX[1].value;

          req.open('POST', '/ajax/mainPage/ajaxAuthorization.php', true);
          req.send( { PROFILE_USER_BIRTHDAY    : document.getElementById('PROFILE_USER_BIRTHDAY'   ).value ,
                      PROFILE_USER_LOGIN       : document.getElementById('PROFILE_USER_LOGIN'      ).value ,
                      PROFILE_USER_FIRST_NAME  : document.getElementById('PROFILE_USER_FIRST_NAME' ).value ,
                      PROFILE_USER_LAST_NAME   : document.getElementById('PROFILE_USER_LAST_NAME'  ).value ,
                      PROFILE_USER_MIDDLE_NAME : document.getElementById('PROFILE_USER_MIDDLE_NAME').value ,
                      PROFILE_USER_EMAIL       : document.getElementById('PROFILE_USER_EMAIL'      ).value ,
                      PROFILE_USER_COMPANY     : document.getElementById('PROFILE_USER_COMPANY'    ).value ,
                      PROFILE_USER_SPECIALITY  : document.getElementById('PROFILE_USER_SPECIALITY' ).value ,
                      PROFILE_USER_FILE        : document.getElementById('PROFILE_USER_FILE')              ,
                      PROFILE_USER_SEX         : SEX                                                       ,
                      activator                : 'saveProfile'
                    } );
 }
 function changeProfilePassword()
 {
          var req = new JsHttpRequest();
          req.onreadystatechange = function() 
          {
              if(req.readyState == 4) 
              {
                if( req.responseJS.FINISH == 0 )                  
                {
                    document.getElementById('err_PROFILE_USER_PASSWORD').innerHTML = ((req.responseJS.MESS.PROFILE_USER_PASSWORD)?(req.responseJS.MESS.PROFILE_USER_PASSWORD):(''));
                    document.getElementById('err_PROFILE_USER_PASSWORD2' ).innerHTML = ((req.responseJS.MESS.PROFILE_USER_PASSWORD2)?(req.responseJS.MESS.PROFILE_USER_PASSWORD2):(''));
                }
                else
                {
                    closeFormPopup()             ;
                    alert(req.responseJS.FINISH) ;
                }
              }
          }

          req.open('POST', '/ajax/mainPage/ajaxAuthorization.php', true);
          req.send( {  
                      PROFILE_USER_PASSWORD    : document.getElementById('PROFILE_USER_PASSWORD').value ,
                      PROFILE_USER_PASSWORD2   : document.getElementById('PROFILE_USER_PASSWORD2').value ,
                      activator                : 'changePassword'
                    } );
 }
 function rememberPasswordForm()
 {
          if( document.getElementById('authorizator_popup').style.display == 'block' )
          {
            document.getElementById('authorizator_popup').innerHTML     = '';
            document.getElementById('authorizator_popup').style.display = 'none';
            return;            
          }
          else
          {
              document.getElementById('authorizator_popup').style.display = 'block';
              document.getElementById('authorizator_popup').innerHTML = '<div style="color:white; background:#396391; padding:1px; font-weight:bold; font-size:10px;"><a style="font-weight:bold; float:right; color:white; text-decoration:none;" href="javascript:closeFormPopup()">X</a>Напоминание пароля</div>';

              var req = new JsHttpRequest();
              req.onreadystatechange = function() 
              {
                  if(req.readyState == 4) 
                  {
                    document.getElementById('authorizator_popup').innerHTML += req.responseText;
                  }
              }

              req.open('POST', '/ajax/mainPage/ajaxRememberPassword.php', true);
              req.send( null );
          }
 }
 function rememberPassword(EMAIL)
 {
          var req = new JsHttpRequest();
          req.onreadystatechange = function() 
          {
              if(req.readyState == 4) 
              {
                if( req.responseJS.COMPLITE != 0 )
                {                                    
                  document.getElementById('authorizator_popup').innerHTML  = '<div style="color:white; background:#396391; padding:1px; font-weight:bold; font-size:10px;"><a style="font-weight:bold; float:right; color:white; text-decoration:none;" href="javascript:closeFormPopup()">X</a>Напоминание пароля</div>';
                  document.getElementById('authorizator_popup').innerHTML += '<div style="text-align:center; padding:3px">'+req.responseJS.COMPLITE+'</div>';
                }
                else
                {
                    if( req.responseJS.ERR )
                      document.getElementById('err_REMEMBER_EMAIL').innerHTML = ((req.responseJS.ERR)?(req.responseJS.ERR):(''));
                }
              }
          }

          req.open('POST', '/ajax/mainPage/ajaxRememberPassword.php', true);
          req.send( { Email: EMAIL } );
 }
 function setBlackPanel()
 { 
          var req = new JsHttpRequest();
          req.onreadystatechange = function() 
          {
              if(req.readyState == 4) 
              {
                document.getElementById('blackPanelPlace').innerHTML = req.responseText;
              }
          }

          req.open('POST', '/ajax/mainPage/ajaxBlackPanel.php', true);
          req.send( null );
 }
 function setSearcherForm()
 {
          var req = new JsHttpRequest();
          req.onreadystatechange = function() 
          {
              if(req.readyState == 4) 
              {
                document.getElementById('searchPlace').innerHTML = req.responseText;
              }
          }

          req.open('POST', '/ajax/mainPage/ajaxSearcher.php', true);
          req.send( null );
 }

