function affichage_form_inscription(id_type){
	
	$("#inscription").css({ display: "inline" });
	id_type=parseInt(id_type);
	switch (id_type){
		//1==particulier
		case 1:
			$("#societe").css({ display: "none" });
			$("#service").css({ display: "none" });
			$("#siret").css({ display: "none" });
			$("#tva_intra").css({ display: "none" });
		break;
		//2==entreprise
		case 2:
			$("#societe").css({ display: "" });
			$("#label_societe").css({ display: "" });
			$("#label_asso").css({ display: "none"});
			$("#service").css({ display: "" });
			$("#siret").css({ display: "" });
			$("#tva_intra").css({ display: "" });
		break;
		//3==Associations
		case 3:
			$("#societe").css({ display: "" });
			$("#label_societe").css({ display: "none" });
			$("#label_asso").css({ display: "" });
			$("#service").css({ display: "none" });
			$("#siret").css({ display: "none" });
			$("#tva_intra").css({ display: "none" });
		break;
	}
	//$("#types").attr({ checked: false});
	//$("input[name=types_"+id_type+"]").attr({ checked: "checked"});
	
}


$(document).ready( function () {
	$("#connexion").ready(
			function () {
				var type =0;
				var casetype  = $("input[type=radio][checked]");
				type = casetype.val();

				if(type){
					affichage_form_inscription(type);
				}
			});
} );


