function SwapOneWay(idcapa){
if (document.getElementById('cajaOneWay').style.display=='none' )
	{
	document.getElementById('cajaOneWay').style.display='block';
	document.getElementById('cajaPasajerosVuelta').style.display='block';
	}
else
	{
	document.getElementById('cajaOneWay').style.display='none';
	document.getElementById('cajaPasajerosVuelta').style.display='none';
	}
}
function SwapOneWay2(idcapa){
if (document.getElementById('cajaOneWay2').style.display=='none')
	{
	document.getElementById('cajaOneWay2').style.display='block';
	document.getElementById('cajaPasajerosVuelta2').style.display='block';
	}
else
	{
	document.getElementById('cajaOneWay2').style.display='none';
	document.getElementById('cajaPasajerosVuelta2').style.display='none';
	}
}

function quote_in(){
var msgerror='';
var msgerror1='';

with(document.forms['f']){
	if ((id_destino.options[id_destino.selectedIndex].value=="")){ 
		msgerror = '* Please, Select one destination\n'; 
	}
	if ((tipo_coche.options[tipo_coche.selectedIndex].value=="")){ 
		msgerror1 = '* Please, Select one type of car\n'; 
	}

	if (msgerror!='' || msgerror1!=''){
		alert('This fields are obligatory:\n\n'+msgerror+'\n'+msgerror1);
		return false;
		}
	else{
		return true;
		}
	}
}

function quote_in2(){
var msgerror='';
var msgerror1='';

with(document.forms['f2']){
	if ((id_destino.options[id_destino.selectedIndex].value=="")){ 
		msgerror = '* Please, Select one destination\n'; 
	}
	
	if (msgerror!='' || msgerror1!=''){
		alert('This fields are obligatory:\n\n'+msgerror+'\n'+msgerror1);
		return false;
		}
	else{
		return true;
		}
	}
}