function sobreBoton(id){
	document.getElementById("boton" + id).className="boton-fondo"
}

function fueraBoton(id){
	document.getElementById("boton" + id).className="boton-sinfondo"
}

function sobreBoton2(id){
	document.getElementById("boton" + id).className="boton-fondo";
	document.getElementById("submenu" + id).style.display="block"
}

function fueraBoton2(id){
	document.getElementById("boton" + id).className="boton-sinfondo";
	document.getElementById("submenu" + id).style.display="none"
}

function sobreBoton3(id){
	document.getElementById("submenu" + id).style.display="block"
}

function fueraBoton3(id){
	document.getElementById("submenu" + id).style.display="none"
}

function mostrarSubmenu(id){
	if(document.getElementById("submenu" + id).style.display=="none"){
		document.getElementById("submenu" + id).style.display="block"
	}else{
		document.getElementById("submenu" + id).style.display="none"
	}
}

function validar(idioma){
	var texto="";
	
	if(document.getElementById("formulario").nombre.value==""){
		if(idioma=="_esp"){
			texto+="* Debe insertar su Nombre.\n"
		}
		if(idioma=="_ing"){
			texto+="* Name.<br>"
		}
	}
	if(document.getElementById("formulario").email.value==""){
		if(idioma=="_esp"){
			texto+="* Debe insertar su Email.\n"
		}
		if(idioma=="_ing"){
			texto+="* Email.<br>"
		}
	}
	if(document.getElementById("formulario").comentarios.value==""){
		if(idioma=="_esp"){
			texto+="* Debe incluir sus Comentarios.\n"	
		}
		if(idioma=="_ing"){
			texto+="* Comments.<br>"	
		}
	}

	if(texto!=""){
		//document.getElementById("textoAlerta2").innerHTML=texto;
		//$("#dialog3").dialog('open');
		alert(texto)
	}else{
		document.getElementById("formulario").submit();	
	}

}

function buscar(){
	document.getElementById("formularioBusqueda").submit();
}