	var aux=0;
	var laser=0;
	var hipnosis=0;
	window.onload=function(){
		document.formulario.borrar.onclick=limpiar;
		var el=document.getElementById("c-taller-laser");
		el.onclick=poner_precio;

		//var el02=document.getElementById("c-taller-sedacion");
		//el02.onclick=poner_precio;

		var el12=document.getElementById("c-taller-hipnosis");
		el12.onclick=poner_precio;

		var el03=document.getElementById("c-congresista-miembro-de-la-seoeme");
		el03.onclick=poner_precio;

		var el04=document.getElementById("c-congresista-no-miembro-de-la-seoeme");
		el04.onclick=poner_precio;

		var el05=document.getElementById("c-estudiante-pregrado-con-acreditacion");
		el05.onclick=poner_precio;

		var el06=document.getElementById("c-estudiante-postgrado-con-acreditacion");
		el06.onclick=poner_precio;

		var el07=document.getElementById("c-auxiliares-e-higienistas-de-clinica");
		el07.onclick=poner_precio;

		var el08=document.getElementById("c-profesionales-sanitarios-o-de-atencion-pacientes-discapacitados");
		el08.onclick=poner_precio;

		var el09=document.getElementById("c-cena-en-sidreria");
		el09.onclick=poner_precio;

		var el10=document.getElementById("c-cena-de-gala");
		el10.onclick=poner_precio;

		var el11=document.getElementById("c-medicos-no-especialistas-en-odontologia");
		el11.onclick=poner_precio;
	}

	var precio=0;
	function limpiar(){
				document.formulario.reset();
				precio=0;
				aux=0;
				document.getElementById("caja_aux13").innerHTML=""
				document.getElementById("caja_aux12").innerHTML=""
				document.getElementById("caja_aux11").innerHTML=""
				document.getElementById("caja_aux10").innerHTML=""
				document.getElementById("caja_aux09").innerHTML=""
				document.getElementById("caja_aux08").innerHTML=""
				document.getElementById("caja_aux07").innerHTML=""
				document.getElementById("caja_aux06").innerHTML=""
				document.getElementById("caja_aux05").innerHTML=""
				document.getElementById("caja_aux04").innerHTML=""
				document.getElementById("caja_aux03").innerHTML=""
				document.getElementById("caja_aux02").innerHTML=""
				document.getElementById("caja_aux").innerHTML=""
				return false;
	}
	function poner_precio(){
		var id=this.id;

		if (id=="c-taller-laser"){
			if (document.getElementById("c-taller-laser").checked){
				//buscar si el radio está checkado
				if (document.getElementById("c-profesionales-sanitarios-o-de-atencion-pacientes-discapacitados").checked || document.getElementById("c-auxiliares-e-higienistas-de-clinica").checked || document.getElementById("c-estudiante-postgrado-con-acreditacion").checked || document.getElementById("c-estudiante-pregrado-con-acreditacion").checked || document.getElementById("c-congresista-miembro-de-la-seoeme").checked || document.getElementById("c-congresista-no-miembro-de-la-seoeme").checked){
					document.getElementById("caja_aux").innerHTML="<img src=\"imagenes/gratis.jpg\" alt=\"Gratis\" />"
					laser=0;
				}else{
					laser=1;
					document.getElementById("caja_aux").innerHTML="<img src=\"imagenes/antes-ahora.jpg\" alt=\"50&euro;\" />"
					precio+=50;
				}
			}else{
				laser=0;
				document.getElementById("caja_aux").innerHTML="";
				if (document.getElementById("c-profesionales-sanitarios-o-de-atencion-pacientes-discapacitados").checked || document.getElementById("c-auxiliares-e-higienistas-de-clinica").checked || document.getElementById("c-estudiante-postgrado-con-acreditacion").checked || document.getElementById("c-estudiante-pregrado-con-acreditacion").checked || document.getElementById("c-congresista-miembro-de-la-seoeme").checked || document.getElementById("c-congresista-no-miembro-de-la-seoeme").checked){
					//document.getElementById("caja_aux").innerHTML="<img src=\"imagenes/gratis.jpg\" alt=\"antes 120&euro; ahora 72&euro;\" />"
				}else{
					//document.getElementById("caja_aux").innerHTML="<img src=\"imagenes/antes-ahora.jpg\" alt=\"antes 120&euro; ahora 72&euro;\" />"
					precio-=50;
				}
			}
		}

		if (id=="c-taller-hipnosis"){
			if (document.getElementById("c-taller-hipnosis").checked){
				//buscar si el radio está checkado
				if (document.getElementById("c-congresista-miembro-de-la-seoeme").checked){
					document.getElementById("caja_aux13").innerHTML="<img src=\"imagenes/imagen_30euros.jpg\" alt=\"30&euro;\" />"
					precio+=30;
					hipnosis=2;
				}else{
					hipnosis=1;
					document.getElementById("caja_aux13").innerHTML="<img src=\"imagenes/imagen_90euros.jpg\" alt=\"90&euro;\" />"
					precio+=90;
				}
			}else{
				hipnosis=0;
				document.getElementById("caja_aux13").innerHTML="";
				if (document.getElementById("c-congresista-miembro-de-la-seoeme").checked){
					precio-=30;
					//document.getElementById("caja_aux").innerHTML="<img src=\"imagenes/gratis.jpg\" alt=\"antes 120&euro; ahora 72&euro;\" />"
				}else{
					//document.getElementById("caja_aux").innerHTML="<img src=\"imagenes/antes-ahora.jpg\" alt=\"antes 120&euro; ahora 72&euro;\" />"
					precio-=90;
				}
			}
		}
/*
		if (id=="c-taller-laser"){
			if (document.getElementById("c-taller-laser").checked){
				document.getElementById("caja_aux").innerHTML="<img src=\"imagenes/antes-ahora.jpg\" alt=\"antes 120&euro; ahora 72&euro;\" />"
				precio+=72;
			}else{
				document.getElementById("caja_aux").innerHTML="";
				precio=precio-72;
			}
		}
*/
		if (id=="c-taller-sedacion"){
			if (document.getElementById("c-taller-sedacion").checked){
				document.getElementById("caja_aux02").innerHTML="120 &euro;"
				precio+=120;
			}else{
				document.getElementById("caja_aux02").innerHTML="";
				precio=precio-120;
			}
		}

		if (id=="c-congresista-miembro-de-la-seoeme"){
			if (document.getElementById("c-congresista-miembro-de-la-seoeme").checked){
				if (laser){
					laser=0;
					precio=precio-50;
					document.getElementById("caja_aux").innerHTML="<img src=\"imagenes/gratis.jpg\" alt=\"Gratis\" />"
				}
				if (hipnosis==1){
					hipnosis=2;
					precio=precio-90;
					precio=precio+30;
					document.getElementById("caja_aux13").innerHTML="<img src=\"imagenes/imagen_30euros.jpg\" alt=\"30 &euro;\" />"
				}else if (hipnosis==2){

				}else if (hipnosis==0){

				}
				document.getElementById("caja_aux03").innerHTML="260 &euro;"
				document.getElementById("caja_aux12").innerHTML=""
				document.getElementById("caja_aux08").innerHTML=""
				document.getElementById("caja_aux07").innerHTML=""
				document.getElementById("caja_aux06").innerHTML=""
				document.getElementById("caja_aux05").innerHTML=""
				document.getElementById("caja_aux04").innerHTML=""
				precio+=260;
				precio-=aux;
				aux=260;
			}else{
				document.getElementById("caja_aux03").innerHTML="";
				precio=precio-260;
			}
		}

		if (id=="c-congresista-no-miembro-de-la-seoeme"){
			if (document.getElementById("c-congresista-no-miembro-de-la-seoeme").checked){
				if (laser){
					laser=0;
					precio=precio-50;
					document.getElementById("caja_aux").innerHTML="<img src=\"imagenes/gratis.jpg\" alt=\"Gratis\" />"
				}
				if (hipnosis==1){
				}else if (hipnosis==2){
					hipnosis=1;
					precio=precio-30;
					precio=precio+90;
					document.getElementById("caja_aux13").innerHTML="<img src=\"imagenes/imagen_90euros.jpg\" alt=\"90 &euro;\" />"
				}else if (hipnosis==0){
				}
				document.getElementById("caja_aux04").innerHTML="310 &euro;"
				document.getElementById("caja_aux12").innerHTML=""
				document.getElementById("caja_aux08").innerHTML=""
				document.getElementById("caja_aux07").innerHTML=""
				document.getElementById("caja_aux06").innerHTML=""
				document.getElementById("caja_aux05").innerHTML=""
				document.getElementById("caja_aux03").innerHTML=""
				precio+=310;
				precio-=aux;
				aux=310;
			}else{
				document.getElementById("caja_aux04").innerHTML="";
				precio=precio-310;
			}
		}

		if (id=="c-estudiante-pregrado-con-acreditacion"){
			if (document.getElementById("c-estudiante-pregrado-con-acreditacion").checked){
				if (laser){
					laser=0;
					precio=precio-50;
					document.getElementById("caja_aux").innerHTML="<img src=\"imagenes/gratis.jpg\" alt=\"Gratis\" />"
				}
				if (hipnosis==1){
				}else if (hipnosis==2){
					hipnosis=1;
					precio=precio-30;
					precio=precio+90;
					document.getElementById("caja_aux13").innerHTML="<img src=\"imagenes/imagen_90euros.jpg\" alt=\"90 &euro;\" />"
				}else if (hipnosis==0){
				}
				document.getElementById("caja_aux05").innerHTML="90 &euro;"
				document.getElementById("caja_aux12").innerHTML=""
				document.getElementById("caja_aux08").innerHTML=""
				document.getElementById("caja_aux07").innerHTML=""
				document.getElementById("caja_aux06").innerHTML=""
				document.getElementById("caja_aux04").innerHTML=""
				document.getElementById("caja_aux03").innerHTML=""
				precio+=90;
				precio-=aux;
				aux=90;
			}else{
				document.getElementById("caja_aux05").innerHTML="";
				precio=precio-90;
			}
		}

		if (id=="c-estudiante-postgrado-con-acreditacion"){
			if (document.getElementById("c-estudiante-postgrado-con-acreditacion").checked){
				if (laser){
					laser=0;
					precio=precio-50;
					document.getElementById("caja_aux").innerHTML="<img src=\"imagenes/gratis.jpg\" alt=\"Gratis\" />"
				}
				if (hipnosis==1){
				}else if (hipnosis==2){
					hipnosis=1;
					precio=precio-30;
					precio=precio+90;
					document.getElementById("caja_aux13").innerHTML="<img src=\"imagenes/imagen_90euros.jpg\" alt=\"90 &euro;\" />"
				}else if (hipnosis==0){
				}
				document.getElementById("caja_aux06").innerHTML="180 &euro;"
				document.getElementById("caja_aux12").innerHTML=""
				document.getElementById("caja_aux08").innerHTML=""
				document.getElementById("caja_aux07").innerHTML=""
				document.getElementById("caja_aux05").innerHTML=""
				document.getElementById("caja_aux04").innerHTML=""
				document.getElementById("caja_aux03").innerHTML=""
				precio+=180;
				precio-=aux;
				aux=180;
			}else{
				document.getElementById("caja_aux06").innerHTML="";
				precio=precio-180;
			}
		}

		if (id=="c-auxiliares-e-higienistas-de-clinica"){
			if (document.getElementById("c-auxiliares-e-higienistas-de-clinica").checked){
				if (laser){
					laser=0;
					precio=precio-50;
					document.getElementById("caja_aux").innerHTML="<img src=\"imagenes/gratis.jpg\" alt=\"Gratis\" />"
				}
				if (hipnosis==1){
				}else if (hipnosis==2){
					hipnosis=1;
					precio=precio-30;
					precio=precio+90;
					document.getElementById("caja_aux13").innerHTML="<img src=\"imagenes/imagen_90euros.jpg\" alt=\"90 &euro;\" />"
				}else if (hipnosis==0){
				}
				document.getElementById("caja_aux07").innerHTML="180 &euro;"
				document.getElementById("caja_aux12").innerHTML=""
				document.getElementById("caja_aux08").innerHTML=""
				document.getElementById("caja_aux06").innerHTML=""
				document.getElementById("caja_aux05").innerHTML=""
				document.getElementById("caja_aux04").innerHTML=""
				document.getElementById("caja_aux03").innerHTML=""
				precio+=180;
				precio-=aux;
				aux=180;
			}else{
				document.getElementById("caja_aux07").innerHTML="";
				precio=precio-180;
			}
		}

		if (id=="c-profesionales-sanitarios-o-de-atencion-pacientes-discapacitados"){
			if (document.getElementById("c-profesionales-sanitarios-o-de-atencion-pacientes-discapacitados").checked){
				if (laser){
					laser=0;
					precio=precio-50;
					document.getElementById("caja_aux").innerHTML="<img src=\"imagenes/gratis.jpg\" alt=\"Gratis\" />"
				}
				if (hipnosis==1){
				}else if (hipnosis==2){
					hipnosis=1;
					precio=precio-30;
					precio=precio+90;
					document.getElementById("caja_aux13").innerHTML="<img src=\"imagenes/imagen_90euros.jpg\" alt=\"90 &euro;\" />"
				}else if (hipnosis==0){
				}
				document.getElementById("caja_aux08").innerHTML="50 &euro;"
				document.getElementById("caja_aux12").innerHTML=""
				document.getElementById("caja_aux07").innerHTML=""
				document.getElementById("caja_aux06").innerHTML=""
				document.getElementById("caja_aux05").innerHTML=""
				document.getElementById("caja_aux04").innerHTML=""
				document.getElementById("caja_aux03").innerHTML=""
				precio+=50;
				precio-=aux;
				aux=50;
			}else{
				document.getElementById("caja_aux08").innerHTML="";
				precio=precio-50;
			}
		}

		if (id=="c-medicos-no-especialistas-en-odontologia"){
			if (document.getElementById("c-medicos-no-especialistas-en-odontologia").checked){
				if (laser){
					laser=0;
					precio=precio-50;
					document.getElementById("caja_aux").innerHTML="<img src=\"imagenes/gratis.jpg\" alt=\"Gratis\" />"
				}
				if (hipnosis==1){
				}else if (hipnosis==2){
					hipnosis=1;
					precio=precio-30;
					precio=precio+90;
					document.getElementById("caja_aux13").innerHTML="<img src=\"imagenes/imagen_90euros.jpg\" alt=\"90 &euro;\" />"
				}else if (hipnosis==0){
				}
				document.getElementById("caja_aux12").innerHTML="50 &euro;"
				document.getElementById("caja_aux08").innerHTML=""
				document.getElementById("caja_aux07").innerHTML=""
				document.getElementById("caja_aux06").innerHTML=""
				document.getElementById("caja_aux05").innerHTML=""
				document.getElementById("caja_aux04").innerHTML=""
				document.getElementById("caja_aux03").innerHTML=""
				precio+=50;
				precio-=aux;
				aux=50;
			}else{
				document.getElementById("caja_aux12").innerHTML="";
				precio=precio-50;
			}
		}


		if (id=="c-cena-en-sidreria"){
			if (document.getElementById("c-cena-en-sidreria").checked){
				document.getElementById("caja_aux10").innerHTML="40 &euro;"
				precio+=40;
			}else{
				document.getElementById("caja_aux10").innerHTML="";
				precio=precio-40;
			}
		}

		if (id=="c-cena-de-gala"){
			if (document.getElementById("c-cena-de-gala").checked){
				document.getElementById("caja_aux11").innerHTML="60 &euro;"
				precio+=60;
			}else{
				document.getElementById("caja_aux11").innerHTML="";
				precio=precio-60;
			}
		}

		if (precio==0){
			document.getElementById("caja_aux09").innerHTML="";
			}else{
			document.getElementById("caja_aux09").innerHTML="Total:&nbsp;"+precio+" &euro;";
		}

	}
