function setDivCourriel(rpcFile, parentId, childId) {	
	$.post(rpcFile, {parentId: ""+ parentId +""}, function(data){
			if(data.length >0) {
				$('#' + childId).html("E-mail valide !");
			}else{
				$('#' + childId).html("Vérifier votre E-mail, notre système n'arrive pas à contacter le serveur de votre adresse pour le moment!");
			}
		});
}


function setRegion(rpcFile, parentId, childId, child_2) {
	if(parentId == "0") {
		// Hide the suggestion box.
		$('#' + childId).html('<i>sélectionner une région avant</i>');
		$('#' + child_2).html(' ');
	} else {
		$.post(rpcFile, {parentId: ""+ parentId +""}, function(data){
			if(data.length >0) {
				$('#' + childId).html(data);
			}
		});
	}
}

function setSubLevel(rpcFile, parentId, childId) {
	if(parentId == "0") {
		// Hide the suggestion box.
	} else {
		$.post(rpcFile, {parentId: ""+ parentId +""}, function(data){
			if(data.length >0) {
				$('#' + childId).html(data).fadeIn('slow');
			}
		});
	}
}

function setSubLevelFaiblesse(rpcFile, parentId, childId) {
	if(parentId !== "") {
		$.post(rpcFile, {parentId: ""+ parentId +"", childId: ""+childId + ""}, function(data){
			if(data.length >0) {
				$('#' + childId).html(data);
			}
		});
	}
}

function setSubLevelMetro(rpcFile, parentId, childId) {
	if(parentId == "0") {
		// Hide the suggestion box.
		$('#' + childId).html(' ');
	} else {
		$.post(rpcFile, {parentId: ""+ parentId +""}, function(data){
			if(data.length >0) {
				$('#' + childId).html(data);
			}else{
				$('#' + childId).html(' ');
			}
		});
	}
}
function setSubLevelMetroEcole(rpcFile, parentId, childId) {
	if(parentId == "0") {
		// Hide the suggestion box.
		$('#' + childId).val('0');
	} else {
		$.post(rpcFile, {parentId: ""+ parentId +""}, function(data){
			if(data.length >0) {
				$('#' + childId).html(data);
			}
		});
	}
}