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 "Press Release Writing" : document.BookingForm.redirect.value = "http://www.stephenlloydtraining.co.uk/bookingconfirmation_prd_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 "Freelance Proofreading": document.BookingForm.redirect.value = "http://www.stephenlloydtraining.co.uk/bookingconfirmation_fpd_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 "Press Release Writing" : document.BookingForm.redirect.value = "http://www.stephenlloydtraining.co.uk/bookingconfirmation_pr_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 "Freelance Proofreading": document.BookingForm.redirect.value = "http://www.stephenlloydtraining.co.uk/bookingconfirmation_fp_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, "8 December 2011 – London, Lion Court", 1, 8, 12, 2011, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "20 February 2012 – London, Lion Court", 2, 20, 2, 2012, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "1 May 2012 – London, Lion Court", 3, 1, 5, 2012, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "17 July 2012 – London, Lion Court", 4, 17, 7, 2012, 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 = "£379.20";
}
else {
document.BookingForm.PaymentAmount.value = "£474.00";
}
document.BookingForm.PaymentCharity.disabled = false;
break;
case "The Business Writer": //BW course - set dates
if (AddListboxOption (document.BookingForm.CourseDate, "6–7 December 2011 – London, Lion Court", 1, 6, 12, 2011, 1)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "14–15 February 2012 – London, Lion Court", 2, 14, 2, 2012, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "13–14 March 2012 – Manchester", 3, 13, 3, 2012, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "17–18 April 2012 – London, Lion Court", 4, 17, 4, 2012, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "12–13 June 2012 – London, Lion Court", 5, 12, 6, 2012, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "21–22 August 2012 – London, Lion Court", 6, 21, 8, 2012, 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 = "£662.40";
}
else {
document.BookingForm.PaymentAmount.value = "£828.00";
}
document.BookingForm.PaymentCharity.disabled = false;
break;
case "The Complete Editor": //CE course - set dates
if (AddListboxOption (document.BookingForm.CourseDate, "14–15 December 2011 – London, Lion Court", 1, 14, 12, 2011, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "20–21 March 2012 – London, Lion Court", 2, 20, 3, 2012, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "26–27 June 2012 – London, Lion Court", 3, 26, 6, 2012, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "19–20 September 2012 – London, Lion Court", 4, 19, 9, 2012, 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 = "£662.40";
}
else {
document.BookingForm.PaymentAmount.value = "£828.00";
}
document.BookingForm.PaymentCharity.disabled = false;
break;
case "The Professional Proofreader": //PP course - set dates
if (AddListboxOption (document.BookingForm.CourseDate, "13 December 2011 – London, Lion Court", 1, 13, 12, 2011, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "16 February 2012 – London, Lion Court", 2, 16, 2, 2012, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "22 February 2012 – Manchester", 3, 22, 2, 2012, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "24 April 2012 – London, Lion Court", 4, 24, 4, 2012, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "23 May 2012 – Manchester", 5, 23, 5, 2012, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "20 June 2012 – London, Lion Court", 6, 20, 6, 2012, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "16 August 2012 – London, Lion Court", 7, 16, 8, 2012, 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 = "£379.20";
}
else {
document.BookingForm.PaymentAmount.value = "£474.00";
}
document.BookingForm.PaymentCharity.disabled = false;
break;
case "The Letter Writer": //LW course - set dates
if (AddListboxOption (document.BookingForm.CourseDate, "23 January 2012 – London, Lion Court", 1, 23, 2, 2012, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "25 April 2012 – London, Lion Court", 2, 25, 4, 2012, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "19 July 2012 – London, Lion Court", 3, 19, 7, 2012, 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 = "£379.20";
}
else {
document.BookingForm.PaymentAmount.value = "£474.00";
}
document.BookingForm.PaymentCharity.disabled = false;
break;
case "The Report Writer": //RW course - set dates
if (AddListboxOption (document.BookingForm.CourseDate, "6 December 2011 – Manchester", 1, 6, 12, 2011, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "25 January 2012 – London, Lion Court", 2, 25, 1, 2012, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "21 February 2012 – Manchester", 3, 21, 2, 2012, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "1 March 2012 – London, Lion Court", 4, 1, 3, 2012, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "19 April 2012 – London, Lion Court", 5, 19, 4, 2012, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "24 May 2012 – Manchester", 6, 24, 5, 2012, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "14 June 2012 – London, Lion Court", 7, 14, 6, 2012, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "15 August 2012 – London, Lion Court", 8, 15, 8, 2012, 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 = "£379.20";
}
else {
document.BookingForm.PaymentAmount.value = "£474.00";
}
document.BookingForm.PaymentCharity.disabled = false;
break;
case "Press Release Writing": //PR course - set dates
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 = "£379.20";
}
else {
document.BookingForm.PaymentAmount.value = "£474.00";
}
document.BookingForm.PaymentCharity.disabled = false;
break;
case "Writing for the Web": //WW course - set dates
if (AddListboxOption (document.BookingForm.CourseDate, "2 February 2012 – London, Lion Court", 1, 2, 2, 2012, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "28 March 2012 – London, Lion Court", 2, 28, 3, 2012, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "30 May 2012 – London, Lion Court", 3, 30, 5, 2012, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "18 July 2012 – London, Lion Court", 4, 18, 7, 2012, 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 = "£379.20";
}
else {
document.BookingForm.PaymentAmount.value = "£474.00";
}
document.BookingForm.PaymentCharity.disabled = false;
break;
case "Minute Taking": //WN course - set dates
if (AddListboxOption (document.BookingForm.CourseDate, "24 January 2012 – London, Lion Court", 1, 24, 1, 2012, 1)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "21 February 2012 – London, Lion Court", 2, 21, 2, 2012, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "15 March 2012 – Manchester", 3, 15, 3, 2012, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "26 April 2012 – London, Lion Court", 4, 26, 4, 2012, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "19 June 2012 – London, Lion Court", 5, 19, 6, 2012, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "23 August 2012 – London, Lion Court", 6, 23, 8, 2012, 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 = "£379.20";
}
else {
document.BookingForm.PaymentAmount.value = "£474.00";
}
document.BookingForm.PaymentCharity.disabled = false;
break;   
case "Grammar at Work": //GW course - set dates
if (AddListboxOption (document.BookingForm.CourseDate, "7 December 2011 – Manchester", 1, 7, 12, 2011, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "14 December 2011 – London, Lion Court", 2, 14, 12, 2011, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "19 January 2012 – London, Lion Court", 3, 19, 1, 2012, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "23 February 2012 – Manchester", 4, 23, 2, 2012, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "28 February 2012 – London, Lion Court", 5, 28, 2, 2012, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "29 March 2012 – London, Lion Court", 6, 29, 3, 2012, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "9 May 2012 – London, Lion Court", 7, 9, 5, 2012, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "22 May 2012 – Manchester", 8, 22, 5, 2012, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "21 June 2012 – London, Lion Court", 9, 21, 6, 2012, 0)) Index++; 
if (--SelectedDate == 0) document.BookingForm.CourseDate.selectedIndex = Index;
if (AddListboxOption (document.BookingForm.CourseDate, "14 August 2012 – London, Lion Court", 10, 14, 8, 2012, 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 = "£379.20";
}
else {
document.BookingForm.PaymentAmount.value = "£474.00";
}
document.BookingForm.PaymentCharity.disabled = false;
break;
case "Freelance Proofreading": //FP course - set dates
document.BookingForm.CoursePrice.value   = "£412.50 + VAT    (£330.00 + VAT with 20% discount - see note 1)";
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£396.00";
}
else {
document.BookingForm.PaymentAmount.value = "£495.00";
}
document.BookingForm.PaymentCharity.disabled = false;
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 = parseInt(SelectedCourse, 16) + 1;
}
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, "8 December 2011 – London, Lion Court", 1, 8, 12, 2011, 0);
AddListboxOption (document.BookingForm.CourseDate, "20 February 2012 – London, Lion Court", 2, 20, 2, 2012, 0);
AddListboxOption (document.BookingForm.CourseDate, "1 May 2012 – London, Lion Court", 3, 1, 5, 2012, 0);
AddListboxOption (document.BookingForm.CourseDate, "17 July 2012 – London, Lion Court", 4, 17, 7, 2012, 0);
document.BookingForm.CoursePrice.value   = "£395.00 + VAT    (£316.00 + VAT with 20% discount *)";
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£379.20";
}
else {
document.BookingForm.PaymentAmount.value = "£474.00";
}
document.BookingForm.PaymentCharity.disabled = false;
break;
case  2 : //BW course - set dates
AddListboxOption (document.BookingForm.CourseDate, "6–7 December 2011 – London, Lion Court", 1, 6, 12, 2011, 1);
AddListboxOption (document.BookingForm.CourseDate, "14–15 February 2012 – London, Lion Court", 2, 14, 2, 2012, 0);
AddListboxOption (document.BookingForm.CourseDate, "13–14 March 2012 – Manchester", 3, 13, 3, 2012, 0);
AddListboxOption (document.BookingForm.CourseDate, "17–18 April 2012 – London, Lion Court", 4, 17, 4, 2012, 0);
AddListboxOption (document.BookingForm.CourseDate, "12–13 June 2012 – London, Lion Court", 5, 12, 6, 2012, 0);
AddListboxOption (document.BookingForm.CourseDate, "21–22 August 2012 – London, Lion Court", 6, 21, 8, 2012, 0);
document.BookingForm.CoursePrice.value   = "£690.00 + VAT    (£552.00 + VAT with 20% discount *)";
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£662.40";
}
else {
document.BookingForm.PaymentAmount.value = "£828.00";
}
document.BookingForm.PaymentCharity.disabled = false;
break;
case  3 : //LW course - set dates
AddListboxOption (document.BookingForm.CourseDate, "23 January 2012 – London, Lion Court", 1, 23, 2, 2012, 0);
AddListboxOption (document.BookingForm.CourseDate, "25 April 2012 – London, Lion Court", 2, 25, 4, 2012, 0);
AddListboxOption (document.BookingForm.CourseDate, "19 July 2012 – London, Lion Court", 3, 19, 7, 2012, 0);
document.BookingForm.CoursePrice.value   = "£395.00 + VAT    (£316.00 + VAT with 20% discount *)";
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£379.20";
}
else {
document.BookingForm.PaymentAmount.value = "£474.00";
}
document.BookingForm.PaymentCharity.disabled = false;
break;
case  4 : //RW course - set dates
AddListboxOption (document.BookingForm.CourseDate, "6 December 2011 – Manchester", 1, 6, 12, 2011, 0);
AddListboxOption (document.BookingForm.CourseDate, "25 January 2012 – London, Lion Court", 2, 25, 1, 2012, 0);
AddListboxOption (document.BookingForm.CourseDate, "21 February 2012 – Manchester", 3, 21, 2, 2012, 0);
AddListboxOption (document.BookingForm.CourseDate, "1 March 2012 – London, Lion Court", 4, 1, 3, 2012, 0);
AddListboxOption (document.BookingForm.CourseDate, "19 April 2012 – London, Lion Court", 5, 19, 4, 2012, 0);
AddListboxOption (document.BookingForm.CourseDate, "24 May 2012 – Manchester", 6, 24, 5, 2012, 0);
AddListboxOption (document.BookingForm.CourseDate, "14 June 2012 – London, Lion Court", 7, 14, 6, 2012, 0);
AddListboxOption (document.BookingForm.CourseDate, "15 August 2012 – London, Lion Court", 8, 15, 8, 2012, 0);
document.BookingForm.CoursePrice.value   = "£395.00 + VAT    (£316.00 + VAT with 20% discount *)";
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£379.20";
}
else {
document.BookingForm.PaymentAmount.value = "£474.00";
}
document.BookingForm.PaymentCharity.disabled = false;
break;
case  5 : //PR course - set dates
document.BookingForm.CoursePrice.value   = "£395.00 + VAT    (£316.00 + VAT with 20% discount *)";
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£379.20";
}
else {
document.BookingForm.PaymentAmount.value = "£474.00";
}
document.BookingForm.PaymentCharity.disabled = false;
break;
case  6 : //WW course - set dates
AddListboxOption (document.BookingForm.CourseDate, "2 February 2012 – London, Lion Court", 1, 2, 2, 2012, 0);
AddListboxOption (document.BookingForm.CourseDate, "28 March 2012 – London, Lion Court", 2, 28, 3, 2012, 0);
AddListboxOption (document.BookingForm.CourseDate, "30 May 2012 – London, Lion Court", 3, 30, 5, 2012, 0);
AddListboxOption (document.BookingForm.CourseDate, "18 July 2012 – London, Lion Court", 4, 18, 7, 2012, 0);
document.BookingForm.CoursePrice.value   = "£395.00 + VAT    (£316.00 + VAT with 20% discount *)";
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£379.20";
}
else {
document.BookingForm.PaymentAmount.value = "£474.00";
}
document.BookingForm.PaymentCharity.disabled = false;
break;
case 7  : //WN course - set dates
AddListboxOption (document.BookingForm.CourseDate, "24 January 2012 – London, Lion Court", 1, 24, 1, 2012, 1);
AddListboxOption (document.BookingForm.CourseDate, "21 February 2012 – London, Lion Court", 2, 21, 2, 2012, 0);
AddListboxOption (document.BookingForm.CourseDate, "15 March 2012 – Manchester", 3, 15, 3, 2012, 0);
AddListboxOption (document.BookingForm.CourseDate, "26 April 2012 – London, Lion Court", 4, 26, 4, 2012, 0);
AddListboxOption (document.BookingForm.CourseDate, "19 June 2012 – London, Lion Court", 5, 19, 6, 2012, 0);
AddListboxOption (document.BookingForm.CourseDate, "23 August 2012 – London, Lion Court", 6, 23, 8, 2012, 0);
document.BookingForm.CoursePrice.value   = "£395.00 + VAT    (£316.00 + VAT with 20% discount *)";
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£379.20";
}
else {
document.BookingForm.PaymentAmount.value = "£474.00";
}
document.BookingForm.PaymentCharity.disabled = false;
break;
case  8 : //GW course - set dates
AddListboxOption (document.BookingForm.CourseDate, "7 December 2011 – Manchester", 1, 7, 12, 2011, 0);
AddListboxOption (document.BookingForm.CourseDate, "14 December 2011 – London, Lion Court", 2, 14, 12, 2011, 0);
AddListboxOption (document.BookingForm.CourseDate, "19 January 2012 – London, Lion Court", 3, 19, 1, 2012, 0);
AddListboxOption (document.BookingForm.CourseDate, "23 February 2012 – Manchester", 4, 23, 2, 2012, 0);
AddListboxOption (document.BookingForm.CourseDate, "28 February 2012 – London, Lion Court", 5, 28, 2, 2012, 0);
AddListboxOption (document.BookingForm.CourseDate, "29 March 2012 – London, Lion Court", 6, 29, 3, 2012, 0);
AddListboxOption (document.BookingForm.CourseDate, "9 May 2012 – London, Lion Court", 7, 9, 5, 2012, 0);
AddListboxOption (document.BookingForm.CourseDate, "22 May 2012 – Manchester", 8, 22, 5, 2012, 0);
AddListboxOption (document.BookingForm.CourseDate, "21 June 2012 – London, Lion Court", 9, 21, 6, 2012, 0);
AddListboxOption (document.BookingForm.CourseDate, "14 August 2012 – London, Lion Court", 10, 14, 8, 2012, 0);
document.BookingForm.CoursePrice.value   = "£395.00 + VAT    (£316.00 + VAT with 20% discount *)";
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£379.20";
}
else {
document.BookingForm.PaymentAmount.value = "£474.00";
}
document.BookingForm.PaymentCharity.disabled = false;
break;
case  9 : //PP course - set dates
AddListboxOption (document.BookingForm.CourseDate, "13 December 2011 – London, Lion Court", 1, 13, 12, 2011, 0);
AddListboxOption (document.BookingForm.CourseDate, "16 February 2012 – London, Lion Court", 2, 16, 2, 2012, 0);
AddListboxOption (document.BookingForm.CourseDate, "22 February 2012 – Manchester", 3, 22, 2, 2012, 0);
AddListboxOption (document.BookingForm.CourseDate, "24 April 2012 – London, Lion Court", 4, 24, 4, 2012, 0);
AddListboxOption (document.BookingForm.CourseDate, "23 May 2012 – Manchester", 5, 23, 5, 2012, 0);
AddListboxOption (document.BookingForm.CourseDate, "20 June 2012 – London, Lion Court", 6, 20, 6, 2012, 0);
AddListboxOption (document.BookingForm.CourseDate, "16 August 2012 – London, Lion Court", 7, 16, 8, 2012, 0);
document.BookingForm.CoursePrice.value   = "£395.00 + VAT    (£316.00 + VAT with 20% discount *)";
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£379.20";
}
else {
document.BookingForm.PaymentAmount.value = "£474.00";
}
document.BookingForm.PaymentCharity.disabled = false;
break;
case 10 : //CE course - set dates
AddListboxOption (document.BookingForm.CourseDate, "14–15 December 2011 – London, Lion Court", 1, 14, 12, 2011, 0);
AddListboxOption (document.BookingForm.CourseDate, "20–21 March 2012 – London, Lion Court", 2, 20, 3, 2012, 0);
AddListboxOption (document.BookingForm.CourseDate, "26–27 June 2012 – London, Lion Court", 3, 26, 6, 2012, 0);
AddListboxOption (document.BookingForm.CourseDate, "19–20 September 2012 – London, Lion Court", 4, 19, 9, 2012, 0);
document.BookingForm.CoursePrice.value   = "£690.00 + VAT    (£552.00 + VAT with 20% discount *)";
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£662.40";
}
else {
document.BookingForm.PaymentAmount.value = "£828.00";
}
document.BookingForm.PaymentCharity.disabled = false;
break;
case 11 : //FP course - set dates
document.BookingForm.CoursePrice.value   = "£412.50 + VAT    (£330.00 + VAT with 20% discount *)";
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£396.00";
}
else {
document.BookingForm.PaymentAmount.value = "£495.00";
}
document.BookingForm.PaymentCharity.disabled = false;
break;
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 = "£379.20";
}
else {
document.BookingForm.PaymentAmount.value = "£474.00";
}
break;
case  2 : //Set BW price
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£662.40";
}
else {
document.BookingForm.PaymentAmount.value = "£828.00";
}
break;
case  3 : //Set LW prices
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£379.20";
}
else {
document.BookingForm.PaymentAmount.value = "£474.00";
}
break;
case  4 : //Set RW prices
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£379.20";
}
else {
document.BookingForm.PaymentAmount.value = "£474.00";
}
break;
case  5 : //Set PR prices
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£379.20";
}
else {
document.BookingForm.PaymentAmount.value = "£474.00";
}
break;
case  6 : //Set WW prices
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£379.20";
}
else {
document.BookingForm.PaymentAmount.value = "£474.00";
}
break;
case  7 : //Set WN prices
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£379.20";
}
else {
document.BookingForm.PaymentAmount.value = "£474.00";
}
break;
case  8 : //Set GW prices
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£379.20";
}
else {
document.BookingForm.PaymentAmount.value = "£474.00";
}
break;
case  9 : //Set PP prices
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£379.20";
}
else {
document.BookingForm.PaymentAmount.value = "£474.00";
}
break;
case 10 : //Set CE prices
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£662.40";
}
else {
document.BookingForm.PaymentAmount.value = "£828.00";
}
break;
case 11 : //!!FP uses same price as there's no charity discount
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£396.00";
}
else {
document.BookingForm.PaymentAmount.value = "£495.00";
}
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 = "£379.20";
}
else {
document.BookingForm.PaymentAmount.value = "£474.00";
}
break;
case  2 : //Set BW price
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£662.40";
}
else {
document.BookingForm.PaymentAmount.value = "£828.00";
}
break;
case  3 : //Set LW prices
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£379.20";
}
else {
document.BookingForm.PaymentAmount.value = "£474.00";
}
break;
case  4 : //Set RW prices
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£379.20";
}
else {
document.BookingForm.PaymentAmount.value = "£474.00";
}
break;
case  5 : //Set PR prices
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£379.20";
}
else {
document.BookingForm.PaymentAmount.value = "£474.00";
}
break;
case  6 : //Set WW prices
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£379.20";
}
else {
document.BookingForm.PaymentAmount.value = "£474.00";
}
break;
case  7 : //Set WN prices
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£379.20";
}
else {
document.BookingForm.PaymentAmount.value = "£474.00";
}
break;
case  8 : //Set GW prices
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£379.20";
}
else {
document.BookingForm.PaymentAmount.value = "£474.00";
}
break;
case  9 : //Set PP prices
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£379.20";
}
else {
document.BookingForm.PaymentAmount.value = "£474.00";
}
break;
case 10 : //Set CE prices
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£662.40";
}
else {
document.BookingForm.PaymentAmount.value = "£828.00";
}
break;
case 11 : //!!FP uses same price as there's no charity discount
if (document.BookingForm.PaymentCharity.checked) {
document.BookingForm.PaymentAmount.value = "£396.00";
}
else {
document.BookingForm.PaymentAmount.value = "£495.00";
}
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;
}

