function chikichiki(){
     var offset, loffset, roffset, moffset;
     var smallbox1,smallbox2,smallbox3,smallbox4;
     var rarea = document.getElementById('rarea');
     var larea = document.getElementById('larea');
     var marea = document.getElementById('marea');
     var lbbox = document.getElementById('lbbox');
     var lwibox = document.getElementById('lwibox');
     var rbbox = document.getElementById('rbbox');
     var rwibox = document.getElementById('rwibox');
     
     if ((marea.offsetHeight > rarea.offsetHeight) && (marea.offsetHeight > larea.offsetHeight)){
          loffset = marea.offsetHeight - larea.offsetHeight; 
          roffset = marea.offsetHeight - rarea.offsetHeight; 

          larea.style.height = marea.offsetHeight + 'px';
          rarea.style.height = marea.offsetHeight + 'px';          

          smallbox1 = lbbox.offsetHeight + loffset;
          smallbox2 = lwibox.offsetHeight + loffset;
          
          smallbox3 = rbbox.offsetHeight+ roffset;
          smallbox4 = rwibox.offsetHeight+ roffset;
          
          lbbox.style.height = smallbox1 + 'px';
          lwibox.style.height = smallbox2 + 'px';
          
          rbbox.style.height = smallbox3 + 'px';
          rwibox.style.height = smallbox4 + 'px';
     } else {
          
          if (rarea.offsetHeight > larea.clientHeight){
               loffset = rarea.offsetHeight - larea.offsetHeight;                                   
               larea.style.height = rarea.offsetHeight+'px';     
               smallbox1 = lbbox.offsetHeight+ loffset;
               smallbox2 = lwibox.offsetHeight+ loffset - 10;
               lbbox.style.height = smallbox1 + 'px';
               lwibox.style.height = smallbox2 + 'px';
          }
     
          if (larea.offsetHeight> rarea.clientHeight){
               roffset = larea.offsetHeight - rarea.clientHeight;
               rarea.style.height = larea.clientHeight+'px';     
               smallbox1 = rbbox.offsetHeight+ roffset;
               smallbox2 = rwibox.offsetHeight+ roffset - 10;
               rbbox.style.height = smallbox1 + 'px';
               rwibox.style.height = smallbox2 + 'px';
          }
     }
}