var ibutton = new Array() ;
ibutton["ok-off"] = new Image() ; ibutton["ok-off"].src = "images/b-ok.gif" ;
ibutton["ok-on"] = new Image() ; ibutton["ok-on"].src = "images/b-ok-sel.gif" ;
ibutton["next-off"] = new Image() ; ibutton["next-off"].src = "images/b-tovabb.gif" ;
ibutton["next-on"] = new Image() ; ibutton["next-on"].src = "images/b-tovabb-sel.gif" ;
ibutton["add-off"] = new Image() ; ibutton["add-off"].src = "images/b-hozzaadas.gif" ;
ibutton["add-on"] = new Image() ; ibutton["add-on"].src = "images/b-hozzaadas-sel.gif" ;
ibutton["invert-off"] = new Image() ; ibutton["invert-off"].src = "images/b-kijelolesfordit.gif" ;
ibutton["invert-on"] = new Image() ; ibutton["invert-on"].src = "images/b-kijelolesfordit-sel.gif" ;
ibutton["scheme-off"] = new Image() ; ibutton["scheme-off"].src = "images/b-semak.gif" ;
ibutton["scheme-on"] = new Image() ; ibutton["scheme-on"].src = "images/b-semak-sel.gif" ;

function chi(obj, name, state)
{
  obj.src = ibutton[name + "-" + state].src ;
  return true ;
}

