function returnToCaller()
{
	window.history.back()
}

function showInfo(n)
{
	switch (n)
	{
		case 1:
			alert ("PayPal requires you to permit Session Cookies from www.paypal.com ."
			+ '\n' + '\n' +
			"A cookie is a small piece of information saved on your computer in order to track your activity through a website."
			+ " A session cookie is only kept for the time the browser is running; closing the browser window (or windows if you have several open) causes all session cookies to be deleted, protecting your privacy."
			+ " Restricting the sites that can set cookies to those you trust further protects your privacy."
			+ " Change your browser's cookie settings from the Tools/Settings, Edit/Preferences or similar menu."
			+ '\n' + '\n' +
			"Note: this message appears in error if you already allow cookies from www.paypal.com but not from all sites , in which case please ignore it.");
			break;
		case 2:
			alert ("Audax regulations require that you be covered by third-party insurance during the ride."
			+ '\n' + '\n'
			+ "AUK, CTC, cyclosport.org and some Everyday Cycling/British Cycling members already have insurance cover; please supply your membership number."
			+ " In the absence of such cover, you must take out temporary membership of Audax UK."
			+ " See the General page for more information.");
			break;
		case 3:
			alert ("The routesheet for this event is available to download from the event page"
			+ " but you may have it mailed to you."
			+ " A small charge is made to cover the cost of stationery and postage."
			+ " See the Miscellaneous page for more information.");
			break;
		case 4:
			alert ("I will sign your brevet card so that you can take it away on the day."
			+ " However, if you want a validation sticker applied to your brevet card"
			+ " it must be returned to you by post."
			+ " A small charge is made to cover the cost of stationery and postage."
			+ " See the Miscellaneous page for more information.");
			break;
		case 5:
			alert ("Names may contain only letters, spaces, apostrophies and dashes."
			+ " Club names may also contain numbers."
			+ " Names must start with a letter."
			+ " E-mail addresses follow the usual conventions.");
			break;
		case 6:
			alert ("Discounted entry fees are available to groups of 2 (couple) and 5 or more (club)."
			+ " Groups must be entered at the same time with a single, combined payment."
			+ " Couples do not have to be related; you need not be members of a club"
			+ " and it need not be an actual club.\n"
			+ "Please note that these discounts are only available up to 10 days before the event.");
			break;
		case 7:
			alert ("You may review the status of previously entered riders."
			+ " From the event  entry page, please select 'individual' and input the rider's details.");
			break;
		case 8:
			alert ("This is the disclaimer that you will be required to sign, in person, at the start of the event:\n"
			+ ". I acknowledge that during the event I am on a private excursion on the public highway and responsible for my own safety and conduct.\n"
    		+ ". I confirm that I have reviewed the course and I am physically and mentally fit to participate.\n"
			+ ". I agree to wear a helmet at all times while riding.\n"
			+ ". I undertake that I shall not seek to claim against the organiser nor any person assisting with the preparation and running of the event in respect of injury, loss or damage, howsoever caused.");
			break;
	}
}

function submitForm()
{
	// submit the one (or first) form on page
	window.document.forms[0].submit();
}

function printPage()
{
	window.print();
}
