function checkShuttle() {
var radio_choice = false;

// Loop from zero to the one minus the number of radio button selections
for (counter = 0; counter < shuttle_form.route.length; counter++)
{
// If a radio button has been selected it will return true
// (If not it will return false)
if (shuttle_form.route[counter].checked)
radio_choice = true; 
}

if (!radio_choice)
{
// If there were no selections made display an alert box 
alert("Please select your route.")
return (false);
}
return (true);}
function waitloadPage() { //DOM
if (document.getElementById){
parent.document.getElementById('pre_shuttle').style.visibility = 'hidden';
}else{
if (document.layers){ //NS4
parent.document.pre_shuttle.visibility = 'hidden';
}
else { //IE4
parent.document.all.pre_shuttle.style.visibility = 'hidden';
}
}
}
function shuttleDest(what,count) {
    value = what
    for (var i = 0, oldpos = -1; i<count-1; i++) {
        pos = value.indexOf('&',oldpos+1);
        data = value.substring(oldpos+1,pos);
       document.getElementById('htdesttext' + i).value = value.substring(oldpos+1,pos);
        oldpos = pos;
    }
   document.getElementById('htdesttext' + i).value = value.substring(oldpos+1,value.length)
parent.document.getElementById('dest_add1').value=document.getElementById('htdesttext0').value;
parent.document.getElementById('dest_add2').value=document.getElementById('htdesttext1').value + ' ' + document.getElementById('htdesttext2').value;
parent.document.getElementById('dest_city').value=document.getElementById('htdesttext3').value;
parent.document.getElementById('dest_postcode').value=document.getElementById('htdesttext4').value;
document.getElementById('shuttleDiv').style.display = 'none';
parent.document.getElementById('shuttleInfo').style.display = 'none';
parent.document.getElementById('shuttleFoo').style.display = 'block';
}
function checkShuttleDest() {
if (document.getElementById('dest_add1').value == "" || document.getElementById('dest_city').value == "" || document.getElementById('dest_postcode').value == "") {
alert("Please select your destination.")
return (false);
}
return (true);
}
function Reload () {
parent.document.getElementById('dest_add1').value = '';
parent.document.getElementById('dest_city').value = '';
parent.document.getElementById('dest_postcode').value = '';
var f = document.getElementById('shuttleFrame');
f.contentWindow.location.reload(true);
parent.document.getElementById('pre_shuttle').style.visibility = 'visible';
parent.document.getElementById('shuttleInfo').style.display = 'block';
parent.document.getElementById('shuttleFoo').style.display = 'none';
}