﻿function GetSiteSearchResults(newWindow,frameObject,frameObjectName,fontFace,fontSize,fontColour,linkFace,linkSize,linkColour)
{
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(\" visitors tdsl design maintenance pritchard 2009 register email list then open your confirm link logging faccess will need signup gain access contacts page when enter screen name please include name that want team registered play smith bandits tops tails league positions many players 2010 highest scores league information active visitors packer bombers scores spare champagne charlies 18th match against cleeve hillbillies click here suitable areas listed land fill incineration gloucestershire county council website some asking whats this with skittles nothing feel there issue should brought attention publish site fancy incinerator easter farm dowty mining site northway tewkesbury make mistake close enough affect lives those live around read more december \",\" interesting site about skittles lots good links other skittle sites including history skittles newton abbot district league berkeley cheltenham fantastic fun-packed weekend awaits your team \",\" premier teams team secretaries captains please ensure that only result card correctly filled with required information also ledgable scores other will taken read note rules apply belive there mistake points have been awarded your team secretary should contact willing back weeks find error more usually when suspected it's because details clear they could check points weekly match results \",\" downloads other information many registered players \",\" committee 2009 2010 season president sharp engineering vice boulton rebels chairman greening villagers league secretary nation shutter rejects 01684 850224 general running league treasurer wood anvils 293620 fines finance competitions results pritchard smurf's smurfs 07976461914 fixtures cancellations results registration transfers members hall yokels south magpies minchew cosmos clark forthampton o'donnell odonnell ward carree \",\" printable copy league shall called 'the tewkesbury district skittles league' team within mile radius tewkesbury others discretion executive committee eligible membership president chairman vice-chairman secretary results treasurer assistant seven committee members minimum elected annually constitute delegate from each league shall attend meetings notified along with 'executive 'management management committee' teams failing send meeting' meeting fined players registration forms will issued teams month february unlimited number players registrations with 31st default note rule team's teams play other home away wednesday thursday friday nights fixture table method scoring points point draw each played four total game scores season scoring highest number declared champion thatdivision champions team winning premier division should more equal points higher point's points then pin's pins their matches winner runnersup promoted next higher division except bottom relegated lower lowest consist premier divisions consisting default accounts 31st current ineligible membership breaking fined fine notifying further opposing satisfactory explanation accepted plus full costs incurred home food sticker prior notification days accepted provided date venue agreed both secretaries supplied match replayed within weeks original date before whichever shortest period regardless venue secretary responsible notifying cancelled rearranged fixtures fail complete seasons fixtures fine according schedule fines imposed have right exclude such following paid games start approximately later than must alley least before last group start playing once started count fixture event being unable field complement match player that bowl twice result game stand played best traditions friendly competition form behaviour detrimental sportsman like quality generally acceptable forwarded writing deal necessary should fall sick injured after commenced place filled registered reserve remainder substitute score added which scoreboard upon agreement both captains time substitution each male achieves during allowed playing beginning matches sets three side home visiting alternately hands hand balls highest pins winners awarded rule lines drawn eight foot part rear line line whole front cross deemed ball eight foot space between front denotes area where ball make contact otherwise touching cushion either striking pins called verified captains continue knocked down stay returned covered nine diamond knocked diamond considered removed over stands again still every clearly marked wide central white band quarter narrow manner distinguishable clear participating official postmark registration handed results secretary first same penalty doing suspension durationion club enter they entered team 'ream ream registered participation fines point deductions levied player matches deducted opponents awarded banned competitions disqualified requiring transfer another january transfer available result accompany application agree must sign transfer form expiration seven days transfers granted transferred participate previous there reasonable objection power refuse transfers after sign name card commencement captain conclusion scores details been verified correct when secretaries signed satisfied will stand both forwarding league competition result cards applicable incorrect dispute decision final hours completion resuls post hand offence increasing subsequent chairman's chairmans shield competition condition entry alll take competitions sheild hold monetary collection nominated charities when asked contribute proceeds amount monies collected indicated cord expenses shared paying total drawn games resolved last four bowling until obtained failure omitted round unless agreed cups hospital president's presidents retained winners runners-up damaged lost through negligence possession repaired replaced however cost repair replacement charged concerned back good 30th april protest complaint sent stating nature account verbal matter rules dealt under exception rule's rules apply knockout taking pairs first advantage 'the semifinal's semifinals final neutral alleys decided there trophies individual score self financing additional down placed it's mark remaining delivery remain spare only positions need strike semi-final's semi-finals their runners-up receive ‘presidents tankard' tankard chairman's chairmans chairmns addititional represented choice teams failing representative preliminary round night's nights follows night number's numbers numbers fixture card second even numbers name's names drawnby order play night final's finals representatives involved present evening extra decide order draw going rest straight pair over trophies winner runner-up \",\" club name address postcode area code number beckford social main street gl207aa 01386 881405 blue bell grove crescent ryall upton-upon-severn wr80pp 01684 594624 british legion woodmancote pecked lane bishops cleeve cheltenham gl528jr 01242 674173 champagne charlies quay tewkesbury gloucestershire gl205be 293813 pool snooker oldbury road gl205rn 290639 dowty sports northway lane gl208js 291194 drum monkey gloucester upton upon severn worcestershire wr80qr 591121 bridge tirley gl194hj 01542 780316 arms gl208tw 291766 queens head aston cross bredon gl20 772440 railway station ripple gl206ey 592225 bowling vineyards gander gl205pg 294411 rugby moats langet 294364 village twyning green 293500 wheatpieces clifford avenue gl207rw 274420 tree chaceley gl194eq 01452 780333 ymca church street gl204rs 295787 \",\" presidents hospital chairman's chairmans cups organised mike wood questions regarding either competitions phone mike 01684 293620 competitions crohns charities that have helped donating various matches donations charity 2008 2009 season £1000 tewkesbury league friends £400 county ambulance trust past winners shield \",\" premier division winners division 2004 three four five only four years \",\" \",\" \",\" cancelled match league fine less than days notice expences replay date venue agreed weather flooding reason given will always verified late card multiples matches team breaking fixture shall fined with notifying results secretary further opposing satisfactory explanation accepted plus full costs incurred home team food sticker prior notification days accepted provided date venue agreed both secretaries supplied match replayed within weeks original before season whichever shortest period regardless home secretary responsible notifying cancelled rearranged fixtures should fail complete seasons fixtures fine according schedule fines shall imposed executive committee have right exclude such teams from membership following paid card tracker \",\" \",\" \",\" \",\" \",\" \",\" clarification cancelling skittle match rule 13-12-2008 cannot refuse match cancellation provided that following observed minimum weeks notice before date opposition results secretary venue been agreed both teams informed what they remember replay within original regardless this case then maybe treated team breaking fixture refusal requested cancellation less than will probably refused team name division each judged it's merit consider examples typical reasons given being acceptable short players half play local quiz crib darts league works christmas party requests cancelled there don't dont agree tell them it's good agreeing moaning groaning remember your wish cancel \",\" alley usage \",\" \",\" previous seasons results 2007 2008 2009 \",\" \",\" 2008 2009 skittles season presentation photographs thankyou mark clarke forthampton photographs \",\" website search enter word exact phrase then select button below \");");
d.write("var pageMap = new Array(\"Home\",\"Links\",\"Match Results\",\"League Info\",\"Committee\",\"League Rules\",\"Alley Numbers\",\"Cup Competitions\",\"Division Winners\",\"Hospital cup competition.\",\"Presedents cup competition.\",\"Card Tracker\",\"Premier Points\",\"Division 1 points\",\"Division 2 points\",\"Division 3 points\",\"Division 4 points\",\"Cancel a match\",\"Alley Usage\",\"AGM Meetings\",\"Previous Seasons\",\"Photo Gallery\",\"08 09 Presentation\",\"Search\");");
d.write("var linkMap = new Array(\"index.html\",\"page15.html\",\"page10.html\",\"page12.html\",\"page13a.html\",\"page13aa.html\",\"page13aaa.html\",\"page11.html\",\"page13.html\",\"page13aaaa.html\",\"page14.html\",\"page19a.html\",\"page20.html\",\"page16.html\",\"page17.html\",\"page18.html\",\"page19.html\",\"page20a.html\",\"page21.html\",\"page22.html\",\"page22a.html\",\"page23.html\",\"page24.html\",\"page25.html\");");
d.write("var preMap = new Array(\"Visitors Tdsl.me.uk Web design and Maintenance R. G. Pritchard 2009 ©  Register for the email list Then open your email and confirm the Link      Logging on faccess. You will need to signup to gain ac\",\"Interesting Web site about Skittles. Lots of good links to other Skittle  Web sites including the history of skittles.    Newton Abbot and District  Skittles League  Berkeley and District  Skittles Le\",\"                              Premier Teams Div 1 Teams Div 2 Teams Div 3 Teams Div 4 Teams Team Secretaries / Captains, Please ensure that not only is result card correctly filled in with all the req\",\"          Downloads and other information.  How many registered players ? \",\"    Committee 2009 / 2010 season  President  -  T. Sharp (L & H Engineering) Vice President  -  J. Boulton (Rebels) Chairman - T. Greening (Villagers)  Hon League Secretary   - J. Nation (Shutter Reje\",\"Printable Copy    1 THE LEAGUE shall be called THE TEWKESBURY & DISTRICT SKITTLES LEAGUE. Any TEAM within a 6 mile radius of Tewkesbury, and others at the discretion of the EXECUTIVE COMMITTEE, shal\",\"Club , Pub Name Address    Postcode Area Code Number Beckford Social Club Main Street Beckford   GL207AA 01386 881405 Blue Bell Inn Grove Crescent Ryall Upton-Upon-Severn  WR80PP 01684 594624 British \",\"The Presidents , Hospital & Chairmans Cups are Organised and run by Mike Wood Any questions regarding either of the cup competitions, phone mike Tel 01684 293620 Cup Competitions. CROHNS Charities th\",\"Premier division winners, was Division one pre 2004 Division  One winners, was Division Two pre 2004 Division  Two winners, was Division Three pre 2004 Division  Three winners, was Division Four pre 2\",\"\",\"\",\" Cancelled match, league fine,  less than 14 days notice. £15 min + Expences.  Cancelled match replay date and venue agreed.  Cancelled match, weather, flooding, etc Reason given will always be verifi\",\"\",\"\",\"\",\"\",\"\",\" Clarification on cancelling a Skittle Match. (Rule 8) 13-12-2008 I cannot refuse a match cancellation provided that the following has be observed. Minimum 2 weeks notice before the match date, to the\",\"Alley Usage  \",\"\",\"Previous Seasons Results  2007 / 2008  2008 / 2009  \",\"\",\"2008 - 2009 Skittles Season Presentation  Photographs. Thankyou to Mark Clarke Forthampton C.C. For the photographs  \",\"Website search, ie enter the word or exact phrase, then select the search button below. \");");
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+\" result(s) found for search term: \"+searchTerms+\"<br><br>\"+results;");
d.write("}");
d.write("wpDoSearch(\""+sTerms+"\");");
d.write("</script>");
d.write("</body></html>");
d.close();
}