function IsPastDate(Year, Month, Day)
{
with (new Date())
{
var y = getFullYear();
var m = getMonth()+1;
var d = getDate();
}
return ((Year < y) || ((Year == y) && (Month < m)) || ((Year == y) && (Month == m) && (Day < d)));
}
function IsTodaysDate(Year, Month, Day)
{
with (new Date())
{
var y = getFullYear();
var m = getMonth()+1;
var d = getDate();
}
return ((Year == y) && (Month == m) && (Day == d));
}
function ShowDay(Year, Month, Day, Weekend, IsACourseDay, CourseLink1, CourseLink2, CourseLink3, FullyBookedDay, DevonCourseDay, ManchesterCourseDay, BristolCourseDay)
{
Past  = IsPastDate (Year, Month, Day);
Today = IsTodaysDate (Year, Month, Day);
if (Past) {
ClassName    = "CPDay";
BorderColour = "#FFE1B3";
}
else if (Day == DevonCourseDay) {
ClassName    = "CDDay";
BorderColour = "#69BD69";
Tip          = "This course will be run in Exeter. Click to book it on-line" 
}
else if (Day == ManchesterCourseDay) {
ClassName    = "CMDay";
BorderColour = "#C71FCD";
Tip          = "This course will be run in Manchester. Click to book it on-line" 
}
else if (Day == BristolCourseDay) {
ClassName    = "CBDay";
BorderColour = "#00B5E2";
Tip          = "This course will be run in Bristol. Click to book it on-line" 
}
else {
ClassName    = "CFDay";
BorderColour = "#FF9900";
Tip          = "This course will be run in London. Click to book it on-line" 
}
if (Today) {
BorderColour = "#0000D0";
}
if ((IsACourseDay != 0) && (Day != FullyBookedDay))
{
document.writeln ("<td class = \""+ClassName+"\" style=\"border: 1 solid "+BorderColour+"\">");
if (Past)
{
document.writeln (Day);
}
else
{
if (IsACourseDay == 1)
document.writeln ("<a class = \""+ClassName+"\" target = \"_top\" title = \""+Tip+"\" onmouseover = \"window.status = '"+Tip+"'; return true;\" onmouseout = \"window.status = ''; return true;\" href = \""+CourseLink1+"\">"+Day+"</a>");
else if (IsACourseDay == 2)
document.writeln ("<a class = \""+ClassName+"\" target = \"_top\" title = \""+Tip+"\" onmouseover = \"window.status = '"+Tip+"'; return true;\" onmouseout = \"window.status = ''; return true;\" href = \""+CourseLink2+"\">"+Day+"</a>");
else if (IsACourseDay == 3)
document.writeln ("<a class = \""+ClassName+"\" target = \"_top\" title = \""+Tip+"\" onmouseover = \"window.status = '"+Tip+"'; return true;\" onmouseout = \"window.status = ''; return true;\" href = \""+CourseLink3+"\">"+Day+"</a>");
}
document.writeln ("</td>");
}
else if (Weekend == 1)
{
if (Today)
{
document.writeln ("<td class=\"EDay\" style=\"border: 1 solid "+BorderColour+"\">"+Day+"</td>");
}
else
{
document.writeln ("<td class=\"EDay\" style=\"padding: 2\">"+Day+"</td>");
}
}
else if ((IsACourseDay != 0) && (Day == FullyBookedDay))
{
if (Today)
{
document.writeln ("<td class=\"FullDay\" title = \"This course is fully booked\" onmouseover = \"window.status = 'This course is fully booked'; return true;\" onmouseout = \"window.status = ''; return true;\" style=\"border: 1 solid "+BorderColour+"\">"+Day+"</td>");
}
else if (Past)
{
document.writeln ("<td class = \""+ClassName+"\" style=\"border: 1 solid "+BorderColour+"\">"+Day+"</td>");
}
else
{
document.writeln ("<td class=\"FullDay\" title = \"This course is fully booked\" onmouseover = \"window.status = 'This course is fully booked'; return true;\" onmouseout = \"window.status = ''; return true;\" style=\"padding: 2\">"+Day+"</td>");
}
}
else
{
if (Today)
{
document.writeln ("<td style=\"border: 1 solid "+BorderColour+"\">"+Day+"</td>");
}
else
{
document.writeln ("<td style=\"padding: 2\">"+Day+"</td>");
}
}
}
function WriteCourseInfo (Venue, Desc, Day, Month, Year, Full, Notes)
{
if (!IsPastDate (Year, Month, Day)) 
{
document.writeln ("<li><p class=\"Body\">");
document.writeln (Venue);
document.writeln (" : ");
document.writeln (Desc);
document.writeln ("  ");
document.writeln ("<span style=\"color:FF0000\">" + Notes + "</span>");
if (Full == 1) {
document.writeln ("<span style=\"color:FF0000\"> &nbsp; Fully booked</span>");
}
document.writeln ("</p></li>");
}
}
function WriteRegionalCourseInfo (Course, DateDesc, Day, Month, Year, Full)
{
if (!IsPastDate (Year, Month, Day)) 
{
document.writeln ("<li><p class=\"Body\">");
document.writeln (Course);
document.writeln (" : ");
document.writeln (DateDesc);
if (Full == 1) {
document.writeln ("<span style=\"color:FF0000\"> &nbsp; Fully booked</span>");
}
document.writeln ("</p></li>");
}
}
function PrintPage()
{
if (document.all) 
{
document.execCommand ("print", "FALSE");
}
else 
{
window.print();
}
}
function CheckEntry (EntryField, MesgText) 
{
if (String(EntryField.value).search (/\S/) == -1) {
window.alert (MesgText);
EntryField.focus();
return false;
}
return true;
}
function AddListboxOption (ListBox, OptionText, OptionValue, OptionDay, OptionMonth, OptionYear, DontInclude) 
{
if (IsPastDate (OptionYear, OptionMonth, OptionDay)) 
{
return false;
}
if (DontInclude == 1)
{
return false;
}
ListBox.options[ListBox.length] = new Option(OptionText, OptionText); 
return true;
}
function SetFocusToDelegateName ()
{
document.BookingForm.Surname.focus();
return true;
}
function OnlineForm_Validation(eForm)
{
if (!CheckEntry (eForm.CourseTitle,  "Please select the course you wish to book")) return false;
if (!CheckEntry (eForm.CourseDate,  "Please select the course date you wish to book")) return false;
if (!CheckEntry (eForm.Surname, "Please enter the delegate's surname.")) return false;
if (!CheckEntry (eForm.Forename, "Please enter the delegate's forename.")) return false;
if (!CheckEntry (eForm.Company, "Please enter the name of the delegate's company or organisation.\nIf this isn't relevant then just enter 'None'.")) return false;
if (!CheckEntry (eForm.Job, "Please enter the delegate's job title. If this isn't relevant then just enter 'None'.")) return false;
if (!CheckEntry (eForm.Phone, "Please enter the delegate's telephone number including their extension if relevant.")) return false;
if (!CheckEntry (eForm.Address, "Please enter the address to which you would like us to send the course joining instructions.")) return false;
if (!CheckEntry (eForm.Postcode, "Please enter the post code of the address to which you would like us to send the course joining instructions.")) return false;
if (!CheckEntry (eForm.email, "Please enter the delegate's e-mail address.")) return false;
document.BookingForm.DelegateEmail.value = document.BookingForm.email.value;
if (document.BookingForm.Booker[1].checked) {
if (!CheckEntry (eForm.BookerName, "As you are booking this course for someone else, please enter your name under 'Booker details'.")) return false;
if (!CheckEntry (eForm.BookerJobTitle, "As you are booking this course for someone else, please enter your job title under 'Booker details'.")) return false;
if (!CheckEntry (eForm.BookerPhone, "As you are booking this course for someone else, please enter your telephone number under 'Booker details'. Please include your extension if relevant.")) return false;
if (!CheckEntry (eForm.BookerEmail, "As you are booking this course for someone else, please enter your e-mail address under 'Booker details'.")) return false;
}
if (document.BookingForm.PaymentCharity.checked) {
if (!CheckEntry (eForm.PaymentCharityNumber, "Please enter your registered charity number or local authority name in order to claim the 20% discount.")) return false;
}
if (!CheckEntry (eForm.InvoiceName,    "Please enter the name which should appear on the invoice - this will usually be the name of your company or organisation.")) return false;
if (!CheckEntry (eForm.InvoiceAddress, "Please enter the address to which we should send the invoice.")) return false;
if (!CheckEntry (eForm.InvoicePostcode, "Please enter the post code of the address to which we should send the invoice.")) return false;
if (!document.BookingForm.AgreedTerms.checked) {
window.alert ("Please tick the box to indicate that you agree to the Stephen Lloyd Training booking terms and conditions.");
document.BookingForm.AgreedTerms.focus();
return false;
}
if (document.BookingForm.PaymentMethod[1].checked) 
{
if (document.BookingForm.PaymentCharity.checked)
{
switch (document.BookingForm.CourseTitle.value)
{  
case "The Copywriter" : document.BookingForm.redirect.value = "http://www.stephenlloydtraining.co.uk/bookingconfirmation_cwd_cc.htm"; break;
case "The Business Writer" : document.BookingForm.redirect.value = "http://www.stephenlloydtraining.co.uk/bookingconfirmation_bwd_cc.htm"; break;
case "The Complete Editor" : document.BookingForm.redirect.value = "http://www.stephenlloydtraining.co.uk/bookingconfirmation_ced_cc.htm"; break;
case "The Professional Proofreader" : document.BookingForm.redirect.value = "http://www.stephenlloydtraining.co.uk/bookingconfirmation_ppd_cc.htm"; break;
case "The Letter Writer" : document.BookingForm.redirect.value = "http://www.stephenlloydtraining.co.uk/bookingconfirmation_lwd_cc.htm"; break;
case "The Report Writer" : document.BookingForm.redirect.value = "http://www.stephenlloydtraining.co.uk/bookingconfirmation_rwd_cc.htm"; break;
case "Writing for the Web" : document.BookingForm.redirect.value = "http://www.stephenlloydtraining.co.uk/bookingconfirmation_wwd_cc.htm"; break;
case "Minute Taking" : document.BookingForm.redirect.value = "http://www.stephenlloydtraining.co.uk/bookingconfirmation_wnd_cc.htm"; break;
case "Grammar at Work" : document.BookingForm.redirect.value = "http://www.stephenlloydtraining.co.uk/bookingconfirmation_gwd_cc.htm"; break;
case "Making Words Pay": document.BookingForm.redirect.value = "http://www.stephenlloydtraining.co.uk/bookingconfirmation_mwp_cc.htm"; break;
}
}
else
{
switch (document.BookingForm.CourseTitle.value)
{  
case "The Copywriter" : document.BookingForm.redirect.value = "http://www.stephenlloydtraining.co.uk/bookingconfirmation_cw_cc.htm"; break;
case "The Business Writer" : document.BookingForm.redirect.value = "http://www.stephenlloydtraining.co.uk/bookingconfirmation_bw_cc.htm"; break;
case "The Complete Editor" : document.BookingForm.redirect.value = "http://www.stephenlloydtraining.co.uk/bookingconfirmation_ce_cc.htm"; break;
case "The Professional Proofreader" : document.BookingForm.redirect.value = "http://www.stephenlloydtraining.co.uk/bookingconfirmation_pp_cc.htm"; break;
case "The Letter Writer" : document.BookingForm.redirect.value = "http://www.stephenlloydtraining.co.uk/bookingconfirmation_lw_cc.htm"; break;
case "The Report Writer" : document.BookingForm.redirect.value = "http://www.stephenlloydtraining.co.uk/bookingconfirmation_rw_cc.htm"; break;
case "Writing for the Web" : document.BookingForm.redirect.value = "http://www.stephenlloydtraining.co.uk/bookingconfirmation_ww_cc.htm"; break;
case "Minute Taking" : document.BookingForm.redirect.value = "http://www.stephenlloydtraining.co.uk/bookingconfirmation_wn_cc.htm"; break;
case "Grammar at Work" : document.BookingForm.redirect.value = "http://www.stephenlloydtraining.co.uk/bookingconfirmation_gw_cc.htm"; break;
case "Making Words Pay": document.BookingForm.redirect.value = "http://www.stephenlloydtraining.co.uk/bookingconfirmation_mwp_cc.htm"; break;
}
}
}
else 
{
document.BookingForm.redirect.value = "http://www.stephenlloydtraining.co.uk/bookingconfirmation_email.htm";
}
return true;
}
function OnlineForm_SetCourseDates(SelectedDate)
{
for (i = 0; i < document.BookingForm.CourseDate.length;) {
document.BookingForm.CourseDate.remove(0);
}
document.BookingForm.CourseDate.options[document.BookingForm.CourseDate.length] = new Option("", "");
Index = 0;
switch (document.BookingForm.CourseTitle.value)
{  
case "The Copywriter": //CW course - set dates
if (AddListboxOption (document.BookingForm.CourseDate, "17 May 2010 – London, Lion Court", 1, 17, 5, 2010, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "17 June 2010 – Manchester", 2, 17, 6, 2010, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "29 July 2010 – London, Lion Court", 3, 29, 7, 2010, 1)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "8 September 2010 – Manchester", 4, 8, 9, 2010, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "6 October 2010 – London, Lion Court", 5, 6, 10, 2010, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "7 December 2010 – Manchester", 6, 7, 12, 2010, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "14 December 2010 – London, Lion Court", 7, 14, 12, 2010, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
document.BookingForm.CoursePrice.value   = "£395.00 + VAT    (£316.00 + VAT with 20% discount - see note 1)";
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£371.30";
}
else {
document.BookingForm.PaymentAmount.value = "£464.12";
}
document.BookingForm.PaymentCharity.disabled = false;
break;
case "The Business Writer": //BW course - set dates
if (AddListboxOption (document.BookingForm.CourseDate, "14–15 June 2010 – London, Lion Court", 1, 14, 6, 2010, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "10–11 August 2010 – London, Lion Court", 2, 10, 8, 2010, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "11–12 October 2010 – London, Lion Court", 3, 11, 10, 2010, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "7–8 December 2010 – London, Lion Court", 4, 7, 12, 2010, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
document.BookingForm.CoursePrice.value   = "£690.00 + VAT    (£552.00 + VAT with 20% discount - see note 1)";
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£648.60";
}
else {
document.BookingForm.PaymentAmount.value = "£810.75";
}
document.BookingForm.PaymentCharity.disabled = false;
break;
case "The Complete Editor": //CE course - set dates
if (AddListboxOption (document.BookingForm.CourseDate, "2–3 June 2010 – London, Lion Court", 1, 2, 6, 2010, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "24–25 August 2010 – London, Lion Court", 2, 24, 8, 2010, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "22–23 November 2010 – London, Lion Court", 3, 22, 11, 2010, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
document.BookingForm.CoursePrice.value   = "£690.00 + VAT    (£552.00 + VAT with 20% discount - see note 1)";
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£648.60";
}
else {
document.BookingForm.PaymentAmount.value = "£810.75";
}
document.BookingForm.PaymentCharity.disabled = false;
break;
case "The Professional Proofreader": //PP course - set dates
if (AddListboxOption (document.BookingForm.CourseDate, "12 May 2010 – London, Lion Court", 1, 12, 5, 2010, 1)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "26 May 2010 – Bristol", 2, 26, 5, 2010, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "15 June 2010 – Manchester", 3, 15, 6, 2010, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "29 June 2010 – London, Lion Court", 4, 29, 6, 2010, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "16 August 2010 – London, Lion Court", 5, 16, 8, 2010, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "22 September 2010 – Manchester", 6, 22, 9, 2010, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "5 October 2010 – London, Lion Court", 7, 5, 10, 2010, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "18 November 2010 – London, Lion Court", 8, 18, 11, 2010, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "8 December 2010 – Manchester", 9, 8, 12, 2010, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
document.BookingForm.CoursePrice.value   = "£395.00 + VAT    (£316.00 + VAT with 20% discount - see note 1)";
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£371.30";
}
else {
document.BookingForm.PaymentAmount.value = "£464.12";
}
document.BookingForm.PaymentCharity.disabled = false;
break;
case "The Letter Writer": //LW course - set dates
if (AddListboxOption (document.BookingForm.CourseDate, "19 May 2010 – London, Lion Court", 1, 19, 5, 2010, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "27 July 2010 – London, Lion Court", 2, 27, 7, 2010, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "20 October 2010 – London, Lion Court", 3, 20, 10, 2010, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
document.BookingForm.CoursePrice.value   = "£395.00 + VAT    (£316.00 + VAT with 20% discount - see note 1)";
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£371.30";
}
else {
document.BookingForm.PaymentAmount.value = "£464.12";
}
document.BookingForm.PaymentCharity.disabled = false;
break;
case "The Report Writer": //RW course - set dates
if (AddListboxOption (document.BookingForm.CourseDate, "13 May 2010 – London, Lion Court", 1, 13, 5, 2010, 1)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "25 May 2010 – Exeter", 2, 25, 5, 2010, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "16 June 2010 – Manchester", 3, 16, 6, 2010, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "28 June 2010 – London, Lion Court", 4, 28, 6, 2010, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "17 August 2010 – London, Lion Court", 5, 17, 8, 2010, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "21 September 2010 – Manchester", 6, 21, 9, 2010, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "7 October 2010 – London, Lion Court", 7, 7, 10, 2010, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "19 October 2010 – Exeter", 8, 19, 10, 2010, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "29 November 2010 – London, Lion Court", 9, 29, 11, 2010, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "9 December 2010 – Manchester", 10, 9, 12, 2010, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
document.BookingForm.CoursePrice.value   = "£395.00 + VAT    (£316.00 + VAT with 20% discount - see note 1)";
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£371.30";
}
else {
document.BookingForm.PaymentAmount.value = "£464.12";
}
document.BookingForm.PaymentCharity.disabled = false;
break;
case "Writing for the Web": //WW course - set dates
if (AddListboxOption (document.BookingForm.CourseDate, "16 June 2010 – London, Lion Court", 1, 16, 6, 2010, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "12 August 2010 – London, Lion Court", 2, 12, 8, 2010, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "18 October 2010 – London, Lion Court", 3, 18, 10, 2010, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "15 December 2010 – London, Lion Court", 4, 15, 12, 2010, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
document.BookingForm.CoursePrice.value   = "£395.00 + VAT    (£316.00 + VAT with 20% discount - see note 1)";
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£371.30";
}
else {
document.BookingForm.PaymentAmount.value = "£464.12";
}
document.BookingForm.PaymentCharity.disabled = false;
break;
case "Minute Taking": //WN course - set dates
if (AddListboxOption (document.BookingForm.CourseDate, "18 May 2010 – London, Lion Court", 1, 18, 5, 2010, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "23 August 2010 – London, Lion Court", 2, 23, 8, 2010, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "6 December 2010 – London, Lion Court", 3, 6, 12, 2010, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
document.BookingForm.CoursePrice.value   = "£395.00 + VAT    (£316.00 + VAT with 20% discount - see note 1)";
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£371.30";
}
else {
document.BookingForm.PaymentAmount.value = "£464.12";
}
document.BookingForm.PaymentCharity.disabled = false;
break;   
case "Grammar at Work": //GW course - set dates
if (AddListboxOption (document.BookingForm.CourseDate, "25 May 2010 – London, Lion Court", 1, 25, 5, 2010, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "14 June 2010 – Manchester", 2, 14, 6, 2010, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "30 June 2010 – London, Lion Court", 3, 30, 6, 2010, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "18 August 2010 – London, Lion Court", 4, 18, 8, 2010, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "7 September 2010 – Manchester", 5, 7, 9, 2010, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "19 October 2010 – London, Lion Court", 6, 19, 10, 2010, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "13 December 2010 – London, Lion Court", 7, 13, 12, 2010, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
document.BookingForm.CoursePrice.value   = "£395.00 + VAT    (£316.00 + VAT with 20% discount - see note 1)";
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£371.30";
}
else {
document.BookingForm.PaymentAmount.value = "£464.12";
}
document.BookingForm.PaymentCharity.disabled = false;
break;
case "Making Words Pay": //MWP course - set dates
document.BookingForm.CoursePrice.value   = "£195.00 + VAT";
document.BookingForm.PaymentAmount.value = "£229.12";
document.BookingForm.PaymentCharity.checked  = false;
document.BookingForm.PaymentCharity.disabled = true;
DisableField (document.BookingForm.PaymentCharityNumber, true);
break;
default : //Clear fields
document.BookingForm.CoursePrice.value   = "";
document.BookingForm.PaymentAmount.value = "";
}
SetFocusToDelegateName ();
return true;
}
function DisableField (FieldName, Disable)
{
if (Disable) 
{
FieldName.disabled = true;
FieldName.value    = "";
FieldName.style.backgroundColor = "transparent";
}
else 
{
FieldName.disabled = false;
FieldName.style.backgroundColor = "";
}
}
function OnlineForm_AdjustBookerFields()
{
if (document.BookingForm.Booker[0].checked) 
{
DisableField (document.BookingForm.BookerName, true);
DisableField (document.BookingForm.BookerJobTitle, true);
DisableField (document.BookingForm.BookerEmail, true);
DisableField (document.BookingForm.BookerPhone, true);
}
else 
{
DisableField (document.BookingForm.BookerName, false);
DisableField (document.BookingForm.BookerJobTitle, false);
DisableField (document.BookingForm.BookerEmail, false);
DisableField (document.BookingForm.BookerPhone, false);
document.BookingForm.BookerName.focus();
}
return true;
}
function OnlineForm_AdjustPOField()
{
return true; 
}
function OnlineForm_ClearPage ()
{
document.BookingForm.CourseTitle.selectedIndex = 0;
OnlineForm_SetCourseDates(-1);
document.BookingForm.PaymentCharity.checked = false;
OnlineForm_CharityAdjustTotalAmount();
}
function OnlineForm_InitPage()
{
var SelectedCourse = window.top.document.location.search.slice(1,2);
var SelectedDate   = window.top.document.location.search.slice(2,4);
if (SelectedCourse != "") {
document.BookingForm.CourseTitle.selectedIndex = ++SelectedCourse;
}
var Date;
if (SelectedDate == "") {
Date = 0;
}
else {
Date = ++SelectedDate;
}
OnlineForm_SetCourseDates (Date);
document.BookingForm.Booker[0].defaultChecked = "TRUE";
document.BookingForm.Booker[0].checked = "TRUE";
OnlineForm_AdjustBookerFields();
document.BookingForm.PaymentMethod[0].defaultChecked = "TRUE";
document.BookingForm.PaymentMethod[0].checked = "TRUE";
OnlineForm_AdjustPOField();
DisableField (document.BookingForm.PaymentCharityNumber, true);
}
function GotoHome()
{
document.URL = '.\index.htm';
return false; 
}
function PrintForm_AdjustBookerButtons (ThisButton)
{
if (ThisButton.id != document.BookingForm.BookerIsDelegate.id) {
document.BookingForm.BookerIsDelegate.checked = false;
document.BookingForm.BookerName.focus();
}
if (ThisButton.id != document.BookingForm.BookerIsOther.id) {
document.BookingForm.BookerIsOther.checked = false;
document.BookingForm.BookerName.value     = "";
document.BookingForm.BookerJobTitle.value = "";
document.BookingForm.BookerPhone.value    = "";
document.BookingForm.BookerEmail.value    = "";
}
return true;
}
function PrintForm_AdjustPaymentButtons (ThisButton)
{
if (ThisButton.id != document.BookingForm.PayChequeEnclosed.id) document.BookingForm.PayChequeEnclosed.checked = false;
if (ThisButton.id != document.BookingForm.PayCheckInPost.id) document.BookingForm.PayCheckInPost.checked = false;
if (ThisButton.id != document.BookingForm.PayBACS.id) document.BookingForm.PayBACS.checked = false;
if (ThisButton.id != document.BookingForm.PayPOEnclosed.id) document.BookingForm.PayPOEnclosed.checked = false;
if (ThisButton.id != document.BookingForm.PayPOInPost.id) document.BookingForm.PayPOInPost.checked = false;
return true;
}
function PrintForm_SetCourseDates()
{
for (i = 0; i < document.BookingForm.CourseDate.length;) {
document.BookingForm.CourseDate.remove(0);
}
document.BookingForm.CourseDate.options[document.BookingForm.CourseDate.length] = new Option("", "");
switch (document.BookingForm.CourseTitle.selectedIndex)
{
case  1 : //CW course - set dates
AddListboxOption (document.BookingForm.CourseDate, "17 May 2010 – London, Lion Court", 1, 17, 5, 2010, 0);
AddListboxOption (document.BookingForm.CourseDate, "17 June 2010 – Manchester", 2, 17, 6, 2010, 0);
AddListboxOption (document.BookingForm.CourseDate, "29 July 2010 – London, Lion Court", 3, 29, 7, 2010, 1);
AddListboxOption (document.BookingForm.CourseDate, "8 September 2010 – Manchester", 4, 8, 9, 2010, 0);
AddListboxOption (document.BookingForm.CourseDate, "6 October 2010 – London, Lion Court", 5, 6, 10, 2010, 0);
AddListboxOption (document.BookingForm.CourseDate, "7 December 2010 – Manchester", 6, 7, 12, 2010, 0);
AddListboxOption (document.BookingForm.CourseDate, "14 December 2010 – London, Lion Court", 7, 14, 12, 2010, 0);
document.BookingForm.CoursePrice.value   = "£395.00 + VAT    (£316.00 + VAT with 20% discount *)";
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£371.30";
}
else {
document.BookingForm.PaymentAmount.value = "£464.12";
}
document.BookingForm.PaymentCharity.disabled = false;
break;
case  2 : //BW course - set dates
AddListboxOption (document.BookingForm.CourseDate, "14–15 June 2010 – London, Lion Court", 1, 14, 6, 2010, 0);
AddListboxOption (document.BookingForm.CourseDate, "10–11 August 2010 – London, Lion Court", 2, 10, 8, 2010, 0);
AddListboxOption (document.BookingForm.CourseDate, "11–12 October 2010 – London, Lion Court", 3, 11, 10, 2010, 0);
AddListboxOption (document.BookingForm.CourseDate, "7–8 December 2010 – London, Lion Court", 4, 7, 12, 2010, 0);
document.BookingForm.CoursePrice.value   = "£690.00 + VAT    (£552.00 + VAT with 20% discount *)";
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£648.60";
}
else {
document.BookingForm.PaymentAmount.value = "£810.75";
}
document.BookingForm.PaymentCharity.disabled = false;
break;
case  3 : //LW course - set dates
AddListboxOption (document.BookingForm.CourseDate, "19 May 2010 – London, Lion Court", 1, 19, 5, 2010, 0);
AddListboxOption (document.BookingForm.CourseDate, "27 July 2010 – London, Lion Court", 2, 27, 7, 2010, 0);
AddListboxOption (document.BookingForm.CourseDate, "20 October 2010 – London, Lion Court", 3, 20, 10, 2010, 0);
document.BookingForm.CoursePrice.value   = "£395.00 + VAT    (£316.00 + VAT with 20% discount *)";
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£371.30";
}
else {
document.BookingForm.PaymentAmount.value = "£464.12";
}
document.BookingForm.PaymentCharity.disabled = false;
break;
case  4 : //RW course - set dates
AddListboxOption (document.BookingForm.CourseDate, "13 May 2010 – London, Lion Court", 1, 13, 5, 2010, 1);
AddListboxOption (document.BookingForm.CourseDate, "25 May 2010 – Exeter", 2, 25, 5, 2010, 0);
AddListboxOption (document.BookingForm.CourseDate, "16 June 2010 – Manchester", 3, 16, 6, 2010, 0);
AddListboxOption (document.BookingForm.CourseDate, "28 June 2010 – London, Lion Court", 4, 28, 6, 2010, 0);
AddListboxOption (document.BookingForm.CourseDate, "17 August 2010 – London, Lion Court", 5, 17, 8, 2010, 0);
AddListboxOption (document.BookingForm.CourseDate, "21 September 2010 – Manchester", 6, 21, 9, 2010, 0);
AddListboxOption (document.BookingForm.CourseDate, "7 October 2010 – London, Lion Court", 7, 7, 10, 2010, 0);
AddListboxOption (document.BookingForm.CourseDate, "19 October 2010 – Exeter", 8, 19, 10, 2010, 0);
AddListboxOption (document.BookingForm.CourseDate, "29 November 2010 – London, Lion Court", 8, 29, 11, 2010, 0);
AddListboxOption (document.BookingForm.CourseDate, "9 December 2010 – Manchester", 8, 9, 12, 2010, 0);
document.BookingForm.CoursePrice.value   = "£395.00 + VAT    (£316.00 + VAT with 20% discount *)";
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£371.30";
}
else {
document.BookingForm.PaymentAmount.value = "£464.12";
}
document.BookingForm.PaymentCharity.disabled = false;
break;
case  5 : //WW course - set dates
AddListboxOption (document.BookingForm.CourseDate, "16 June 2010 – London, Lion Court", 1, 16, 6, 2010, 0);
AddListboxOption (document.BookingForm.CourseDate, "12 August 2010 – London, Lion Court", 2, 12, 8, 2010, 0);
AddListboxOption (document.BookingForm.CourseDate, "18 October 2010 – London, Lion Court", 3, 18, 10, 2010, 0);
AddListboxOption (document.BookingForm.CourseDate, "15 December 2010 – London, Lion Court", 4, 15, 12, 2010, 0);
document.BookingForm.CoursePrice.value   = "£395.00 + VAT    (£316.00 + VAT with 20% discount *)";
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£371.30";
}
else {
document.BookingForm.PaymentAmount.value = "£464.12";
}
document.BookingForm.PaymentCharity.disabled = false;
break;
case 6  : //WN course - set dates
AddListboxOption (document.BookingForm.CourseDate, "18 May 2010 – London, Lion Court", 1, 18, 5, 2010, 0);
AddListboxOption (document.BookingForm.CourseDate, "23 August 2010 – London, Lion Court", 2, 23, 8, 2010, 0);
AddListboxOption (document.BookingForm.CourseDate, "6 December 2010 – London, Lion Court", 3, 6, 12, 2010, 0);
document.BookingForm.CoursePrice.value   = "£395.00 + VAT    (£316.00 + VAT with 20% discount *)";
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£371.30";
}
else {
document.BookingForm.PaymentAmount.value = "£464.12";
}
document.BookingForm.PaymentCharity.disabled = false;
break;
case  7 : //GW course - set dates
AddListboxOption (document.BookingForm.CourseDate, "25 May 2010 – London, Lion Court", 1, 25, 5, 2010, 0);
AddListboxOption (document.BookingForm.CourseDate, "14 June 2010 – Manchester", 2, 14, 6, 2010, 0);
AddListboxOption (document.BookingForm.CourseDate, "30 June 2010 – London, Lion Court", 3, 30, 6, 2010, 0);
AddListboxOption (document.BookingForm.CourseDate, "18 August 2010 – London, Lion Court", 4, 18, 8, 2010, 0);
AddListboxOption (document.BookingForm.CourseDate, "7 September 2010 – Manchester", 5, 7, 9, 2010, 0);
AddListboxOption (document.BookingForm.CourseDate, "19 October 2010 – London, Lion Court", 6, 19, 10, 2010, 0);
AddListboxOption (document.BookingForm.CourseDate, "13 December 2010 – London, Lion Court", 7, 13, 12, 2010, 0);
document.BookingForm.CoursePrice.value   = "£395.00 + VAT    (£316.00 + VAT with 20% discount *)";
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£371.30";
}
else {
document.BookingForm.PaymentAmount.value = "£464.12";
}
document.BookingForm.PaymentCharity.disabled = false;
break;
case  8 : //PP course - set dates
AddListboxOption (document.BookingForm.CourseDate, "12 May 2010 – London, Lion Court", 1, 12, 5, 2010, 1);
AddListboxOption (document.BookingForm.CourseDate, "26 May 2010 – Bristol", 2, 26, 5, 2010, 0);
AddListboxOption (document.BookingForm.CourseDate, "15 June 2010 – Manchester", 3, 15, 6, 2010, 0);
AddListboxOption (document.BookingForm.CourseDate, "29 June 2010 – London, Lion Court", 4, 29, 6, 2010, 0);
AddListboxOption (document.BookingForm.CourseDate, "16 August 2010 – London, Lion Court", 5, 16, 8, 2010, 0);
AddListboxOption (document.BookingForm.CourseDate, "22 September 2010 – Manchester", 6, 22, 9, 2010, 0);
AddListboxOption (document.BookingForm.CourseDate, "5 October 2010 – London, Lion Court", 7, 5, 10, 2010, 0);
AddListboxOption (document.BookingForm.CourseDate, "18 November 2010 – London, Lion Court", 7, 18, 11, 2010, 0);
AddListboxOption (document.BookingForm.CourseDate, "8 December 2010 – Manchester", 7, 8, 12, 2010, 0);
document.BookingForm.CoursePrice.value   = "£395.00 + VAT    (£316.00 + VAT with 20% discount *)";
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£371.30";
}
else {
document.BookingForm.PaymentAmount.value = "£464.12";
}
document.BookingForm.PaymentCharity.disabled = false;
break;
case  9 : //CE course - set dates
AddListboxOption (document.BookingForm.CourseDate, "2–3 June 2010 – London, Lion Court", 1, 2, 6, 2010, 0);
AddListboxOption (document.BookingForm.CourseDate, "24–25 August 2010 – London, Lion Court", 2, 24, 8, 2010, 0);
AddListboxOption (document.BookingForm.CourseDate, "22–23 November 2010 – London, Lion Court", 3, 22, 11, 2010, 0);
document.BookingForm.CoursePrice.value   = "£690.00 + VAT    (£552.00 + VAT with 20% discount *)";
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£648.60";
}
else {
document.BookingForm.PaymentAmount.value = "£810.75";
}
document.BookingForm.PaymentCharity.disabled = false;
break;
case 10 : //MWP course - set dates
document.BookingForm.CoursePrice.value   = "£195.00 + VAT)";
document.BookingForm.PaymentAmount.value = "£229.12";
document.BookingForm.PaymentCharity.checked  = false;
document.BookingForm.PaymentCharity.disabled = true;
DisableField (document.BookingForm.PaymentCharityNumber, true);
break;
default : //Clear fields
document.BookingForm.CoursePrice.value   = "";
document.BookingForm.PaymentAmount.value = "";
}
document.BookingForm.CourseDate.selectedIndex = 0;
SetFocusToDelegateName ();
return true;
}
function PrintForm_InitPage()
{
PrintForm_SetCourseDates();
DisableField (document.BookingForm.PaymentCharityNumber, true);
}
function PrintForm_Validation(eForm)
{
return true;
}
function PrintForm_ClearPage ()
{
document.BookingForm.CourseTitle.value = 0;
PrintForm_SetCourseDates();
document.BookingForm.PaymentCharity.checked = false;
PrintForm_CharityAdjustTotalAmount();
}
function PrintForm_PrintPage ()
{
PrintPage();
}
function ContactFormValidation(eForm)
{
if ("" == eForm.email.value) {
window.alert("Please enter the e-mail address you want us to reply to.");
eForm.email.focus();
return false;
}
if ("" == eForm.mesg.value) {
window.alert("Please type your message into the large box - you can enter as much text as you like.");
eForm.mesg.focus();
return false;
}
return true;
}
function ContactForm_InitPage()
{
document.ContactForm.email.focus();
}
function PrintForm_CharityAdjustTotalAmount()
{
switch (document.BookingForm.CourseTitle.selectedIndex)
{
case  1 : //Set CW price
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£371.30";
}
else {
document.BookingForm.PaymentAmount.value = "£464.12";
}
break;
case  2 : //Set BW price
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£648.60";
}
else {
document.BookingForm.PaymentAmount.value = "£810.75";
}
break;
case  3 : //Set LW prices
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£371.30";
}
else {
document.BookingForm.PaymentAmount.value = "£464.12";
}
break;
case  4 : //Set RW prices
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£371.30";
}
else {
document.BookingForm.PaymentAmount.value = "£464.12";
}
break;
case  5 : //Set WW prices
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£371.30";
}
else {
document.BookingForm.PaymentAmount.value = "£464.12";
}
break;
case  6 : //Set WN prices
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£371.30";
}
else {
document.BookingForm.PaymentAmount.value = "£464.12";
}
break;
case  7 : //Set GW prices
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£371.30";
}
else {
document.BookingForm.PaymentAmount.value = "£464.12";
}
break;
case  8 : //Set PP prices
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£371.30";
}
else {
document.BookingForm.PaymentAmount.value = "£464.12";
}
break;
case  9 : //Set CE prices
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£648.60";
}
else {
document.BookingForm.PaymentAmount.value = "£810.75";
}
break;
case 10 : //MWP uses same price as there's no charity discount
document.BookingForm.PaymentAmount.value = "£229.12";
break;
default : //Clear fields
document.BookingForm.CoursePrice.value   = "";
document.BookingForm.PaymentAmount.value = "";
}
if (document.BookingForm.PaymentCharity.checked) {
DisableField (document.BookingForm.PaymentCharityNumber, false);
document.BookingForm.PaymentCharityNumber.focus();
}
else {
DisableField (document.BookingForm.PaymentCharityNumber, true);
}
return true;
}
function OnlineForm_CharityAdjustTotalAmount()
{
switch (document.BookingForm.CourseTitle.selectedIndex)
{
case  1 : //Set CW price
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£371.30";
}
else {
document.BookingForm.PaymentAmount.value = "£464.12";
}
break;
case  2 : //Set BW price
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£648.60";
}
else {
document.BookingForm.PaymentAmount.value = "£810.75";
}
break;
case  3 : //Set LW prices
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£371.30";
}
else {
document.BookingForm.PaymentAmount.value = "£464.12";
}
break;
case  4 : //Set RW prices
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£371.30";
}
else {
document.BookingForm.PaymentAmount.value = "£464.12";
}
break;
case  5 : //Set WW prices
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£371.30";
}
else {
document.BookingForm.PaymentAmount.value = "£464.12";
}
break;
case  6 : //Set WN prices
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£371.30";
}
else {
document.BookingForm.PaymentAmount.value = "£464.12";
}
break;
case  7 : //Set GW prices
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£371.30";
}
else {
document.BookingForm.PaymentAmount.value = "£464.12";
}
break;
case  8 : //Set PP prices
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£371.30";
}
else {
document.BookingForm.PaymentAmount.value = "£464.12";
}
break;
case  9 : //Set CE prices
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£648.60";
}
else {
document.BookingForm.PaymentAmount.value = "£810.75";
}
break;
case 10 : //MWP uses same price as there's no charity discount
document.BookingForm.PaymentAmount.value = "£229.12";
break;
default : //Clear fields
document.BookingForm.CoursePrice.value   = "";
document.BookingForm.PaymentAmount.value = "";
}
if (document.BookingForm.PaymentCharity.checked) {
DisableField (document.BookingForm.PaymentCharityNumber, false);
document.BookingForm.PaymentCharityNumber.focus();
}
else {
DisableField (document.BookingForm.PaymentCharityNumber, true);
}
return true;
}
