﻿function GetSiteSearchResults(newWindow,frameObject,frameObjectName,fontFace,fontSize,fontColour,linkFace,linkSize,linkColour,resultsText)
{
var sTerms="";
var iDepth = 0;
var sURL = new String(document.location);
if (sURL.indexOf("?") > 0)
{
var arrParams = sURL.split("?");
var arrURLParams = arrParams[1].split("&");
for (var i=0;i<arrURLParams.length;i++)
{
var sParam = arrURLParams[i].split("=");
var sValue = unescape(sParam[1]);
if( sParam[0] == frameObjectName)
	sTerms = sValue;
if( sParam[0] == "depth")
	iDepth = parseInt(sValue);
}
}
var d=frameObject.document;
if (sTerms=="") {d.open(); d.write("<html><head></head><body style=\"background: transparent;\"></body></html>"); d.close();return;}
var sBack=""; for (i=0; i<iDepth; i++) sBack+='..\\\\';
d.open();
d.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">");
d.write("<html lang=\"en\">");
d.write("<head>");
d.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">");
d.write("</head>");
d.write("<body style=\"margin: 0px 0px 0px 0px; font-family: "+fontFace+"; font-size: "+fontSize+"; color: "+fontColour+"; background: transparent;\">");
d.write("<div id=\"wpSearchResults\"></div>");
d.write("<script type=\"text/javascript\">");
d.write("var wordMap = new Array(\" welcome dewsbury ambulance charities site charity founded 1980 over years raised thousands pounds help numerous good causes surrounding areas owns vintage ambulance which made available shows hosts many events throughout year raise money worthwhile these include collection days sponsored walks cycles pull fishing match normally concluded with gala presentation night local where monies presented representatives from various charities events monday 12th march 2012 charity gala presentation night saturday 21st april collection sunday 22nd grindleford walk june july sponsored pull august bridlington cycle ride last updated \",\" charity history dewsbury ambulance charities began back 1980 when trio ambulance they were called then sponsored walk help raise funds guide dogs blind other walks followed within short while organised their event money raised donated local hospice appeal next year events held collected presented charity choice about this time elderly lady kindly caravan which site morecambe could send handicapped children families couples maybe couldn't couldnt afford break free weeks holiday events included swims bike rides well pulls 'flag' flag days have been wide wainwright's wainwrights coast hadrians wall west highland settle carlisle completed wheels national three peaks nevis scarfell snowden lands john o'groats ogroats achieved first ever hospices bike ride around yorkshire instigated charities still popular today these more helped into fundraising cheques over last twenty three years stoke mandeville spinal injuries unit ethiopia appeal down's downs syndrome diabetic society gemma's gemmas little sisters poor epilepsy leukemia research batley mencap other individual appeals donations enjoyed week's chalet bridlington coach trip lightwater valley proved very successful promises again pantomime town hall collegians people ages many kids cream buns party afterwards made possible support given area thank your continuing \",\" ford transit vintage ambulance history litre cylinder hanlon delivered west yorkshire metropolitan service august 1982 worked gildersome station most working life sold private buyer local auctions partially converted into mobile home 1992 after years vehicle retired dismantlers yard dewsbury later recognised ambulance registration number used drive hardly recognizable though painted deep with windows boarded there were holes wings cracked windscreen doors rusted condition only bargain came back service charities 29th june 1995 flagship charity it's fleet last batches transits work much loved crews that time replaced other makes such bedford renault mercedes sadly missed many fortunately restoration team plenty equipment parts lying around various stations enthusiastic group able salvage repair adapt possible within year thanks voluntary efforts memories ex-colleagues transits road 21st 1996 longer available calls enjoys slow sedate outings gala's galas historical rallies flag days restoration team body brian firth mechanics norman dogs bodies david deaves tony chatham mick almond glover hire click envelope below send e-mail \",\" contact dewsbury ambulance charities station district hospital healds road west yorkshire wf13 01924 512000 5064 name home phone mobile email david deaves 07951 daviddeaves dewsambcharities chris fothergill 07920 christopher fothergill \",\" dewsbury ambulance charities chalet bridlington used allow people take short break holiday situated address below chalet south shore holiday village wilsthorpe east yorkshire yo15 01262 608274 arrive notice caravan park next door facilities both sites available include 	well stocked mini supermarkets	 leisure complex with restaurant cabaret family room	 	amusement arcade kiddies play areas	 	snack bar	 	café	 	fish chip shop village itself friendly environment peace mind living working within staff obliging will advise problems which occur located pleasant surroundings your home adequately accommodate four comfortably furnished need bedding towels toiletries washing liquid dishcloths fully electric meter that accepts coins march 2000 carpets cooker fridge microwave kettle toaster were purchased well vacuum cleaner comfort premises benefit from double glazed windows fronted doors there parking space either side rear cosily shaped lounge diner partitioned extra privacy heated convector fire also contains remote colour radio convenience payphone coin there bedrooms being most suitable children wetting please ensure mattress covered rubber plastic sheet although probably situ check portable heater bedroom cupboard travel please remember fold replace after long life kitchen cons good supply cutlery crockery pans utensils water supplied 2001 season electricity located furthermost left sink mentioned bathroom toilet wash hand basin shower unit completely fitted over easter period also here extractor rail been note power switch back when using open small window alleviate condensation leave possible bowl enough vacate noon departure have clean tidy condition would hope expect find provided depend co-operation assistance this time unable provide saturday inventory consider those following their closed locked security turned mains wide internal circulate finally please remember return pass whom ever previously arranged thank very much help preceding requests thoroughly enjoyable stay queries before indeed suggestions return then jenny myself know yours sincerely david deaves \",\" collection days following dates have being collections dewsbury town centre help always needed appreciated spare hours help with please know offer your services saturday 21st april 2012 june 22nd september thank \",\" sponsored ambulance pull saturday july 2012 proposed route leave ambulance onto halifax turning right then left thorncliffe continue turn track dark lane traffic lights into batley town centre commercial street hick lane down bradford turn here follow road dewsbury around market place road back hospital arriving approx \",\" shop dewsbury ambulance charities have small range promotional goods purchase maybe sell items include pens rings combs bookmarks bugs diaries mugs water bottles sewing kits cycle clothing prices from only these obtained office district hospital sell them around office where work sure boss won't wont mind \",\" calendar monday 19th march 2012 charity presentation night ossett central saturday 21st april collection sunday 22nd 2010 grindleford walk 10th june july sponsored ambulance pull august bridlington cycle ride 15th september \",\" this page being updated \",\" bridlington cycle info registration form 2011 route sponsor cylce ride letter 2012 poster information document \",\" dewsbury ambulance charities registered charity number 1003679 sponsored cycle ride bridlington sunday august 2012 full back facilities provided return from bridlington lyles luxury coaches none cyclists seats escorts coach further details sponsor form's forms click links below cycle route sponsor form cylce ride letter poster information registration document station harbour transport back leaves free cycle shirt most sponsorship raised \",\" cycle clothing dewsbury ambulance charities have their cycling these items available sale come various designs short sleeve long choose suit your preference retail between shirt ambulance charities logo well sowerby brothers shop mirfield this entitles charity members discount shop cycles contact chris fothergill full details \",\" charity gala presentation night monday 12th march 2012 30pm onwards ossett central dear friends invited first event year which especially supported dewsbury ambulance charities throughout 2011 appreciate getting harder raise funds locally your support been very much appreciated with this mind with help full entertainment laughter arranged cheer everyone over long cold winter spell over years have good evening sure will just entertaining contact number below free tickets extra only each would great there best david deaves trustee 07951 lynn burgess 07919 email daviddeaves yahoo \");");
d.write("var pageMap = new Array(\"Dews Amb Charity Home\",\"Charity History\",\"Vintage Ambulance\",\"Contacts\",\"Chalet\",\"collection days\",\"Ambulance Pull\",\"shop\",\"calendar\",\"photos\",\"documents\",\"bridcycle\",\"Cycle Clothing\",\"Presentation Night\");");
d.write("var linkMap = new Array(\"index.html\",\"charityhistory.html\",\"vintageambulance.html\",\"contacts.html\",\"chalet.html\",\"collection days.html\",\"ambulancepull.html\",\"shop.html\",\"calendar.html\",\"photos.html\",\"documents.html\",\"bridcycle.html\",\"cycleclothing.html\",\"presentationnight.html\");");
d.write("var preMap = new Array(\"   Welcome to the  Dewsbury Ambulance Charities Web Site The charity was founded in 1980. Over the years it has raised thousands of pounds to help numerous good causes in the Dewsbury and surrounding \",\" Charity History  Dewsbury Ambulance Charities began way back in 1980 when a trio of ambulance men (as they were called then) did a sponsored walk to help raise funds for the Guide Dogs for the Blind.\",\"Ford Transit Vintage Ambulance      The History The 3 litre six cylinder Ford Transit Hanlon Ambulance was delivered to the West Yorkshire Metropolitan Ambulance Service (W.Y.M.A.S) on the 2nd Augus\",\"Contact Dewsbury Ambulance Charities. The Ambulance Station, Dewsbury District Hospital, Healds Road, Dewsbury, West Yorkshire. WF13 4HS. 01924 512000 Ext 5064 Name Home Phone Mobile  Email David Deav\",\"Dewsbury Ambulance Charities own a chalet in Bridlington.  The chalet is used to  allow people to take a short break or holiday.   It is situated at the address below: Chalet No 220 South Shore Holida\",\"Collection Days The following dates have being set for collections in Dewsbury Town Centre. Help is always needed and appreciated, so if you can spare a few hours to help with the collections, please \",\"Sponsored Ambulance Pull Saturday 7th July 2012 Proposed Route 2012 Leave ambulance Stn at 11.30 onto Halifax Rd turning right and then left onto Thorncliffe Rd. Continue to end and turn left at Track\",\"The Shop Dewsbury Ambulance Charities have a small range of promotional goods for you to purchase or maybe sell for us?   Items include:  Pens  Key Rings Combs Bookmarks “Bugs” Diaries Mugs Water Bott\",\"Calendar  Monday 19th March 2012 Charity Presentation Night at Ossett Central WMC  Saturday 21st April 2012 Collection Day   Sunday 22nd April 2010 Grindleford Walk   Saturday  10th June 2012 Collecti\",\" This page is being updated \",\" Bridlington Cycle Info & Registration Form 2011 Bridlington Cycle Route 2011 Sponsor Form Cylce Ride Letter 2012 Cycle Ride Poster 2012 2012 Bridlington Cycle Route 2012 Cycle Ride Information and Re\",\"Dewsbury Ambulance Charities Registered Charity Number 1003679 Dewsbury Ambulance Charities  sponsored cycle ride  To BRIDLINGTON   SUNDAY 5th AUGUST 2012  Full Back up facilities provided.  Return fr\",\"Cycle Clothing             Dewsbury Ambulance Charities now have their own cycling kit. These items are available for sale and come in various designs i.e. short sleeve, long sleeve, long zip, short z\",\"Charity Gala Presentation Night Monday 12th March 2012 7.30pm onwards Ossett Central WMC Dear Friends  You are invited to our first event of the year, which is especially for all who supported Dewsbur\");");
d.write("function doNav(ind)");
d.write("{");
if (newWindow)
d.write("		 window.open(\""+sBack+"\"+linkMap[ind],\"_blank\");");
else
d.write("		 parent.window.location.href=linkMap[ind];");
d.write("}");
d.write("function wpDoSearch(searchTerms){");
d.write("var terms = searchTerms.split(\" \");");
d.write("if (terms==\"\") return;");
d.write("var results = \"\";");
d.write("var resultscount = 0;");
d.write("for (var i=0; i<wordMap.length; i++)");
d.write("{");
d.write("			var found=true;");
d.write("			for (var j=0; j<terms.length; j++)");
d.write("					if (wordMap[i].indexOf(terms[j].toLowerCase())==-1) found=false;");
d.write("			if (found)");
d.write("			{");
d.write("				 results+=\"<a style=\\\"cursor: pointer; font-family: "+linkFace+"; font-size: "+linkSize+"; color: "+linkColour+"; \\\" onclick=\\\"doNav(\"+i+\");\\\"><u>\"+pageMap[i]+\"</u></a><br>\"+preMap[i]+\"...<br><br>\";");
d.write("				 resultscount++;");
d.write("			}");
d.write("}");
d.write("document.getElementById(\"wpSearchResults\").innerHTML=resultscount+\" "+resultsText+" \"+searchTerms+\"<br><br>\"+results;");
d.write("}");
while(sTerms.indexOf("\"") != -1 ) {
sTerms = sTerms.replace("\"","");
};
d.write("wpDoSearch(\""+sTerms+"\");");
d.write("</script>");
d.write("</body></html>");
d.close();
}
