function boton_correo(usuario, dominio, texto) {
	document.write('<p><a class=\"boton\" href=\"mailto:' + usuario + '@' + dominio + '\">' + texto + '</a></p>');
}

function correo(usuario, dominio) {
	document.write('<a href=\"mailto:' + usuario + '@' + dominio + '\">' + usuario + '@' + dominio + '</a>');
}

function popUp(URL){
	ventana = window.open(URL,"popup","width=330, height=360, scrollbars=no, menubar=no, location=no, resizable=no");
}

function cambia_area_contacto_es(value, text){
	
	switch(value){
		case '1':
		$('#actividad').jselect({
			data: [ [ 0, "-", true ], [ 1, "Promoción España Castilla la Mancha" ], [ 2, "Promoción España Extremadura" ], [ 3, "Promoción España Andalucia" ], [ 4, "Promoción España otras localizaciones" ], [ 5, "Promoción EEUU" ], [ 6, "Promoción Oriente Medio - Europa - Africa y America del Sur" ], [ 7, "Promoción Asia" ], [ 8, "Promoción Australia" ], [ 9, "Tecnología y Fabricación de componentes" ], [ 10, "Investigación y Desarrollo" ] ],
			replaceAll: true
		});
		break;

		case '2':
		$('#actividad').jselect({
			data: [ [ 0, "-", true ], [ 1, "Promoción España" ], [ 2, "Promoción Europa - Africa - Sudamerica - Oriente Medio - China y Pacífico" ], [ 3, "Promoción EEUU" ], [ 4, "Tecnología y Fabricación de componentes" ], [ 5, "Investigación y Desarrollo" ] ],
			replaceAll: true
		});
		break;

		case '3':
		$('#actividad').jselect({
			data: [ [ 1, "-", true ] ],
			replaceAll: true
		});
		break;

		case '4':
		$('#actividad').jselect({
			data: [ [ 1, "-", true ] ],
			replaceAll: true
		});
		break;

		case '5':
		$('#actividad').jselect({
			data: [ [ 1, "-", true ] ],
			replaceAll: true
		});
		break;

		case '6':
		$('#actividad').jselect({
			data: [ [ 1, "-", true ] ],
			replaceAll: true
		});
		break;

		case '7':
		$('#actividad').jselect({
			data: [ [ 1, "-", true ] ],
			replaceAll: true
		});
		break;

		default:
		$('#actividad').jselect({
			data: [ [ 1, "-", true ] ],
			replaceAll: true
		});
	}

}

function cambia_area_contacto_en(value, text){
	
	switch(value){
		case '1':
		$('#actividad').jselect({
			data: [ [ 0, "-", true ], [ 1, "Development Spain Castilla la Mancha" ], [ 2, "Development Spain Extremadura" ], [ 3, "Development Spain Andalucia" ], [ 4, "Development Spain Other locations" ], [ 5, "Development USA" ], [ 6, "Development Middle East - Europe - Africa and South America" ], [ 7, "Development Asia" ], [ 8, "Development Australia" ], [9, "Technology and Components Manufacturing" ], [ 10, "Research and Development" ] ],
			replaceAll: true
		});
		break;

		case '2':
		$('#actividad').jselect({
			data: [ [ 0, "-", true ], [ 1, "Development Spain" ], [ 2, "Development Europe - Africa - South America - Middle East - China and Pacific" ], [ 3, "Development USA" ], [ 4, "Technology and Components Manufacturing" ], [ 5, "Research and Development" ] ],
			replaceAll: true
		});
		break;

		case '3':
		$('#actividad').jselect({
			data: [ [ 1, "-", true ] ],
			replaceAll: true
		});
		break;

		case '4':
		$('#actividad').jselect({
			data: [ [ 1, "-", true ] ],
			replaceAll: true
		});
		break;

		case '5':
		$('#actividad').jselect({
			data: [ [ 1, "-", true ] ],
			replaceAll: true
		});
		break;

		case '6':
		$('#actividad').jselect({
			data: [ [ 1, "-", true ] ],
			replaceAll: true
		});
		break;

		case '7':
		$('#actividad').jselect({
			data: [ [ 1, "-", true ] ],
			replaceAll: true
		});
		break;

		default:
		$('#actividad').jselect({
			data: [ [ 1, "-", true ] ],
			replaceAll: true
		});
	}

}