function Rollover(cual,porcual){
		if(document.images){
			document.images[cual].src = 'img/' + porcual + '.gif'
		}
	}

function RolloverSub(cual,porcual,idioma){
		if(document.images){
			document.images[cual].src = 'img/' + idioma + '/' + porcual + '.jpg'
		}
	}
	
	
function enviarmail(){
	if(document.frmemail.txNombre.value==''){
		alert('Debe ingresar su nombre.');
		document.frmemail.txNombre.focus();
		return false;
	}
	if(document.frmemail.txmail.value==''){
		alert('Debe ingresar su dirección de email.');
		document.frmemail.txmail.focus();
		return false;
	}else{
		if(!functMail(document.frmemail.txmail.value)){
			alert('Debe ingresar una dirección de email válida');
			document.frmemail.txmail.focus();
			return false;
		}
	}
	
	if(document.frmemail.txmsg.value==''){
		alert('Debe ingresar su comentario.');
		document.frmemail.txmsg.focus();
		return false;
	}
	document.frmemail.submit();
	
}
function functMail(string){
	if (typeof(string)!='object'){
		valor = string;
	}
	else{
			var X = new String;
			X = string.value;			
			valor = X;
	}
	if (string == ""){
			return(false);
	}
	else{
		
		if (valor.search(/[A-Za-z0-9ñ\-\.\_]+@[A-Za-z0-9\-]+\.[A-Za-z0-9]+(\.[A-Za-z0-9]*)?/g) != 0)
			return (false);
		else
			return(true);	
	}
}
