function CambiaIdioma(nValor)
{
	if (nValor == 1) location.href = "../../html/home/home.asp";
	if (nValor == 2) location.href = "../../htmleng/home/home.asp";
	if (nValor == 3) location.href = "../../htmlfr/home/home.asp";
}

function CalculaBusqueda() {
	
	var cCadena, nSerie;
	
	cCadena = window.buscador.value;
	nSerie = window.cboSeries.value;
	
	location.href = "Buscador.asp?Novedades=NO&cCadena=" + cCadena + "&nSerie=" + nSerie;
}

function ContactoRapido() {
	
	var cNombre, cEmail, cComentario;
	
	cNombre = window.nombre.value;
	cEmail = window.email.value;
	cComentario = window.comentarios.value;
	
	Respuesta = true;
	
	if (cNombre == "") {
		alert("Complete the field name");
		window.nombre.focus();			
		Respuesta = false;
	}
	
	if (Respuesta) {
		if (cEmail == "") {
			alert("Complete the field email");
			window.email.focus();			
			Respuesta = false;
		} else {

			var Email, AtPos, DotPos;
	
			Email = new String(cEmail);
			AtPos = Email.indexOf("@");
			DotPos = Email.lastIndexOf(".");
	
			if (AtPos < 1 || DotPos <= AtPos + 1 ||	DotPos == Email.length - 1)
			{
				alert("Incorrect email address");
				window.email.focus();
				Respuesta = false;
			}
			
		}
	}
	
	if (Respuesta && cComentario == "") {
		alert("Complete the field comments");
		window.comentarios.focus();			
		Respuesta = false;
	}

	
	if (Respuesta) {
		location.href = "../contacto/contacto_Enviado.asp?Nombre=" + cNombre + "&Email=" + cEmail + "&Comentario=" + cComentario;
	}
}

function aluval3d(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=700,height=500,left = 50,top = 50');");
}
