// JavaScript Document
function checkValue(element, defaultVal, mode){
	if(mode == 0){
		//focus	
		if(element.value == defaultVal){
			element.value = "";
		}
	}
	if(mode == 1){
		//blur	
		if(element.value == ""){
			element.value = defaultVal;
		}	
	}
}

var tailles = new Array(6,8,10,12,14,16,18,20);
var currentTaille = 3;
changeTailleTexte(0);

function changeTailleTexte(taille){
	if (!document.styleSheets) return;
	var theRules = new Array();
	if (document.styleSheets[1].cssRules)
		theRules = document.styleSheets[1].cssRules
	else if (document.styleSheets[1].rules)
		theRules = document.styleSheets[1].rules
	else return;
	
	if(taille == "+"){
		currentTaille = Math.min(currentTaille+1, tailles.length);
	}else{
		if(taille == "-"){
		currentTaille = Math.max(currentTaille-1, 0);
			
		}else{}
	}
	theRules[0].style.fontSize = tailles[currentTaille]+"px";
}
