

function ValidateBook() {
document.form.pickup_date_day.style.backgroundColor='FFFFFF';
document.form.pickup_date_month.style.backgroundColor='FFFFFF';
document.form.pickup_date_year.style.backgroundColor='FFFFFF';

document.form.first_name.style.backgroundColor='ffffff';
document.form.Email.style.backgroundColor='ffffff';
document.form.Phone.style.backgroundColor='ffffff';
document.form.Pickup_address_number.style.backgroundColor='ffffff';
document.form.Pickup_address_street.style.backgroundColor='ffffff';
document.form.Pickup_address_suburb.style.backgroundColor='ffffff';
document.form.pickup_date_day.style.backgroundColor='ffffff';
document.form.pickup_date_month.style.backgroundColor='ffffff';
document.form.pickup_date_year.style.backgroundColor='ffffff';
document.form.pickup_hour.style.backgroundColor='ffffff';
document.form.pickup_minute.style.backgroundColor='ffffff';
document.form.pickup_am_pm.style.backgroundColor='ffffff';
document.form.no.style.backgroundColor='ffffff';





Fname=form.first_name.value;
if (Fname=='') {
document.form.first_name.style.backgroundColor='FEE2F5';
var Alert = 'yes';
}

Fname=form.first_name.value;
if (Fname=='') {
document.form.first_name.style.backgroundColor='FEE2F5';
var Alert = 'yes';
}

Fname=form.Email.value;
if (Fname=='') {
document.form.Email.style.backgroundColor='FEE2F5';
var Alert = 'yes';
}

Fname=form.Phone.value;
if (Fname=='') {
document.form.Phone.style.backgroundColor='FEE2F5';
var Alert = 'yes';
}

Fname=form.Pickup_address_number.value;
if (Fname=='') {
document.form.Pickup_address_number.style.backgroundColor='FEE2F5';
var Alert = 'yes';
}

Fname=form.Pickup_address_street.value;
if (Fname=='') {
document.form.Pickup_address_street.style.backgroundColor='FEE2F5';
var Alert = 'yes';
}

Fname=form.Pickup_address_suburb.value;
if (Fname=='') {
document.form.Pickup_address_suburb.style.backgroundColor='FEE2F5';
var Alert = 'yes';
}

Fname=form.pickup_date_day.selectedIndex;
if (Fname=='') {
document.form.pickup_date_day.style.backgroundColor='FEE2F5';
var Alert = 'yes';
}

Fname=form.pickup_date_month.selectedIndex;
if (Fname=='') {
document.form.pickup_date_month.style.backgroundColor='FEE2F5';
var Alert = 'yes';
}

Fname=form.pickup_date_year.selectedIndex;
if (Fname=='') {
document.form.pickup_date_year.style.backgroundColor='FEE2F5';
var Alert = 'yes';
}

Fname=form.pickup_hour.selectedIndex;
if (Fname=='') {
document.form.pickup_hour.style.backgroundColor='FEE2F5';
var Alert = 'yes';
}

Fname=form.pickup_minute.selectedIndex;
if (Fname=='') {
document.form.pickup_minute.style.backgroundColor='FEE2F5';
var Alert = 'yes';
}


Fname=form.pickup_am_pm.selectedIndex;
if (Fname=='') {
document.form.pickup_am_pm.style.backgroundColor='FEE2F5';
var Alert = 'yes';
}

Fname=form.no.value;
if (Fname=='') {
document.form.no.style.backgroundColor='FEE2F5';
var Alert = 'yes';
}




if (Alert =='yes') {
alert('You must complete all required entries.');
event.returnValue=false;
}

}



function ValidateBookTwo() {
document.form.pickup_date_day.style.backgroundColor='FFFFFF';
document.form.pickup_date_month.style.backgroundColor='FFFFFF';
document.form.pickup_date_year.style.backgroundColor='FFFFFF';

document.form.first_name.style.backgroundColor='ffffff';
document.form.Email.style.backgroundColor='ffffff';
document.form.Phone.style.backgroundColor='ffffff';
document.form.Pickup_address_number.style.backgroundColor='ffffff';
document.form.Pickup_address_street.style.backgroundColor='ffffff';
document.form.Pickup_address_suburb.style.backgroundColor='ffffff';
document.form.pickup_date_day.style.backgroundColor='ffffff';
document.form.pickup_date_month.style.backgroundColor='ffffff';
document.form.pickup_date_year.style.backgroundColor='ffffff';
document.form.pickup_hour.style.backgroundColor='ffffff';
document.form.pickup_minute.style.backgroundColor='ffffff';
document.form.pickup_am_pm.style.backgroundColor='ffffff';
document.form.no.style.backgroundColor='ffffff';





Fname=form.first_name.value;
if (Fname=='') {
document.form.first_name.style.backgroundColor='FEE2F5';
var Alert = 'yes';
}

Fname=form.first_name.value;
if (Fname=='') {
document.form.first_name.style.backgroundColor='FEE2F5';
var Alert = 'yes';
}

Fname=form.Email.value;
if (Fname=='') {
document.form.Email.style.backgroundColor='FEE2F5';
var Alert = 'yes';
}

Fname=form.Phone.value;
if (Fname=='') {
document.form.Phone.style.backgroundColor='FEE2F5';
var Alert = 'yes';
}

Fname=form.Pickup_address_number.value;
if (Fname=='') {
document.form.Pickup_address_number.style.backgroundColor='FEE2F5';
var Alert = 'yes';
}

Fname=form.Pickup_address_street.value;
if (Fname=='') {
document.form.Pickup_address_street.style.backgroundColor='FEE2F5';
var Alert = 'yes';
}

Fname=form.Pickup_address_suburb.value;
if (Fname=='') {
document.form.Pickup_address_suburb.style.backgroundColor='FEE2F5';
var Alert = 'yes';
}


Fname=form.no.value;
if (Fname=='') {
document.form.no.style.backgroundColor='FEE2F5';
var Alert = 'yes';
}




if (Alert =='yes') {
alert('You must complete all required entries.');
event.returnValue=false;
}

}




function ValidateClass() {

document.form.title.style.backgroundColor='ffffff';
document.form.content.style.backgroundColor='ffffff';
document.form.state.style.backgroundColor='ffffff';
document.form.location.style.backgroundColor='ffffff';
document.form.category.style.backgroundColor='ffffff';


Fname=form.title.value;
if (Fname=='') {
document.form.title.style.backgroundColor='FEE2F5';
var Alert = 'yes';
}

Fname=form.content.value;
if (Fname=='') {
document.form.content.style.backgroundColor='FEE2F5';
var Alert = 'yes';
}

Fname=form.state.value;
if (Fname=='') {
document.form.state.style.backgroundColor='FEE2F5';
var Alert = 'yes';
}

Fname=form.location.value;
if (Fname=='') {
document.form.location.style.backgroundColor='FEE2F5';
var Alert = 'yes';
}

Fname=form.category.value;
if (Fname=='') {
document.form.category.style.backgroundColor='FEE2F5';
var Alert = 'yes';
}

if (Alert =='yes') {
alert('You must complete all required entries.');
event.returnValue=false;
}

}



function ValidatePickup() {


document.form.no.style.backgroundColor='ffffff';
document.form.address.style.backgroundColor='ffffff';
document.form.suburb.style.backgroundColor='ffffff';
document.form.state.style.backgroundColor='ffffff';
document.form.region.style.backgroundColor='ffffff';
document.form.name.style.backgroundColor='ffffff';


Fname=form.region.value;
if (Fname=='') {
document.form.region.style.backgroundColor='FEE2F5';
var Alert = 'yes';
}


Fname=form.no.value;
if (Fname=='') {
document.form.no.style.backgroundColor='FEE2F5';
var Alert = 'yes';
}

Fname=form.address.value;
if (Fname=='') {
document.form.address.style.backgroundColor='FEE2F5';
var Alert = 'yes';
}

Fname=form.suburb.value;
if (Fname=='') {
document.form.suburb.style.backgroundColor='FEE2F5';
var Alert = 'yes';
}

Fname=form.state.value;
if (Fname=='') {
document.form.state.style.backgroundColor='FEE2F5';
var Alert = 'yes';
}


Fname=form.name.value;
if (Fname=='') {
document.form.name.style.backgroundColor='FEE2F5';
var Alert = 'yes';
}

if (Alert =='yes') {
alert('You must complete all required entries.');
event.returnValue=false;
}

}



function ValidateEnquiry() {


document.form.subject.style.backgroundColor='ffffff';
document.form.first_name.style.backgroundColor='ffffff';
document.form.last_name.style.backgroundColor='ffffff';
document.form.Phone.style.backgroundColor='ffffff';
document.form.comments.style.backgroundColor='ffffff';
document.form.Email.style.backgroundColor='ffffff';




Fname=form.subject.selectedIndex;
if (Fname=='') {
document.form.subject.style.backgroundColor='FEE2F5';
var Alert = 'yes';
}

Fname=form.first_name.value;
if (Fname=='') {
document.form.first_name.style.backgroundColor='FEE2F5';
var Alert = 'yes';
}

Fname=form.last_name.value;
if (Fname=='') {
document.form.last_name.style.backgroundColor='FEE2F5';
var Alert = 'yes';
}

Fname=form.comments.value;
if (Fname=='') {
document.form.comments.style.backgroundColor='FEE2F5';
var Alert = 'yes';
}


Fname=form.Phone.value;
if (Fname=='') {
document.form.Phone.style.backgroundColor='FEE2F5';
var Alert = 'yes';
}

Fname=form.Email.value;
if (Fname=='') {
document.form.Email.style.backgroundColor='FEE2F5';
var Alert = 'yes';
}

if (Alert =='yes') {
alert('You must complete all required entries.');
event.returnValue=false;
}

}




function Validate_Ad() {


document.form.name.style.backgroundColor='ffffff';
document.form.phone.style.backgroundColor='ffffff';
document.form.comments.style.backgroundColor='ffffff';
document.form.email.style.backgroundColor='ffffff';






Fname=form.name.value;
if (Fname=='') {
document.form.name.style.backgroundColor='FEE2F5';
var Alert = 'yes';
}



Fname=form.comments.value;
if (Fname=='') {
document.form.comments.style.backgroundColor='FEE2F5';
var Alert = 'yes';
}


Fname=form.phone.value;
if (Fname=='') {
document.form.phone.style.backgroundColor='FEE2F5';
var Alert = 'yes';
}

Fname=form.email.value;
if (Fname=='') {
document.form.email.style.backgroundColor='FEE2F5';
var Alert = 'yes';
}

if (Alert =='yes') {
alert('You must complete all required entries.');
event.returnValue=false;
}

}





