

// ---------- script properties ----------

var include_num = 1; 2;
var bold = 0;

// ---------- sites ----------





var s = new Array();
s[0] = "javascript/JSE^minibus_road_safety.html^Enter JSE in the example above ...^open source, free, client side";
s[1] = "Minibus Road Safety training with optional MiDAS certification ^minibus_road_safety.html^The half day driver training is aimed at those who drive minibuses on their car licences who need to understand and keep up to date with…^ faq, docs, instructions";

s[0] = "javascript/JSE^fundraising.htm^Enter JSE in the example above ...^open source, free, client side";
s[2] = "Fundraising^fundraising.htm^Free minibus driver training places and fundraising ideas for charities and other organisations^ faq, docs, instructions";

s[0] = "javascript/JSE^drivers_hours.htm^Enter JSE in the example above ...^open source, free, client side";
s[3] = "Drivers' Hours regulations^drivers_hours.htm^Drivers' Hours and Tachograph Rules for Road Passenger Vehicles in the UK and Europe (PSV 375) 2005 and explains the volunteer exemption ^ faq, docs, instructions";

s[0] = "javascript/JSE^driver_cpc.htm^Enter JSE in the example above ...^open source, free, client side";
s[4] = "The Driver CPC^driver_cpc.htm^The Driver CPC: Compulsory re-training for bus, coach and minibus drivers from 2008^ faq, docs, instructions";

s[0] = "javascript/JSE^definition.htl^Enter JSE in the example above ...^open source, free, client side";
s[5] = "Legal definition of a minibus^definition.htm^Although minibuses come in different shapes, sizes and weights. The legal definition of a minibus is…^ faq, docs, instructions";

s[0] = "javascript/JSE^instrsearch.htm^Enter JSE in the example above ...^open source, free, client side";
s[6] = "WANTED... Minibus Instructors and Trainers^instrsearch.htm^Instructors and trainers wanted to help teach and train minibus drivers throughout the country^ faq, docs, instructions";

s[0] = "javascript/JSE^legally_drive.htm^Enter JSE in the example above ...^open source, free, client side";
s[7] = "Can I legally drive a minibus?^legally_drive.htm^A guide with a series of questions to help you discover whether your minibus driving activities are within the law^ faq, docs, instructions";

s[0] = "javascript/JSE^pcv_theory.htm^Enter JSE in the example above ...^open source, free, client side";
s[8] = "So you're learning to drive a minibus, bus or coach?^pcv_theory.htm^Details of official DSA products to help you prepare for the multiple choice and hazard perception parts of the vocational theory test, for the practical driving test, and for a career in professional driving.^ faq, docs, instructions";

s[0] = "javascript/JSE^pcv_new.htm^Enter JSE in the example above ...^open source, free, client side";
s[9] = "Future changes for PCV theory and practical tests^pcv_new.htl^In line with the EU directive, both PCV theory and practical tests will become longer and more difficult by 2008^ faq, docs, instructions";

s[0] = "javascript/JSE^pcv_new.htm^Enter JSE in the example above ...^open source, free, client side";
s[10] = "Future changes for PCV theory and practical tests^pcv_new.htm^In line with the EU directive, both PCV theory and practical tests will become longer and more difficult by 2008^ faq, docs, instructions";

s[0] = "javascript/JSE^pcv_cat.htm^Enter JSE in the example above ...^open source, free, client side";
s[11] = "PCV D1(Passenger Carrying Vehicle) categories and minibuses^pcv_cat.htm^Although many minibuses may look the same and built to carry 16 passengers, there are circumstances where you cannot drive a minibus on your normal car licence^ faq, docs, instructions";

s[0] = "javascript/JSE^pcv_auto.htm^Enter JSE in the example above ...^open source, free, client side";
s[12] = "Some bus drivers may not be able to drive minibuses on their PCV category^pcv_auto.htm^Some bus drivers attain their PCV category through sponsorship of their local bus company as part of their employment. However…^ faq, docs, instructions";

s[0] = "javascript/JSE^pcv_add.htm^Enter JSE in the example above ...^open source, free, client side";
s[13] = "Adding a PCV D1 category to your licence^pcv_add.htm^In addition to holding a licence to drive a car further adding a PCV category will involve… apply online here^ faq, docs, instructions";

s[0] = "javascript/JSE^O_licencing.html^Enter JSE in the example above ...^open source, free, client side";
s[14] = "Minibus operator licencing and start ups^O_licencing.html^Operating minibuses with the intention of collecting fares from passengers, is often referred to as Hire and Reward, Therefore in one form or another you will need…^ faq, docs, instructions";

s[0] = "javascript/JSE^pcv_which.htm^Enter JSE in the example above ...^open source, free, client side";
s[15] = "Which PCV category?^pcv_which.htm^There are four main PCV licence categories…^ faq, docs, instructions";

s[0] = "javascript/JSE^volunteers.htm^Enter JSE in the example above ...^open source, free, client side";
s[16] = "Volunteer drivers may face licence problems with new heavier 3900 kgs Minibuses^volunteers.htm^If you're a Volunteer minibus driver then you could be breaking the law. Certain volunteer drivers are only…^ faq, docs, instructions";

s[0] = "javascript/JSE^training_intro.htm^Enter JSE in the example above ...^open source, free, client side";
s[17] = "Training…. A Minibus Confusion^training_intro.htm^It's true, most drivers are allowed to drive a minibus on a normal car licence. However unlike the entitlement to drive a car, there are…^ faq, docs, instructions";

s[0] = "javascript/JSE^training pitfal.htm^Enter JSE in the example above ...^open source, free, client side";
s[18] = "MiDAS (The Minibus Driver Awareness Scheme)^training pitfal.htm^Beware of the pitfalls… Although the MiDAS programme has become very popular throughout the UK, this voluntary based scheme is not a professional…^ faq, docs, instructions";

s[0] = "javascript/JSE^traffic_commissioners.htm^Enter JSE in the example above ...^open source, free, client side";
s[19] = "Traffic Commissioners^traffic_commissioners.htm^There are a total eight Traffic Commissioners all appointed by the Secretary of State for the Transport and have responsibility in their…^ faq, docs, instructions";

s[0] = "javascript/JSE^tachographs.htm^Enter JSE in the example above ...^open source, free, client side";
s[20] = "Tachographs for minibuses^tachographs.htm^From April 11, 2007 new government legislation will require businesses, schools, charities and other organisations operating minibuses…^ faq, docs, instructions";

s[0] = "javascript/JSE^speed limiters.htm^Enter JSE in the example above ...^open source, free, client side";
s[21] = "New rules will lead to lower speed limits and an outside lane ban on motorways for minibuses^speed limiters.htm^Newly introduced legislation will see many of the existing and restrictions which previously related to just larger buses and coaches now apply to…^ faq, docs, instructions";

s[0] = "javascript/JSE^seminar.htm^Enter JSE in the example above ...^open source, free, client side";
s[22] = "Minibus Driving …FREE Seminar^seminar.htm^FREE Seminar to help Minibus drivers avoid seriously damaging their licence^ faq, docs, instructions";

s[0] = "javascript/JSE^section 19 permit.htm^Enter JSE in the example above ...^open source, free, client side";
s[23] = "Section 19 permits ^section 19 permit.htm^Section 19 permits allow certain organisations to operate minibuses and make a charge without having to comply with…^ faq, docs, instructions";

s[0] = "javascript/JSE^seat_belts.htm^Enter JSE in the example above ...^open source, free, client side";
s[24] = "New seat belt laws and additional responsibilities for minibus drivers^seat_belts.htm^JFrom 18th September new seat belt laws will require children under 135cm to wear child restraints in addition to seat belts In addition to these new laws…^ faq, docs, instructions";

s[0] = "javascript/JSE^vosa.htm^Enter JSE in the example above ...^open source, free, client side";
s[25] = "Who are VOSA?^vosa.htm^Minibuses and the Vehicle and Operator Services Agency^ faq, docs, instructions";








// ---------- end of script properties and sites ----------


var cookies = document.cookie;
var p = cookies.indexOf("d=");

if (p != -1) {
	var st = p + 2;
	var en = cookies.indexOf(";", st);
	if (en == -1) {
		en = cookies.length;
	}
	var d = cookies.substring(st, en);
	d = unescape(d);
}
var od = d;
var m = 0;
if (d.charAt(0) == '"' && d.charAt(d.length - 1) == '"') {
	m = 1;
}

var r = new Array();
var co = 0;

if (m == 0) {
	var woin = new Array();
	var w = d.split(" ");
	for (var a = 0; a < w.length; a++) {
		woin[a] = 0;
		if (w[a].charAt(0) == '-') {
			woin[a] = 1;
		}
	}
	for (var a = 0; a < w.length; a++) {
		w[a] = w[a].replace(/^\-|^\+/gi, "");
	}
	a = 0;
	for (var c = 0; c < s.length; c++) {
		pa = 0;
		nh = 0;
		for (var i = 0; i < woin.length; i++) {
			if (woin[i] == 0) {
				nh++;
				var pat = new RegExp(w[i], "i");
				var rn = s[c].search(pat);
				if (rn >= 0) {
					pa++;
				} else {
					pa = 0;
				}
			}
			if (woin[i] == 1) {
				var pat = new RegExp(w[i], "i");
				var rn = s[c].search(pat);
				if (rn >= 0) {
					pa = 0;
				}
			}
		}
		if (pa == nh) {
			r[a] = s[c];
			a++;
		}
	}
	co = a;
}

if (m == 1) {
	d = d.replace(/"/gi, "");
	var a = 0;
	var pat = new RegExp(d, "i");
	for (var c = 0; c < s.length; c++) {
		var rn = s[c].search(pat);
		if (rn >= 0) {
			r[a] = s[c];
			a++;
		}
	}
	co = a;

}


function return_query() {
	document.jse_Form.d.value = od;
}

function num_jse() {
	document.write(co);
}

function out_jse() {
	if (co == 0) {
		document.write('Your search did not match any documents.<p>Make sure all keywords are spelt correctly.<br>Try different or more general keywords.');
		return;
	}
	for (var a = 0; a < r.length; a++) {
		var os = r[a].split("^");
		if (bold == 1 && m == 1) {
			var br = "<b>" + d + "</b>";
			os[2] = os[2].replace(pat, br);
		}
		if (include_num == 1) {
			document.write(a + 1, '. <a href="', os[1], '">', os[0], '</a><br>', os[2], '<p>');
		} else {
			document.write('<a href="', os[1], '">', os[0], '</a><br>', os[2], '<p>');
		}
	}

}
