function SelFltrAuto(ch, s){
  TmpChecked = '0';
  p = '';

  if ( s == 0 ) {
    TmpChecked = 1;
    p = 'fltr_check_full'; 
  }   
  else {
    TmpChecked = 0;      
    p = 'fltr_check_empty'; 
  }
 
  if ( ch == 'ch1' ) {
    document.getElementById('I' + ch).innerHTML = '<img src=\"/img/45.gif\" style=\"cursor: hand;\" onclick=SelFltrAuto(\"' + ch + '\",' + TmpChecked + ')>'; }

  if ( ch == 'ch2' ) {
    document.getElementById('I' + ch).innerHTML = '<img src=\"/img/46.gif\" style=\"cursor: hand;\" onclick=SelFltrAuto(\"' + ch + '\",' + TmpChecked + ')>'; }

  if ( ch == 'ch3' ) {
    document.getElementById('I' + ch).innerHTML = '<img src=\"/img/47.gif\" style=\"cursor: hand;\" onclick=SelFltrAuto(\"' + ch + '\",' + TmpChecked + ')>'; }

  document.getElementById(ch).innerHTML = '<img src=\"/img/' + p + '.gif\" onclick=SelFltrAuto(\"' + ch + '\",' + TmpChecked + ')>';
  document.getElementById('H' + ch).innerHTML = '<div id=\"H' + ch + '\"> <input name=\"H' + ch + '\" type=\"hidden\" value=\"' + TmpChecked + '\"> </div>';
  
}

function SelFltrWeather(ch, s){

  TmpChecked = '0';
  p = '';

  if ( s == 0 ) {
    TmpChecked = 1;
    p = 'fltr_check_full'; 
  }   
  else {
    TmpChecked = 0;      
    p = 'fltr_check_empty'; 
  }
 
  if ( ch == 'ch4' ) {
    document.getElementById('I' + ch).innerHTML = '<img src=\"/img/48.gif\" style=\"cursor: hand;\" onclick=SelFltrWeather(\"' + ch + '\",' + TmpChecked + ')>'; }

  if ( ch == 'ch5' ) {
    document.getElementById('I' + ch).innerHTML = '<img src=\"/img/49.gif\" style=\"cursor: hand;\" onclick=SelFltrWeather(\"' + ch + '\",' + TmpChecked + ')>'; }

  if ( ch == 'ch6' ) {
    document.getElementById('I' + ch).innerHTML = '<img src=\"/img/50.gif\" style=\"cursor: hand;\" onclick=SelFltrWeather(\"' + ch + '\",' + TmpChecked + ')>'; }

  document.getElementById(ch).innerHTML = '<img src=\"/img/' + p + '.gif\" onclick=SelFltrWeather(\"' + ch + '\",' + TmpChecked + ')>';
  document.getElementById('H' + ch).innerHTML = '<div id=\"H' + ch + '\"> <input name=\"H' + ch + '\" type=\"hidden\" value=\"' + TmpChecked + '\"> </div>';
}
