function FocusText(BoxName)
{ if (BoxName.value == BoxName.defaultValue) {
		BoxName.value = ''; } }

function BlurText(BoxName)
{ if (BoxName.value == '') {
		BoxName.value = BoxName.defaultValue; } }


function Verif_Email(Input_Mail){
	var newstr = "";
	var at = false;
	var point = false;
	var vide = false;
	var st_email = Input_Mail.value ;
	if (st_email.indexOf("@") != -1) {
		at = true;
	}else if (st_email.indexOf(".") != -1) {
		point = true;
	}
	if (st_email.indexOf(" ") != -1) {
		vide = true;
	} ;
	for (var i = 0; i < st_email.length; i++) {
		ch = st_email.substring(i, i + 1)
		if ((ch >= "A" && ch <= "Z") || (ch >= "a" && ch <= "z")
						|| (ch == "@") || (ch == ".") || (ch == "_")
						|| (ch == "-") || (ch >= "0" && ch <= "9")) {
						newstr += ch;
						if (ch == "@") {
								at=true;
						}
						if (ch == ".") {
								point=true;
						}
		}
	}
	if ((at == true) && (point == true) && (vide == false)) {
		return newstr;
	}
	else {
	alert ("Désolé, l' adresse email que vous avez saisi n'est pas au bon format.\n"+st_email);
	Input_Mail.value="" ;
	return "";
	}
}


