
// JavaScript Document
function ChangeBg(){
	document.getElementById('last_box').style.display = "none";
	document.getElementById('rouge').style.display = "block";
}

function RedBg(){
	document.getElementById('last_box').style.display = "block";
	document.getElementById('rouge').style.display = "none";
}

function Moto_over(){
	
document.images["moto"].src = "../images/transporte-de-motocicletas-en-panama-rojo.png";
}
//MOTO MOUSEOVER
function Moto_out(){
	
document.images["moto"].src = "../images/transporte-de-motocicletas-en-panama.png";
}
//MOTO MOUSEOVER

function personal_over(){
	
document.images["personal"].src = "../images/transporte-de-efectos-personales-rojo.png";
}
//MOTO MOUSEOVER

function personal_out(){
	
document.images["personal"].src = "../images/transporte-de-efectos-personales.png";
}
//MOTO MOUSEOVER

function terrestre_over(){
	
document.images["terrestre"].src = "../images/transporte-terrestre-en-panama-rojo.png";
}

function terrestre_out(){
	
document.images["terrestre"].src = "../images/transporte-terrestre-en-panama.png";
}

function cotizar_over(){
	
document.images["cotizar"].src = "../images/cotize-con-nosotros-rojo.png";
}

function cotizar_out(){
	
document.images["cotizar"].src = "../images/cotize-con-nosotros.png";
}

function verifymail(mail){
 if((mail.indexOf("@")>0)&&(mail.indexOf(".")>=0)){
	 return true;
 }else{
	 alert("Correo invalido !");
	 return false;
 }
	
}

function validarMail(){
	if(document.getElementById('nombre').value.length==0){
		alert("Introduzca su nombre");
		return false;
	}else if(document.getElementById('apellido').value.length==0){
		alert("Introduzca su apellido");
		return false;
	}else if(document.getElementById('phone').value.length==0){
		alert("Introduzca su telefono");
		return false;
	}else if(document.getElementById('email').value.length==0){
		alert("Introduzca su correo");
		return false;
	}else if(document.getElementById('desc').value.length==0){
		alert("Introduzca una descripcion");
		return false;
	}else if(document.getElementById('comment').value.length==0){
		alert("Introduzca su comentario");
		return false;
	}
}