	function guarda_reserva(){
	var a = 0;
	var b = 0;
	var c = 0;
	var d = 0;
	valor_a = new Array();
	valor_b = new Array();
	valor_c = new Array();
	valor_d = new Array();
	var aviso = 'Enter following fields for the rider:\r\n\r\n';
	var aviso_c = 'Enter following fields for the co-rider:\r\n\r\n';
	if(empty(sa_var('cond_nombres'))){
		valor_a[0] = 'First name\r\n';
	}
	if(empty(sa_var('cond_apellidos'))){
		valor_a[1] = 'Last name\r\n';
	}
	if(empty(sa_var('cond_direccion'))){
		valor_a[2] = 'Street address\r\n';
	}
	if(empty(sa_var('cond_ciudad'))){
		valor_a[3] = 'City\r\n';
	}
	if(empty(sa_var('cond_pais'))){
		valor_a[4] = 'Country\r\n';
	}
	if(empty(sa_var('cond_nacionalidad'))){
		valor_a[5] = 'Nationality\r\n';
	}
	if(empty(sa_var('cond_zip'))){
		valor_a[6] = 'Zip code\r\n';
	}
	if(empty(sa_var('cond_email'))){
		valor_a[7] = 'Email\r\n';
	}
	/*********SE DEBE INGRESAR AL MENOS UNO***********/
	if(empty(sa_var('cond_fono_p'))){
		valor_b[0] = 'Home Phone\r\n';
	}
	if(empty(sa_var('cond_fono_c'))){
		valor_b[1] = 'Movile Phone\r\n';
	}
	if(empty(sa_var('cond_fono_o'))){
		valor_b[2] = 'Business Phone\r\n';
	}
	if(empty(sa_var('cond_skype'))){
		valor_b[3] = 'Skype Contact\r\n';
	}
	/********************/
	if(empty(sa_var('cond_ocupacion'))){
		valor_a[8] = 'Ocupation\r\n';
	}
	if(empty(sa_var('cond_p_nacimiento'))){
		valor_a[9] = 'Country of birth\r\n';
	}
	if(empty(sa_var('cond_altura'))){
		valor_a[10] = 'Heigth\r\n';
	}
	if(empty(sa_var('cond_peso'))){
		valor_a[11] = 'Weigth\r\n';
	}
	if(empty(sa_var('cond_anos_moto'))){
		valor_a[12] = 'Total years riding motorcycles\r\n';
	}
	if(empty(sa_var('cond_tipo_moto'))){
		valor_a[13] = 'Motorcycle type ans model ridden most recently\r\n';
	}
	if(empty(sa_var('cond_kilometros'))){
		valor_a[14] = 'Estimated ridden in the last 12 months\r\n';
	}
	if(empty(sa_var('cond_licencia'))){
		valor_a[15] = 'Motorcycle driver licence number and expiration date\r\n';
	}
	if(empty(sa_var('cond_pasaporte'))){
		valor_a[16] = 'Passport number\r\n';
	}
	if(empty(sa_var('cond_pais_pasaporte'))){
		valor_a[17] = 'Country in which passport was issued and expiration date \r\n';
	}
	if(empty(sa_var('cond_idiomas'))){
		valor_a[18] = 'Languages spoken\r\n';
	}
	if(empty(sa_var('cond_talla'))){
		valor_a[19] = 'Tshirt size\r\n';
	}
	for(i=0; i<=19; i++){
		if(!(empty(valor_a[i]))){
			aviso += valor_a[i];
			a++;
		}
	}
	var aviso_b = 'Enters at least 1 number of contact:\r\n';
	for(e=0; e<=3; e++){
		if(!(empty(valor_b[e]))){
			aviso_b += valor_b[e];
			b++;
		}
	}
	if(b==4){
		aviso += aviso_b;
	}	
	/**************VERIFICACION DE DATOS DE ACOMPAÑANTE**************/
	if(empty(sa_var('acomp_nombres'))){
		valor_c[0] = 'First name\r\n';
	}
	if(empty(sa_var('acomp_apellidos'))){
		valor_c[1] = 'Last name\r\n';
	}
	if(empty(sa_var('acomp_direccion'))){
		valor_c[2] = 'Street address\r\n';
	}
	if(empty(sa_var('acomp_ciudad'))){
		valor_c[3] = 'City\r\n';
	}
	if(empty(sa_var('acomp_pais'))){
		valor_c[4] = 'Country\r\n';
	}
	if(empty(sa_var('acomp_nacionalidad'))){
		valor_c[5] = 'Nationality\r\n';
	}
	if(empty(sa_var('acomp_zip'))){
		valor_c[6] = 'Zip code\r\n';
	}
	if(empty(sa_var('acomp_email'))){
		valor_c[7] = 'Email\r\n';
	}
	/*********SE DEBE INGRESAR AL MENOS UNO***********/
	if(empty(sa_var('acomp_fono_p'))){
		valor_d[0] = 'Home Phone\r\n';
	}
	if(empty(sa_var('acomp_fono_c'))){
		valor_d[1] = 'Movile Phone\r\n';
	}
	if(empty(sa_var('acomp_fono_o'))){
		valor_d[2] = 'Business Phone\r\n';
	}
	if(empty(sa_var('acomp_skype'))){
		valor_d[3] = 'Skype Contact\r\n';
	}
	/********************/
	if(empty(sa_var('acomp_p_nacimiento'))){
		valor_c[8] = 'Country of birth\r\n';
	}
	if(empty(sa_var('acomp_pasaporte'))){
		valor_c[9] = 'Pasaporte\r\n';
	}
	if(empty(sa_var('acomp_pais_pasaporte'))){
		valor_c[10] = 'Passport number\r\n';
	}
	if(empty(sa_var('acomp_idiomas'))){
		valor_c[11] = 'Languages spoken\r\n';
	}
	if(empty(sa_var('acomp_talla'))){
		valor_c[12] = 'Tshirt size\r\n';
	}
	for(k=0; k<=12; k++){
		if(!(empty(valor_c[k]))){
			aviso_c += valor_c[k];
			c++;
		}
	}
	var aviso_d = 'Enters at least 1 number of contact:\r\n';
	for(f=0; f<=3; f++){
		if(!(empty(valor_d[f]))){
			aviso_d += valor_d[f];
			d++;
		}
	}
	if(d==4){
		aviso_c += aviso_d;
	}	
	/************VERIFICA EL INGRESO DE ACOMPAÑANTE POR PARTE DEL CLIENTE*************/
	if(sa_check('acomp') == true){
		if(b<4 && a==0 && d<4 && c==0){
			if(sa_check('deacuerdo')){
				document.reservas.submit();
			}else{
				alert('Confirm the Trip Terms and Conditions.');
			}
		}else{
			if(!(b<4 && a==0)){
				alert(aviso);
			}
			if(!(d<4 && c==0)){
				alert(aviso_c);
			}
		}
	}else{
		if(b<4 && a==0){
			if(sa_check('deacuerdo')){
				//document.reservas.submit();
			}else{
				alert('Confirm the Trip Terms and Conditions.');
			}
		}else{
			alert(aviso);
		}
	}
}