ok=true;

function selall(beg,end) {
 for (i=beg;i<=end;i++) {
  care='document.exp.o'+i+'.checked='+document.exp.ix.checked;
  eval(care);
 }
}

function setselect(form, sel, what) {
 obj = form.elements[sel];
 items=obj.length;
 for (i=0; i<items; i++) {
  obj.options[i].selected=what;
 }
}

function winopen (nm, fx, fy, mdl) {
 sw=screen.width-8; sh=screen.height-55;
 s='no';
 if (fx>sw) { x=0; s='yes'; fx=sw; } else x=Math.round((sw-fx)/2);
 if (fy>sh) { y=0; s='yes'; fy=sh; } else y=Math.round((sh-fy)/2);
 abc=window.open('/popup.php?v='+mdl+'&nm='+nm,'ViewPic','top='+y+',left='+x+',width='+fx+',height='+fy+',scrollbars='+s);
}

function chs (x) {
 document.cauta.exact.disabled=true; ok=false;
 window.bf.location.href='/schimba.php?x='+x;
}

// banner

cat=60; newcat=60;

function updatesize() {
 if (cat>newcat) {
  delta=Math.ceil((Math.abs(newcat-cat))/10);
  cat=cat-delta;
  document.getElementById('banner').style.height=cat;
 }
 if (cat<newcat) {
  delta=Math.ceil((Math.abs(newcat-cat))/10);
  cat=cat+delta;
  document.getElementById('banner').style.height=cat;
 }
 setTimeout('updatesize()',2);
}

updatesize();

function bannermare() {
 newcat=120;
}

function bannermic() {
 newcat=60;
}

tt=0;
function ttags() {
 ob=document.getElementById('top');
 if (!tt) { ob.style.height=ob.scrollHeight; tt=1; }
  else { ob.style.height=1; tt=0; }
}