function validate(){var a=true;Error=validateSmall();if(Error[0]==0){if(submitcount==0){document.body.style.cursor="wait";submitcount++;document.get_country.submit()}}else{a=false;switch(Error[0]){case 1:alert("Introduzca el id gestor con el que va a realizar la reserva.");break;case 48:alert("You have not entered the number of rooms you want to reserve");break;case 421:alert("Date error, the check-in date in must be before the check-out date.");break;case 426:alert("You must choose the town");break;case 427:alert("Date error, stay must be at least one night");break;case 428:alert("Date error, the check-out date is before the check-in date");break;case 429:alert("The rooms have to be adjoining, there are details selected for the type of room "+Error[1]);break;case 430:alert("You must select a minimum of one type of room");break;case 431:alert("The type of room "+Error[1]+" is the same as room type "+Error[2]+" increase the number of rooms of type "+Error[1]);break;case 435:alert("In the type of room "+Error[1]+" select the number of Children, in case this is none, remove the age");break;case 436:alert("In the type of room "+Error[1]+" you have chosen one child and you have entered an age for a second child");break;case 437:alert("In the type of room "+Error[1]+" you have chosen 1 child and you have indicated the age for the 1st and 2nd child");break;case 438:alert("Select the number of adults in room type "+Error[1]);break;case 439:alert("In the type of room "+Error[1]+" you have chosen 1 child and you have indicated the age for two children");break;case 443:alert("You must choose a location");break;case 582:alert("Select a zone");break;case 751:alert("Select zone");break;case 1152:alert("Children are defined as being between 2 and 12 years old. Please enter an age for the child or change the room type.");break;case 1205:alert("You have chosen a check-in date more than 11 months in the future, we do not permit reservations that far in the future.");break;case 1222:alert("The check-in date is invalid, this date does not exist.");break;case 1525:alert("departure date incorrect");break;case 2:statement;break;default:statement}}return a};