function cache(id) {
var obj = document.getElementById(id);
document.getElementById(id).style.display="none";
}

function montre(id) {
var obj = document.getElementById(id);
document.getElementById(id).style.display="block";
}
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; 
} 

var min=8;
var max=18;
function increaseFontSize(classe) { 
cibles = getElementsByClass(classe); 
for (i = 0; i < cibles.length; i++) { 
        if(cibles[i].style.fontSize) {
         var s = parseInt(cibles[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=max) {
         s += 1;
      }
      cibles[i].style.fontSize = s+"px"     } 
} 
function decreaseFontSize(classe) { 
cibles = getElementsByClass(classe); 
for (i = 0; i < cibles.length; i++) { 
        if(cibles[i].style.fontSize) {
         var s = parseInt(cibles[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=max) {
         s -= 1;
      }
      cibles[i].style.fontSize = s+"px"     } 
}

function newWindow(strURL){
	window.open(strURL,"_blank");
}

