// JavaScript Document


var valorActual;

function precios() {
	document.getElementById("supporting_comany").style.display="block";
	document.getElementById("prices").style.display="block";	
}

function mostrarOption() {
	var i;
	var valor2=document.formulario_registro.type_attendee;
	for(i=0;i<valor2.length;i++){
		if(document.formulario_registro.type_attendee[i].checked){
			break;
		}
	}

	var valor = document.formulario_registro.type_attendee[i].value;
	
	precios();
	mostrar(valor);	
	valorActual= valor;
	document.formulario_registro.supporting_comany.selectedIndex = 0;
}

function mostrarSelect() {
	var valor = document.formulario_registro.supporting_comany.value;
	
	precios();
	mostrar(valor);	
	valorActual= valor;
	
	var i;
	var valor2=document.formulario_registro.type_attendee;
	for(i=0;i<valor2.length;i++){
		if(document.formulario_registro.type_attendee[i].checked){
			document.formulario_registro.type_attendee[i].checked = false;
			break;
		}
	}
}

function mostrar(valor){
/*var valor=document.formulario_registro.supporting_comany.value;
//var valor2=document.formulario_registro.prix.value;
	
		*/
var valoruno;
var valordos;
var estacheck= document.formulario_registro.hotel.checked;
var valoraux= (estacheck)?100:0;

	if(valor=="Ati"){
	valor="€ "+ (920 + valoraux);
	valoruno="€ "+360;
	valordos="€ "+720;
	}

	if(valor=="Gasq" || valor=="QualityTesting" || valor=="Cetren" || valor=="TestRepublic"){
					valor="€ "+(1035 + valoraux);
					valoruno="€ "+405;
					valordos="€ "+810;
	}
						
	if(valor=="Aetic" || valor=="Fedit" || valor=="BelgianTesters" || valor=="TestNet" || valor=="Expositor"){
					valor="€ "+(977.5 + valoraux);
					valoruno="€ "+382.5;
					valordos="€ "+765;
	}
						
	
	if(valor=="Irc" || valor=="Its" || valor=="Manufacturias" || valor=="Ctcomponentes" || valor=="Clusterenergia" || 	  		valor=="Acicae" || valor=="Clusterelectrodomesticos" || valor=="Aclima" || valor=="Carsa" || valor==	     	"Innovaliaassociation" || valor=="Partner" || valor=="Gaia" || valor=="Sponsor"){
					valor="€ "+(862.5 + valoraux);
					valoruno="€ "+337.5;
					valordos="€ "+675;
	}
																
	if(valor=="Asistente" || valor=="Supporting"){
			valor="€ "+(1150 + valoraux);
			valoruno="€ "+450;
			valordos="€ "+900;
	}
	if(valor=="Estudiante"){
			valor="€ "+(575 + valoraux);
			valoruno="€ "+225;
			valordos="€ "+450;
	}
document.getElementById("congreso").innerHTML=valor;
document.getElementById("congresouno").innerHTML=valoruno;
document.getElementById("congresodos").innerHTML=valordos;
}




