function ow(File,width,height) {
	window.open('/Inc/pop.php?img=' + File,'_blank','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=auto,resizable=1,width='+width+',height='+height);
}

function owTxt(File,width,height) {
	window.open(File,'_blank','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=auto,resizable=1,width='+width+',height='+height);
}

function valide_email(email) {
	ExpReg = "^([_\.0-9aA-zZ-]+)+([^\.@]@[^\.@])([\.0-9aA-zZ-]+[^\.])[\.]{1}[aA-zZ]{2,3}$";
	if(email.search(ExpReg) == '-1') {
		msg_error = 'L\'email \'' + email + '\' n\'est pas valide';
		alert(msg_error);
		return false;
	} else {
		return true;
	}
}

function regardeRech(Formulaire) {
	msg_rech = '';
	if (Formulaire.rech.value == '') {
		msg_rech += 'Le champ de saisie du mot clé est vide !\n';
	} else if (Formulaire.rech.value.length < 4) {
		msg_rech += 'Le mot clé saisi est trop court, un minimum de 4 caractres est attendu !\n';
	} else if (Formulaire.rech.value.length > 50) {
		msg_rech += 'Le mot clé saisi est trop long (supérieur a 50 caracteres !)\n';
	}
	if (msg_rech != '') {
		alert(msg_rech);
		return false;
	} else {
		return true;
	}
}

function changeFontSize(inc){
	var curSize = document.getElementById("leTexte").style.fontSize;
	var newSize = parseInt(curSize.substring(0, curSize.indexOf("%")));
	newSize += inc;
	document.getElementById("leTexte").style.fontSize = newSize;
}