function showitemf2() {
	var TheForm;
	TheForm = document.form1;
	if (TheForm.Numbers.value == 1) {
		document.getElementById('item1divf').style.display = 'inline';
		document.getElementById('item2divf').style.display = 'none';
		document.getElementById('item3divf').style.display = 'none';
		document.getElementById('item4divf').style.display = 'none';
		document.getElementById('item5divf').style.display = 'none';
	}
	else if (TheForm.Numbers.value == 2) {
		document.getElementById('item1divf').style.display = 'inline';
		document.getElementById('item2divf').style.display = 'inline';
		document.getElementById('item3divf').style.display = 'none';
		document.getElementById('item4divf').style.display = 'none';
		document.getElementById('item5divf').style.display = 'none';
	}
	else if (TheForm.Numbers.value == 3) {
		document.getElementById('item1divf').style.display = 'inline';
		document.getElementById('item2divf').style.display = 'inline';
		document.getElementById('item3divf').style.display = 'inline';
		document.getElementById('item4divf').style.display = 'none';
		document.getElementById('item5divf').style.display = 'none';
	}
	else if (TheForm.Numbers.value == 4) {
		document.getElementById('item1divf').style.display = 'inline';
		document.getElementById('item2divf').style.display = 'inline';
		document.getElementById('item3divf').style.display = 'inline';
		document.getElementById('item4divf').style.display = 'inline';
		document.getElementById('item5divf').style.display = 'none';
	}
	else if (TheForm.Numbers.value == 5) {
		document.getElementById('item1divf').style.display = 'inline';
		document.getElementById('item2divf').style.display = 'inline';
		document.getElementById('item3divf').style.display = 'inline';
		document.getElementById('item4divf').style.display = 'inline';
		document.getElementById('item5divf').style.display = 'inline';
	}
}

function showitemf3() {
	var TheForm;
	var x;
	var formval;
	var formval2;
	var answerconf;
	x = 0;
	TheForm = document.form1;
	if (TheForm.Type.value == "Tour") {
		if (TheForm.Tour.value.length == 0) {
			alert("Please enter the Tour name");
			TheForm.DOB1.focus();
			x = 1;
		}
		if (TheForm.Dates.value.length == 0) {
			alert("Please enter the Tour Dates");
			TheForm.Tour.focus();
			x = 1;
		}
	} else {
		if (TheForm.Tour.value.length == 0) {
			alert("Please enter the Day/Course name");
			TheForm.Tour.focus();
			x = 1;
		}
		if (TheForm.Dates.value.length == 0) {
			alert("Please enter the Day/Course Date(s)");
			TheForm.Tour.focus();
			x = 1;
		}
	}
	if (TheForm.Name1.value.length == 0) {
		alert("Please enter your name");
		TheForm.Name1.focus();
		x = 1;
	}
	if (TheForm.Type.value == "Tour") {
		if (TheForm.DOB1.value.length == 0) {
			alert("Please enter your date of birth");
			TheForm.DOB1.focus();
			x = 1;
		}
	}
	if (TheForm.Address1.value.length == 0) {
		alert("Please enter your address");
		TheForm.Address1.focus();
		x = 1;
	}


	if (TheForm.Numbers.value == 2) {
		if (TheForm.Name2.value.length == 0) {
			alert("Please enter the second persons name");
			TheForm.Name2.focus();
			x = 1;
		}
		if (TheForm.Type.value == "Tour") {
			if (TheForm.DOB2.value.length == 0) {
				alert("Please enter the second persons date of birth");
				TheForm.DOB2.focus();
				x = 1;
			}
		}
		if (TheForm.Address2.value.length == 0) {
			alert("Please enter the second persons address");
			TheForm.Address2.focus();
			x = 1;
		}
	}
	if (TheForm.Numbers.value == 3) {
		if (TheForm.Name3.value.length == 0) {
			alert("Please enter the third persons name");
			TheForm.Name3.focus();
			x = 1;
		}
		if (TheForm.Type.value == "Tour") {
			if (TheForm.DOB3.value.length == 0) {
				alert("Please enter the third persons date of birth");
				TheForm.DOB3.focus();
				x = 1;
			}
		}
		if (TheForm.Address3.value.length == 0) {
			alert("Please enter the third persons address");
			TheForm.Address3.focus();
			x = 1;
		}
	}
	if (TheForm.Numbers.value == 4) {
		if (TheForm.Name4.value.length == 0) {
			alert("Please enter the fourth persons name");
			TheForm.Name4.focus();
			x = 1;
		}
		if (TheForm.Type.value == "Tour") {
			if (TheForm.DOB4.value.length == 0) {
				alert("Please enter the fourth persons date of birth");
				TheForm.DOB4.focus();
				x = 1;
			}
		}
		if (TheForm.Address4.value.length == 0) {
			alert("Please enter the fourth persons address");
			TheForm.Address4.focus();
			x = 1;
		}
	}
	if (TheForm.Numbers.value == 5) {
		if (TheForm.Name5.value.length == 0) {
			alert("Please enter the fifth persons name");
			TheForm.Name5.focus();
			x = 1;
		}
		if (TheForm.Type.value == "Tour") {
			if (TheForm.DOB5.value.length == 0) {
				alert("Please enter the fifth persons date of birth");
				TheForm.DOB5.focus();
				x = 1;
			}
		}
		if (TheForm.Address5.value.length == 0) {
			alert("Please enter the fifth persons address");
			TheForm.Address5.focus();
			x = 1;
		}
	}
	if (TheForm.Tel.value.length == 0) {
		alert("Please enter your Telephone number");
		TheForm.Tel.focus();
		TheForm.Email.select();
		x = 1;
	}
	if (TheForm.Email.value.length == 0) {
		alert("Please enter your Email address");
		TheForm.Email.focus();
		TheForm.Email.select();
		x = 1;
	}
	if (TheForm.Conditions.checked) {
		//alert("PXXXX"+TheForm.conditions.value);
	} else {
		alert("Please confirm agreement with booking conditions");
		TheForm.Conditions.focus();
		x = 1;
	}

	//x = 1;

	if (x == 1) {
		return false;
	} else {
		if (TheForm.Type.value == "Tour") {
			formval = "Tour: "+TheForm.Tour.value+" \nDates: "+TheForm.Dates.value+" \n\nNumber of persons: "+TheForm.Numbers.value+"\n";
			formval = formval+"Name1: "+TheForm.Name1.value+" Date of birth: "+TheForm.DOB1.value+" Room Type: "+TheForm.Room1.value+"\n";
			if (TheForm.Numbers.value > 1) {
				formval = formval+"Name2: "+TheForm.Name2.value+" Date of birth: "+TheForm.DOB2.value+" Room Type: "+TheForm.Room2.value+"\n";
			}
			if (TheForm.Numbers.value > 2) {
				formval = formval+"Name3: "+TheForm.Name3.value+" Date of birth: "+TheForm.DOB3.value+" Room Type: "+TheForm.Room3.value+"\n";
			}
			if (TheForm.Numbers.value > 3) {
				formval = formval+"Name4: "+TheForm.Name4.value+" Date of birth: "+TheForm.DOB4.value+" Room Type: "+TheForm.Room4.value+"\n";
			}
			if (TheForm.Numbers.value > 4) {
				formval = formval+"Name5: "+TheForm.Name5.value+" Date of birth: "+TheForm.DOB5.value+" Room Type: "+TheForm.Room5.value+"\n";
			}
		} else {
			if (TheForm.Type.value == "Course") {
				formval = "Course: "+TheForm.Course.value+" \nDates: "+TheForm.Dates.value+" \n\nNumber of persons: "+TheForm.Numbers.value+"\n";
			} else {
				formval = "Day: "+TheForm.Day.value+" \nDates: "+TheForm.Dates.value+" \n\nNumber of persons: "+TheForm.Numbers.value+"\n";
			}
			formval = formval+"Name1: "+TheForm.Name1.value+"\n";
			if (TheForm.Numbers.value > 1) {
				formval = formval+"Name2: "+TheForm.Name2.value+"\n";
			}
			if (TheForm.Numbers.value > 2) {
				formval = formval+"Name3: "+TheForm.Name3.value+"\n";
			}
			if (TheForm.Numbers.value > 3) {
				formval = formval+"Name4: "+TheForm.Name4.value+"\n";
			}
			if (TheForm.Numbers.value > 4) {
				formval = formval+"Name5: "+"\n";
			}
		}
		formval = formval+"\nMain Contact details\n";
		formval = formval+"Telephone: "+TheForm.Tel.value+" Fax: "+TheForm.Fax.value+" Email: "+TheForm.Email.value+"\n";
		formval = formval+"\nI have read and agree the related Booking Conditions";
		//alert(formval);
		formval2 = "Please check these booking details:\n\n"+formval+"\n\nAre they correct? \nIf yes, press OK to make the booking \nIf no press Cancel to make corrections"
		answerconf = confirm(formval2);
		if (answerconf) {
			TheForm.message.value = formval;
			return true;
		} else {
			return false;
		}
	}
}

