function mistake(){
  sendmailsb( 'info', 'vair.lt', 'Mistake', 'Address: ' + document.location );
  }

function setcas( id, o ){
  var cn = 'catalog' + ( ( o != 0 ) ? '1' : '' );
  var td = document.getElementById('tdc1n'+id)
  if( td != null ) td.className = cn;
  td = document.getElementById('tdc2n'+id)
  if( td != null ) td.className = cn;
  }

function frame_size(){
  var t = document.getElementById('catitable');
  var f = document.getElementById('catiframe');
  if( t != null && f != null ) f.height = t.clientHeight;
  }
