function pestaActive(id,yo) {
	for (var i=1;i<4;i++){ 
		document.getElementById("li"+[i]+"").style.background= "url(/img/head2/VAtabLeftOff.gif)";
		document.getElementById("a"+[i]+"").style.background= "url(/img/head2/VAtabRightOff.gif) no-repeat right top";
		document.getElementById("a"+[i]+"").style.color= "#dddddd";
	}
	document.getElementById(id).style.className = "current";
	document.getElementById(id).style.background = "url(/img/head2/VAtabLeftOn.gif)";
	document.getElementById(yo).style.background= "url(/img/head2/VAtabRightOn.gif) no-repeat right top";
	document.getElementById(yo).style.color= "#1C3686";
}



function valida_formulario(){
	
	ok = false;
	for(i=0; i<document.formularioTickets.tickets.length;i++){
		if(document.formularioTickets.tickets[i].checked)
			{
			ok = true;
			}
		}
	if (ok == false) {
		alert("Sorry. You must select your gift.");
		return false;
	}

    //valido el nombre
    if (document.formularioTickets.name.value.length==0){
       alert("Sorry. You must enter your name.");
       document.formularioTickets.name.focus();
       return false;
    } 
	
	if (document.formularioTickets.email.value.length==0){
       alert("Sorry. You must enter your email.");
       document.formularioTickets.email.focus();
       return false;
    }
	if (document.formularioTickets.address.value.length==0){
       alert("Sorry. You must enter your address.");
       document.formularioTickets.address.focus();
       return false;
    }
	if (document.formularioTickets.telephone.value.length==0){
       alert("Sorry. You must enter your telephone.");
       document.formularioTickets.telephone.focus();
       return false;
    }
	
	
	if (document.formularioTickets.bookingCode.value.length==0){
       alert("Sorry. You must enter your booking code.");
       document.formularioTickets.bookingCode.focus();
       return false;
    }
	if (document.formularioTickets.accept.checked != true){
       document.formularioTickets.accept.focus();
       return false;
    }
	
}
