function getElementsByClass(searchClass, node, tag)
{
  var classElements = new Array();
  if ( node == null )
    node = document;
  if ( tag == null )
    tag = '*';
  var els = node.getElementsByTagName(tag);
  var elsLen = els.length;
  var pattern = new RegExp("(^|\\s)"+searchClass+"(\\s|$)");
  for (i = 0, j = 0; i < elsLen; i++) {
    if ( pattern.test(els[i].className) ) {
      classElements[j] = els[i];
      j++;
    }
  }
  return classElements;
}

function tailleFonte(classe, modif)
{ cibles = getElementsByClass(classe);
  if(cibles!='')
  { 
    var taille=cibles[0].style.fontSize;
    if(cibles[0].style.fontSize=='')
    { taille='10';
    }
    pos=taille.indexOf('px', 0);
    if(pos>0)
    { taille=taille.substr(0, pos);
    }
    else
    { taille=taille;
    }
    if((modif==-2 && taille>7) || (modif==2 && taille<23))
    { for (i=0; i < cibles.length; i++)
      { cibles[i].style.fontSize = parseInt(taille)+parseInt(modif);
      }
    }
  }
}
