';
document.write(tc);
tc="";
tc+='
';
tc+='
';
tc+='
';
tc+='
To book an MOT, click an available day, then choose a timeslot from those available.
';
tc+='
';
tc+='
Tue 30/04/2024
0 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Wed 01/05/2024
10 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Thu 02/05/2024
12 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Fri 03/05/2024
12 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Sat 04/05/2024
12 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Sun 05/05/2024
0 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Mon 06/05/2024
12 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Tue 07/05/2024
20 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Wed 08/05/2024
20 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Thu 09/05/2024
20 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Fri 10/05/2024
20 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Sat 11/05/2024
20 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Sun 12/05/2024
16 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Mon 13/05/2024
20 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Tue 14/05/2024
20 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Wed 15/05/2024
20 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Thu 16/05/2024
20 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Fri 17/05/2024
20 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Sat 18/05/2024
20 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Sun 19/05/2024
16 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Mon 20/05/2024
20 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Tue 21/05/2024
19 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Wed 22/05/2024
20 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Thu 23/05/2024
20 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Fri 24/05/2024
20 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Sat 25/05/2024
20 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Sun 26/05/2024
16 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Mon 27/05/2024
20 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Tue 28/05/2024
20 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Wed 29/05/2024
20 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Thu 30/05/2024
20 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Fri 31/05/2024
20 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Sat 01/06/2024
20 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Sun 02/06/2024
16 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Mon 03/06/2024
20 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Tue 04/06/2024
20 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Wed 05/06/2024
20 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Thu 06/06/2024
20 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Fri 07/06/2024
20 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Sat 08/06/2024
20 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Sun 09/06/2024
16 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Mon 10/06/2024
20 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Tue 11/06/2024
20 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Wed 12/06/2024
20 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Thu 13/06/2024
20 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Fri 14/06/2024
20 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Sat 15/06/2024
20 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Sun 16/06/2024
16 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Mon 17/06/2024
20 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Tue 18/06/2024
20 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Wed 19/06/2024
20 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Thu 20/06/2024
20 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Fri 21/06/2024
20 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Sat 22/06/2024
20 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Sun 23/06/2024
16 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Mon 24/06/2024
19 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Tue 25/06/2024
20 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Wed 26/06/2024
20 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Thu 27/06/2024
20 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
Fri 28/06/2024
20 slots free
08:00
09:00
09:50
10:40
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
';
tc+='
';
tc+='
';
tc+='
';
tc+='
Thank you!
Your MOT for has been booked in! A confirmation text will be sent to your mobile shortly.
';
tc+='
';
tc+='
';
tc+='
Vehicle already booked in!
Your MOT for is already booked in for .
If you need to change this date, please contact us.
';
tc+='
';
tc+='
';
tc+='
Enter your info
';
tc+='
';
tc+='
';
tc+='
';
tc+='
';
document.write(tc);
function ShowMyDay(a)
{
if(di('DayData_'+a).style.display != "none")
{
return false;
}
for(i=1;i<60;i++)
{
$('#DayData_'+i).slideUp(300);
di('Day_'+i).style.backgroundColor='white';
di('Book_'+i).innerHTML="";
}
$('#DayData_'+a).slideDown(300);
di('Day_'+a).style.backgroundColor='#fffde3';
}
window.motwait=1;
window.morework=0;
function CancelThis(a)
{
di('Book_'+a).innerHTML="";
}
function BookIn(a,b,c,d,e)
{
if(b=="0")
{
di('Book_'+e).innerHTML='Timeslot busy. Please choose an alternative.
';
}
else
{
//di('Book_'+e).innerHTML='Book in for '+a+'?
';
di('BookingInfo').innerHTML+='
';
//$('#MainPop').fadeTo('slow',0.2);
//0'#PopupP').fadeIn(500);
di('BookingInfo').style.display="block";
}
function BackToSlots()
{
$('#BookingInfo').fadeOut(300,function(){$('#Slots').fadeIn(300);});
}
function Yes(a)
{
$('#BookingInfo').fadeOut(300,function(){
window.booktime=a;
window.bookwhere="GREENWOODS MOT";
di('BookingInfo').innerHTML='
Your Appointment - Waiting with or Leaving your vehicle:
Are you leaving your vehicle or waiting with it?
';
di('BookingInfo').innerHTML+='
';
$('#BookingInfo').fadeIn(300);
});
}
function Leave(a)
{
window.motwait=0;
window.booktime=a;
window.bookwhere="GREENWOODS MOT";
$('#BookingInfo').fadeOut(300,function(){
di('BookingInfo').innerHTML='
Your Appointment - Just so you know:
Please drop your vehicle off at appx 9am on the day.
';
di('BookingInfo').innerHTML+='
';
$('#BookingInfo').fadeIn(300);
});
}
function AddJobs(a)
{
window.morework=0;
User(a);
return false;
window.booktime=a;
window.bookwhere="GREENWOODS MOT";
$('#BookingInfo').fadeOut(300,function(){
di('BookingInfo').innerHTML='
Your Appointment - Additional work:
Do you just want an MOT, or is there additional work you would like us to do?
';
di('BookingInfo').innerHTML+='
';
$('#BookingInfo').fadeIn(300);
});
}
function MoreWork(a)
{
window.booktime=a;
window.morework=1;
window.bookwhere="GREENWOODS MOT";
$('#BookingInfo').fadeOut(300,function(){
di('BookingInfo').innerHTML='
Your Appointment - Additional work:
What work would you like?
NB: We will contact you to confirm the work and provide confirmed prices.';
di('BookingInfo').innerHTML+='
';
$('#BookingInfo').fadeIn(300);
});
}
function User(a)
{
window.booktime=a;
window.bookwhere="GREENWOODS MOT";
opt="";
d=window.vehicletypes.split(',');
for(i=0;i
'+d[i]+'';
}
GenericMsg="";
if(GenericMsg != ""){GenericMsg=''+GenericMsg+"
";}
$('#BookingInfo').fadeOut(300,function(){
di('BookingInfo').innerHTML='Your Appointment - About you and your vehicle:
';
di('BookingInfo').innerHTML+='';
$('#BookingInfo').fadeIn(300);
});
}
function BookMeIn(a)
{
if(window.morework == "1")
{
if(di('myjob').value == ""){di('myjob').style.borderColor="red";return false;}
urlsend='/modules/bookin.pl?key=&date='+encodeURIComponent(a)+'&wait='+window.motwait+'&jobs='+encodeURIComponent(di('myjob').value);
}
else
{
urlsend='/modules/bookin.pl?key=&date='+encodeURIComponent(a)+'&wait='+window.motwait;
}
mn=di('mn').value; mn=mn.replace(" ","");
vr=di('vr').value; vr=vr.replace(" ","");
if(di('fn').value == ""){alert('First name must be entered');return false;}
if(di('sn').value == ""){alert('Surname must be entered');return false;}
if(vr == ""){alert('Registration must be entered');return false;}
if(di('vt').value == ""){alert('Please select your vehicle type');return false;}
if(mn == ""){alert('Mobile no. must be entered');return false;}
if(mn.length != "11"){alert('Mobile no. is invalid.');return false;}
mc=mn.split('');
if(mc[0] != "0" || mc[1] != "7")
{
if(di('mrm').value == ""){alert('Your mobile number was entered incorrectly');return false;}
}
if(di('mrm').value == ""){alert('Please select whether you want free MOT reminders in the future');return false;}
fn=encodeURIComponent(di('fn').value);
sn=encodeURIComponent(di('sn').value);09
vr=encodeURIComponent(vr);
vt=encodeURIComponent(di('vt').value);
mn=encodeURIComponent(mn);
bt=encodeURIComponent(window.sqltime);
rems=encodeURIComponent(di('mrm').value);
ft=encodeURIComponent(window.booktime2);
di('rn2').innerHTML=vr;
di('rn3').innerHTML=vr;
$('#BookingInfo').fadeOut(300,function(){
di('BookingInfo').innerHTML='Your Appointment - Confirming your appointment:
Confirming with garage, one moment...';
$('#BookingInfo').fadeIn(300);
});
key='17-987w54-soiubs0r780bu0erwgh454709f09f8g09bndorlfs-89048f';
urlsend='//bookinmycar.co.uk/online/bookin.pl?t=3&key='+key+'&ramp='+window.rampno+'&fn='+fn+'&sn='+sn+'&vr='+vr+'&vt='+vt+'&ft='+ft+'&mn='+mn+'&bt='+bt+'&wait='+window.motwait+'&rems='+rems;
//alert(urlsend);
//di('dump').innerHTML=urlsend;return false;
jQuery.ajax({
url:urlsend,
dataType: "jsonp",
crossDomain: true,
success: function (data) { parseresults(data); },
error: function (xhr, ajaxOptions, thrownError) {
alert(xhr.status + ' & ' + ajaxOptions + ' & ' + thrownError);
}
});
//ajaxpage(url,'nuldiv','','BookIn');
}
function parseresults(data)
{
//data.items[0].snippet.title
//alert(data.details);
if(data.reply == "busy")
{
di('BookingInfo').innerHTML='
Your Appointment - A problem occured.
We are really sorry!
Somebody else has just booked this time and date.
When you click Continue, the booking slots will be reloaded with up to date times available so you can choose an alternative.
';
di('BookingInfo').innerHTML+='
';
return false;
}
if(data.reply == "booked")
{
di('BookingInfo').innerHTML='
Your Appointment - Provisionally booked!
Congratulations, your MOT is provisionally booked.
Once the garage has acknowledged the booking, you will receive a confirmation text to your mobile.
';
return false;
}
if(data.reply == "error")
{
di('BookingInfo').innerHTML='
Your Appointment - A problem occured.
Something went wrong!
We could not make the booking as an error occured. The team have been notified. You can try again by refreshing the page otherwise you will have to make a telephone booking.
';
di('BookingInfo').innerHTML+='
';
return false;
}
if(data.reply == "failed")
{
di('BookingInfo').innerHTML='
Your Appointment - A problem occured.
Something went wrong!
We could not make the booking as an error occured. The team have been notified. You can try again by refreshing the page otherwise you will have to make a telephone booking.
';
di('BookingInfo').innerHTML+='
';
return false;
}
if(data.reply == "banned")
{
di('BookingInfo').innerHTML='
Your Appointment - A problem occured.
Unfortunately this vehicle cannot be booked online.
Please call the garage and make a telephone booking.
';
di('BookingInfo').innerHTML+='
';
return false;
}
if(data.reply == "exists")
{
di('ts').innerHTML=data.details;
di('BookingInfo').innerHTML='
Your Appointment - An appointment is already booked!
Vehicle already booked in!
This vehicle is already booked in on:
'+data.details+'.
If you need to change this date, please contact us by telephone.
';
//di('BookingInfo').innerHTML+='
';
return false;
}
//alert(data.result_b);
//alert(data.confirmed);
}
function NoBook(a)
{
di('BookingInfo').innerHTML='
Your Appointment - The timeslot was taken.
This time slot is no longer available. It may have been booked by somebody else a few moments ago. Please choose another.';
di('BookingInfo').innerHTML+='
';
}
function ClosePopupP()
{
di('PopupP').style.display="none";
}