function showhide(what,fromm){

 what = document.getElementById(what);
 from = document.getElementById(fromm);
  
if (what.style.display=='none'){
what.style.display='';

from.style.background="transparent url(/img/icon_minus.png) no-repeat scroll 12px 10px";
  new Ajax.Request('/include/menu-memory.php', {
    method: 'get',
    parameters: {element: fromm, value: 1}
    });
  }
else{
what.style.display='none';
from.style.background="transparent url(/img/icon_plus.png) no-repeat scroll 12px 10px";
  new Ajax.Request('/include/menu-memory.php', {
  method: 'get',
  parameters: {element: fromm, value: 0}
  });
}
}


function showhide2(what1,what2,from,dis){
 what1 = document.getElementById(what1);
 what2 = document.getElementById(what2);
 from = document.getElementById(from);
 dis = document.getElementById(dis);
if (what1.style.display=='none'){
what1.style.display='';
what2.style.display='';
dis.value='1';
from.style.background="transparent url(/img/icon_minus.png) no-repeat scroll 1px 11px";
}
else{
what1.style.display='none';
what2.style.display='none';
dis.value='0';
from.style.background="transparent url(/img/icon_plus.png) no-repeat scroll 1px 11px";
}
}
