function isEmail(str){
	var re = /^[\w-]+(\.[\w-]+)*@([\w-]+\.)+[a-zA-Z]{2,7}$/;
	return str.match(re);
}
function isNum(str){
	var re = /[0-9]$/;
	return str.match(re);
}
function isName(str){
	var re = /[0-9A-Za-z\-\.\_ ]$/;
	return str.match(re);
}
function isURL(str){
	var re = /^(http:\/\/|https:\/\/){0,1}[A-Za-z0-9][A-Za-z0-9\-\.]+[A-Za-z0-9]\.[A-Za-z]{2,}[\43-\176]*$/;
	return str.match(re);
}

function file(fichier){
	if(window.XMLHttpRequest) // FIREFOX
		xhr_object = new XMLHttpRequest();
	else if(window.ActiveXObject) // IE
		xhr_object = new ActiveXObject("Microsoft.XMLHTTP");
	else
		return(false);
	xhr_object.open("GET", fichier, false);
	xhr_object.send(null);
	if(xhr_object.readyState == 4) return(xhr_object.responseText);
	else return(false);
}

function writetag(texte,cible){document.getElementById(cible).innerHTML = texte;document.getElementById(cible).style.display="block";}

