function keywords()
{
var flag = "A";

if (document.referrer && document.referrer!="")
 {


var validtowns = new Array(


" llandudno junction ",
" middleton on sea ",
" st leonards on sea ",
" old colwyn ",
" st marys ",
" ash kent ",
" cheadle staffordshire ",
" longton staffordshire ",
" blythe bridge ",
" carbis bay ",
" low fell ",
" over hulton ",
" ashington sussex ",
" ripley surrey ",
" north ferriby ",
" wath upon dearne ",
" st davids ",
" little sutton ",
" marston green ",
" rainham essex ",
" west wittering ",
" bracklesham bay ",
" woodley reading ",
" chandlers ford ",
" knowle bristol ",
" four oaks ",
" great barr ",
" mossley hill ",
" bamber bridge ",
" westbury on trym ",
" pembroke dock ",
" barons court ",
" rowlands castle ",
" chew magna ",
" appleby in westmorland ",
" tunbridge wells ",
" bere alston ",
" stoke gifford ",
" castle donington ",
" west drayton ",
" westcliff on sea ",
" leigh on sea ",
" thorpe bay ",
" sowerby bridge ",
" penrhyn bay ",
" pateley bridge ",
" st keverne ",
" husbands bosworth ",
" port solent ",
" frimley green ",
" west wickham ",
" london colney ",







" alderley edge ",
" ashby de la zouch ",
" ashton in makerfield ",
" ashton under lyne ",
" aston clinton ",
" astwood bank ",
" barnard castle ",
" barnt green ",
" barrow in furness ",
" barrow upon soar ",
" barton le clay ",
" barton upon humber ",
" berwick upon tweed ",
" bidford on avon ",
" biggin hill ",
" bishop auckland ",
" bishops castle ",
" bishops cleeve ",
" bishops stortford ",
" bishops waltham ",
" blaenau ffestiniog ",
" blandford forum ",
" bognor regis ",
" bolton le sands ",
" borough green ",
" bourne end ",
" bourton on the water ",
" bovey tracey ",
" bradford on avon ",
" bradley stoke ",
" brierley hill ",
" bromley cross ",
" broughton astley ",
" budleigh salterton ",
" builth wells ",
" burgess hill ",
" burgh le marsh ",
" burghfield common ",
" burley in wharfedale ",
" burnham market ",
" burnham on crouch ",
" burnham on sea ",
" burton joyce ",
" burton latimer ",
" burton upon trent ",
" bury st edmunds ",
" canvey island ",
" castle bromwich ",
" castle cary ",
" castle hedingham ",
" chalfont st giles ",
" chalfont st peter ",
" chapel allerton ",
" chapel en le frith ",
" charlton kings ",
" cheadle hulme ",
" chester le street ",
" chipping campden ",
" chipping norton ",
" chipping ongar ",
" chipping sodbury ",
" church stretton ",
" clacton on sea ",
" clay cross ",
" cleobury mortimer ",
" colwyn bay ",
" craven arms ",
" crawley down ",
" cross hands ",
" crystal peaks ",
" dalton in furness ",
" dinas powys ",
" downham market ",
" earl shilton ",
" earls barton ",
" earls colne ",
" east dereham ",
" east grinstead ",
" east ham ",
" east horsley ",
" east kilbride ",
" east leake ",
" east peckham ",
" east wittering ",
" eaton bray ",
" ebbw vale ",
" ellesmere port ",
" fair oak ",
" forest row ",
" frinton on sea ",
" gerrards cross ",
" gillingham dorset ",
" goring on thames ",
" gorleston on sea ",
" grange over sands ",
" great dunmow ",
" great harwood ",
" great malvern ",
" great missenden ",
" great wyrley ",
" great yarmouth ",
" hartley wintney ",
" hay on wye ",
" hayling island ",
" haywards heath ",
" hazel grove ",
" hebden bridge ",
" hedge end ",
" hemel hempstead ",
" henley in arden ",
" henley on thames ",
" herne bay ",
" high bentham ",
" high etherley ",
" high lane ",
" high wycombe ",
" higham ferrers ",
" hockley heath ",
" holmes chapel ",
" houghton le spring ",
" hythe southampton ",
" ingleby barwick ",
" kelvedon hatch ",
" kenfig hill ",
" kings heath ",
" kings hill ",
" kings langley ",
" kings lynn ",
" kingston upon hull ",
" kingston upon thames ",
" kirkby lonsdale ",
" kirkby in ashfield ",
" kirkby stephen ",
" kiveton park ",
" knott end on sea ",
" knotty ash ",
" leamington spa ",
" lee on the solent ",
" leighton buzzard ",
" little lever ",
" llandrindod wells ",
" llantwit major ",
" locks heath ",
" long ashton ",
" long buckby ",
" long eaton ",
" long hanborough ",
" long melford ",
" long stratton ",
" long sutton ",
" longwell green ",
" lyme regis ",
" lytchett matravers ",
" lytham st annes ",
" mansfield woodhouse ",
" market bosworth ",
" market deeping ",
" market drayton ",
" market harborough ",
" market rasen ",
" market weighton ",
" marske by the sea ",
" martlesham heath ",
" melton mowbray ",
" menai bridge ",
" merthyr tydfil ",
" midsomer norton ",
" milford haven ",
" milford on sea ",
" milton keynes ",
" milton under wychwood ",
" moreton in marsh ",
" mountain ash ",
" much wenlock ",
" needham market ",
" nether stowey ",
" new mills ",
" new milton ",
" new ollerton ",
" new romney ",
" newark on trent ",
" newcastle emlyn ",
" newcastle under lyme ",
" newcastle upon tyne ",
" newport iow ",
" newport pagnell ",
" newport shropshire ",
" newton abbot ",
" newton aycliffe ",
" newton le willows ",
" north baddesley ",
" north cave ",
" north shields ",
" north walsham ",
" old colwyn ",
" old windsor ",
" ottery st mary ",
" paddock wood ",
" park gate ",
" pevensey bay ",
" port isaac ",
" port talbot ",
" potters bar ",
" poulton le fylde ",
" preston dorset ",
" princes risborough ",
" radcliffe on trent ",
" ramsden bellhouse ",
" rhos on sea ",
" richmond upon thames ",
" ross on wye ",
" rowlands gill ",
" royal tunbridge wells ",
" saffron walden ",
" saltburn by the sea ",
" seaton delaval ",
" selly oak ",
" shepton mallet ",
" sherburn in elmet ",
" shipston on stour ",
" shoreham by sea ",
" small heath ",
" sonning common ",
" south brent ",
" south elmsall ",
" south molton ",
" south ockendon ",
" south petherton ",
" south shields ",
" south woodham ferrers ",
" southend on sea ",
" spencers wood ",
" st agnes ",
" st albans ",
" st austell ",
" st clears ",
" st columb major ",
" st helens ",
" st ives cambridgeshire ",
" st ives ",
" st just ",
" st margarets at cliffe ",
" st mawes ",
" st neots ",
" st osyth ",
" stanford le hope ",
" stansted mountfitchet ",
" stockton heath ",
" stockton on tees ",
" stoke on trent ",
" stony stratford ",
" stourport on severn ",
" stow on the wold ",
" stratford upon avon ",
" sturminster newton ",
" sunbury on thames ",
" sutton at hone ",
" sutton coldfield ",
" sutton in ashfield ",
" sutton on sea ",
" taffs well ",
" talbot green ",
" tenbury wells ",
" terrington st clement ",
" theydon bois ",
" thornton cleveleys ",
" tower hamlets ",
" upton upon severn ",
" virginia water ",
" wainfleet all saints ",
" waltham abbey ",
" waltham forest ",
" walton on thames ",
" wellington telford ",
" wells next the sea ",
" welwyn garden city ",
" west bridgford ",
" west bromwich ",
" west end ",
" west hill ",
" west kingsdown ",
" west kirby ",
" west malling ",
" west mersea ",
" westgate on sea ",
" weston super mare ",
" whaley bridge ",
" whitchurch hampshire ",
" whitley bay ",
" wickham market ",
" widdrington station ",
" wimborne minster ",
" woburn sands ",
" woodhall spa ",
" wootton bassett ",
" wotton under edge ",
" ystrad mynach ",


" aberaeron ",
" abercynon ",
" aberdare ",
" abergavenny ",
" abergele ",
" abertillery ",
" aberystwyth ",
" abingdon ",
" accrington ",
" acle ",
" addlestone ",
" ainsdale ",
" albrighton ",
" alcester ",
" aldeburgh ",

" aldershot ",
" aldridge ",
" alford ",
" alfreton ",
" alnwick ",
" alresford ",
" alsager ",
" alton ",
" altrincham ",
" alvechurch ",
" amble ",
" ambleside ",
" amersham ",
" amesbury ",
" amlwch ",
" ammanford ",
" ampthill ",
" andover ",
" appleby ",
" armthorpe ",
" arnold ",
" arnside ",
" arundel ",
" ascot ",
" ash ",
" ashbourne ",
" ashburton ",

" ashford ",
" ashington ",

" atherstone ",
" attleborough ",
" axbridge ",
" axminster ",
" aylesbury ",
" aylesford ",
" backwell ",
" bacup ",
" bagshot ",
" baildon ",
" bakewell ",
" baldock ",
" balsall ",
" bampton ",
" banbury ",
" bangor ",
" banstead ",
" bargoed ",
" barking ",
" barmouth ",

" barnet ",
" barnham ",
" barnoldswick ",
" barnsley ",
" barnstaple ",

" barrowford ",
" barry ",

" basildon ",
" basingstoke ",
" bath ",
" battle ",
" bawtry ",
" beaconsfield ",
" beaminster ",
" beaumaris ",
" bebington ",
" beccles ",
" bedale ",
" bedford ",
" bedlington ",
" bedminster ",
" bedworth ",
" beer ",
" beeston ",
" belper ",
" bembridge ",
" benfleet ",
" benllech ",
" benson ",
" bentley ",
" berkhamsted ",

" bessacarr ",
" beverley ",
" bewdley ",
" bexhill ",
" bexley ",
" bicester ",
" biddulph ",
" bideford ",

" biggleswade ",
" billericay ",
" billinge ",
" billingham ",
" billingshurst ",
" bingham ",
" bingley ",
" birkenhead ",
" birmingham ",

" blaby ",
" blackburn ",
" blackley ",
" blackpool ",
" blackwood ",

" blaenavon ",

" bletchingley ",
" bletchley ",
" blyth ",
" bodmin ",

" boldon ",
" bollington ",
" bolsover ",

" bolton ",
" bootle ",
" bordon ",
" borehamwood ",

" boroughbridge ",
" borrowash ",
" bosham ",
" boston ",
" botley ",

" bourne ",
" bournemouth ",
" bournville ",


" bovingdon ",
" brackley ",
" bracknell ",

" bradford ",

" braintree ",
" bramhall ",
" bramhope ",
" brampton ",
" brandon ",
" bransgore ",
" braunton ",
" breaston ",
" brecon ",
" brentwood ",
" bridgend ",
" bridgnorth ",
" bridgwater ",
" bridlington ",
" bridport ",

" brigg ",
" brighouse ",
" brightlingsea ",
" brighton ",
" bristol ",
" brixham ",
" brixworth ",
" broadstairs ",
" broadway ",
" brockenhurst ",

" bromley ",
" bromsgrove ",
" bromyard ",
" broseley ",
" brough ",

" brownhills ",
" broxbourne ",
" brundall ",
" bruton ",
" brynmawr ",
" buckfastleigh ",
" buckingham ",
" buckley ",
" bude ",

" bulkington ",
" bungay ",
" buntingford ",

" burnley ",
" burntwood ",
" burscough ",
" bursledon ",

" burwell ",

" bury ",
" bushey ",
" buxton ",
" byfleet ",
" cadishead ",
" caerleon ",
" caernarfon ",
" caerphilly ",
" caldicot ",
" callington ",
" calverton ",
" camberley ",
" camborne ",
" cambridge ",
" camden ",
" camelford ",
" cannock ",
" canterbury ",

" cardiff ",
" cardigan ",
" carlisle ",
" carlton ",
" carmarthen ",
" carnforth ",
" carterton ",

" castleford ",
" caterham ",
" catterick ",
" chadderton ",
" chaddeton ",

" chapeltown ",
" chard ",
" charlbury ",

" chatham ",
" chatteris ",

" cheadle ",
" cheddar ",
" chellaston ",
" chelmsford ",
" chelsea ",
" cheltenham ",
" chepstow ",
" chertsey ",
" chesham ",
" cheshunt ",

" chester ",
" chesterfield ",
" chichester ",
" chigwell ",
" chinnor ",
" chippenham ",

" chobham ",
" choppington ",
" chorley ",
" chorleywood ",
" chorlton ",
" christchurch ",
" chudleigh ",
" chulmleigh ",

" cinderford ",
" cirencester ",

" clare ",

" claydon ",
" cleckheaton ",
" cleethorpes ",

" clevedon ",
" cleveleys ",
" clitheroe ",
" coalville ",
" cobham ",
" cockermouth ",
" codsall ",
" colchester ",
" coleford ",
" coleshill ",
" colne ",

" colyton ",
" congleton ",
" congresbury ",
" consett ",
" conwy ",
" cookham ",
" corbridge ",
" corby ",
" corsham ",
" cosham ",
" coventry ",
" cowbridge ",
" cowes ",
" coxheath ",
" cramlington ",
" cranbrook ",
" cranfield ",
" cranleigh ",

" crawley ",
" crediton ",
" crewe ",
" crewkerne ",
" criccieth ",
" cricklade ",
" cromer ",
" crook ",
" crosby ",

" crossgates ",
" croston ",
" crowborough ",
" crowland ",
" crowle ",
" crowthorne ",
" croydon ",

" cuckfield ",
" cuddington ",
" culcheth ",
" cullompton ",
" cwmbran ",
" dagenham ",

" danbury ",
" darlington ",
" dartford ",
" dartmouth ",
" darwen ",
" datchet ",
" davenham ",
" davenport ",
" daventry ",
" dawlish ",
" deal ",
" dearne ",
" debenham ",
" deddington ",
" dedham ",
" denbigh ",
" denham ",
" denmead ",
" denton ",
" derby ",
" dersingham ",
" desborough ",
" devizes ",
" dewsbury ",
" didcot ",
" digswell ",

" dinnington ",
" disley ",
" diss ",
" docklands ",
" doddinghurst ",
" dolgellau ",
" doncaster ",
" dorchester ",
" dorking ",
" dover ",
" downend ",

" drayton ",
" driffield ",
" droitwich ",
" dronfield ",
" droylsden ",
" dudley ",
" dunnington ",
" dunstable ",
" durham ",
" durrington ",
" dymchurch ",
" ealing ",

" easingwold ",

" eastbourne ",
" eastleigh ",
" eastwood ",

" eccles ",
" eccleshall ",
" edenbridge ",
" edgbaston ",
" edgeley ",
" edgworth ",
" egham ",
" elland ",

" ellesmere ",
" elstree ",
" ely ",
" emsworth ",
" enfield ",
" epping ",
" epsom ",
" epworth ",
" esher ",
" eston ",
" evesham ",
" ewell ",
" exeter ",
" exminster ",
" exmouth ",
" eye ",
" eynsham ",
" failsworth ",

" fairford ",
" fakenham ",
" falmouth ",
" fareham ",
" faringdon ",
" farnborough ",
" farnham ",
" farnsfield ",
" farnworth ",
" faversham ",
" felixstowe ",
" ferndown ",
" ferryhill ",
" filey ",
" fishguard ",
" fleckney ",
" fleet ",
" fleetwood ",
" flint ",
" flitwick ",
" folkestone ",
" fordingbridge ",

" formby ",
" fowey ",
" framlingham ",
" freckleton ",
" freshwater ",
" frimley ",

" frodsham ",
" frome ",
" fulham ",
" gainsborough ",
" gamlingay ",
" garforth ",
" garstang ",
" gateshead ",
" gatley ",

" gillingham ",
" glasgow ",
" glastonbury ",
" glossop ",
" gloucester ",
" godalming ",
" godmanchester ",
" godstone ",
" golborne ",
" goldthorpe ",
" goole ",
" goostrey ",

" gorseinon ",
" gosforth ",
" gosport ",

" grantham ",
" gravesend ",
" grays ",
" greasby ",

" greenwich ",
" grimsby ",
" guildford ",
" guisborough ",
" guiseley ",
" hackney ",
" haddenham ",
" hadleigh ",
" hadlow ",
" hailsham ",
" hale ",
" halesowen ",
" halesworth ",

" halstead ",
" haltwhistle ",
" hamble ",
" hammersmith ",
" harborne ",
" hardingtown ",
" harefield ",
" haringey ",
" harlech ",
" harlington ",
" harlow ",
" harpenden ",
" harrogate ",
" harrow ",
" hartlepool ",

" harwich ",
" haslemere ",
" hastings ",
" hatfield ",
" hathersage ",
" havant ",
" haverfordwest ",
" haverhill ",
" hawarden ",
" hawkhurst ",
" hawkinge ",
" haxby ",
" haxey ",

" hayle ",

" heacham ",
" headcorn ",
" headingley ",
" heanor ",
" heathfield ",
" hebburn ",

" heckmondwike ",

" hedon ",
" helmsley ",
" helston ",

" hemsworth ",
" henfield ",

" henlow ",
" hereford ",

" hertford ",
" heswall ",
" hexham ",
" heywood ",

" highworth ",
" hinckley ",
" hindhead ",
" hindley ",
" histon ",
" hitchin ",

" hockley ",
" hoddesdon ",
" holbeach ",

" holmfirth ",
" holsworthy ",
" holt ",
" holyhead ",
" holywell ",
" honiton ",
" hoo ",
" hook ",
" horbury ",
" horley ",
" horncastle ",
" hornchurch ",
" hornsea ",
" horsforth ",
" horsham ",
" horwich ",

" hounslow ",
" hove ",
" hoveton ",
" howden ",
" hoylake ",
" hucknall ",
" huddersfield ",
" hungerford ",
" hunstanton ",
" huntingdon ",
" hurstpierpoint ",
" huyton ",
" hyde ",

" hythe ",
" ilford ",
" ilfracombe ",
" ilkeston ",
" ilkley ",
" ilminster ",
" immingham ",
" ingatestone ",

" ipswich ",
" irchester ",
" irlam ",
" ironbridge ",
" islington ",
" iver ",
" ivybridge ",
" jacksdale ",
" jarrow ",
" keighley ",

" kelvedon ",
" kempston ",
" kendal ",

" kenilworth ",
" kensington ",
" kessingland ",
" keswick ",
" kettering ",
" keynsham ",
" keyworth ",
" kibworth ",
" kidderminster ",
" kidlington ",
" kidsgrove ",
" killamarsh ",
" killingworth ",

" kingsbridge ",
" kingsbury ",
" kingsclere ",
" kingskerswell ",
" kingsland ",
" kingsteignton ",

" kingswood ",
" kington ",
" kintbury ",
" kinver ",

" kirkburton ",

" kirkby ",
" kirkbymoorside ",
" kirkham ",

" knaresborough ",
" knebworth ",
" knighton ",

" knowle ",
" knutsford ",
" lakenheath ",
" lambeth ",
" lambourn ",
" lampeter ",
" lancaster ",
" lancing ",
" langley ",
" langport ",
" launceston ",

" leatherhead ",
" lechlade ",
" ledbury ",

" leeds ",
" leek ",
" leicester ",
" leigh ",

" leiston ",
" lenham ",
" leominster ",
" letchworth ",
" lewes ",
" lewisham ",
" leyburn ",
" leyland ",
" lichfield ",
" lightwater ",
" lincoln ",
" lingfield ",
" liphook ",
" liskeard ",
" liss ",

" littleborough ",
" littlehampton ",
" littleport ",
" liverpool ",
" llandeilo ",
" llandovery ",

" llandudno ",
" llanelli ",
" llanfairfechan ",
" llangefni ",
" llangollen ",
" llanidloes ",
" llanrwst ",


" loddon ",
" loftus ",
" london ",

" longfield ",
" longridge ",
" longton ",
" longtown ",

" looe ",
" lostwithiel ",
" loughborough ",
" loughton ",
" louth ",
" lowestoft ",
" ludgershall ",
" ludlow ",
" luton ",
" lutterworth ",
" lydd ",
" lydney ",

" lyminge ",
" lymington ",
" lymm ",
" lyndhurst ",
" lynton ",

" mablethorpe ",
" macclesfield ",
" machynlleth ",
" maesteg ",
" maghull ",
" magor ",
" maidenhead ",
" maidstone ",
" maldon ",
" malmesbury ",
" malton ",
" manchester ",
" manningtree ",

" mansfield ",
" marazion ",
" march ",
" marchwood ",
" margate ",

" marlborough ",
" marlow ",
" marple ",
" marsden ",

" martham ",

" martock ",
" marylebone ",
" maryport ",
" matlock ",
" mattishall ",
" mayfield ",
" maylandsea ",
" melbourn ",
" melbourne ",
" melksham ",

" meopham ",
" mere ",
" meriden ",

" merton ",
" mevagissey ",
" mexborough ",
" mickleover ",
" middlesbrough ",
" middleton ",
" middlewich ",
" midhurst ",

" mildenhall ",

" millbrook ",
" milnrow ",

" minchinhampton ",
" minehead ",
" minsterley ",
" mirfield ",
" mitcheldean ",
" modbury ",
" mold ",
" monmouth ",
" morecambe ",

" moreton ",
" morley ",
" morpeth ",
" mortimer ",
" mosborough ",
" moston ",
" mousehole ",

" mullion ",
" mumbles ",
" mundesley ",
" nailsea ",
" nailsworth ",
" nantwich ",
" naphill ",
" narberth ",
" narborough ",
" neath ",

" nelson ",
" neston ",

" netley ",

" newbridge ",
" newbury ",

" newent ",
" newhaven ",
" newick ",
" newlyn ",
" newmarket ",

" newport ",
" newquay ",

" newtown ",
" normanton ",

" northallerton ",
" northampton ",
" northfleet ",
" northiam ",
" northleach ",
" northwich ",
" norwich ",
" nottingham ",
" nuneaton ",
" oadby ",
" oakengates ",
" oakham ",
" oakley ",
" odiham ",
" offerton ",
" okehampton ",

" oldham ",
" olney ",
" ormskirk ",
" orrell ",
" ossett ",
" oswaldtwistle ",
" oswestry ",
" otford ",
" otley ",
" ottershaw ",

" oundle ",
" overton ",
" oxford ",
" oxted ",
" paddington ",

" padiham ",
" padstow ",
" paignton ",
" painswick ",
" pangbourne ",
" par ",
" parbold ",

" parkgate ",
" partington ",
" patchway ",
" paulton ",
" peacehaven ",
" pelsall ",
" pembroke ",
" penarth ",
" pencoed ",
" penistone ",
" penketh ",
" penkridge ",
" penmaenmawr ",
" penn ",
" penrith ",
" penryn ",
" penzance ",
" perranporth ",
" pershore ",
" peterborough ",
" peterlee ",
" petersfield ",
" petworth ",

" pewsey ",
" pickering ",
" pill ",
" plymouth ",
" plymstock ",
" pocklington ",
" polesworth ",
" pontardawe ",
" pontarddulais ",
" pontardulais ",
" pontefract ",
" ponteland ",
" pontypool ",
" pontypridd ",
" poole ",
" poppleton ",

" poringland ",
" portchester ",
" porthcawl ",
" porthmadog ",
" portishead ",
" portland ",
" portslade ",
" portsmouth ",

" poynton ",
" prescot ",
" prestatyn ",
" prestbury ",
" presteigne ",

" preston ",
" prestwich ",
" prestwood ",

" prudhoe ",
" pudsey ",
" pulborough ",
" putney ",
" pwllheli ",
" queensbury ",
" quorn ",

" radcliffe ",
" radlett ",
" rainford ",
" rainham ",
" ramsbottom ",

" ramsey ",
" ramsgate ",
" raunds ",
" rayleigh ",
" reading ",
" redbourn ",
" redcar ",
" redditch ",
" redhill ",
" reigate ",
" retford ",
" rhayader ",
" rhoose ",

" rhyl ",

" richmond ",
" rickmansworth ",
" ringmer ",
" ringwood ",
" ripley ",
" ripon ",
" ripponden ",
" risca ",
" robertsbridge ",
" robertsville ",
" rochdale ",
" rochester ",
" rock ",
" rockcliffe ",
" romford ",
" romiley ",
" romsey ",

" rossendale ",
" rothbury ",
" rotherfield ",
" rotherham ",
" rothwell ",
" rottingdean ",

" royston ",
" royton ",
" ruddington ",
" rugby ",
" rugeley ",
" runcorn ",
" rushden ",
" ruthin ",
" ryde ",
" rye ",
" ryton ",

" salcombe ",

" salford ",
" salisbury ",
" saltash ",

" saltdean ",
" saltford ",
" sandbach ",
" sandhurst ",
" sandiacre ",
" sandown ",
" sandwich ",
" sandy ",
" saundersfoot ",
" sawbridgeworth ",
" sawston ",
" sawtry ",
" saxmundham ",
" scarborough ",
" scunthorpe ",
" seaford ",
" seaham ",

" seaton ",
" seaview ",
" sedgefield ",
" selby ",

" selsey ",
" send ",
" settle ",
" sevenoaks ",
" shaftesbury ",
" shaldon ",
" shanklin ",
" shaw ",
" sheerness ",
" sheffield ",
" shelf ",
" shenley ",
" shepperton ",
" shepshed ",

" sherborne ",

" sheringham ",
" shevington ",
" shifnal ",
" shildon ",
" shinfield ",
" shipley ",

" shirley ",

" shotton ",
" shrewsbury ",
" shrivenham ",
" sidmouth ",
" sileby ",
" silloth ",
" silsden ",
" silsoe ",
" sittingbourne ",
" skegness ",
" skelmanthorpe ",
" skelmersdale ",
" skipton ",
" sleaford ",
" slough ",

" smethwick ",
" snaith ",
" snodland ",
" soham ",
" solihull ",
" somerton ",

" southam ",
" southampton ",

" southport ",
" southsea ",
" southwark ",
" southwater ",
" southwell ",
" southwick ",
" southwold ",
" spalding ",
" sparkbrook ",

" spennymoor ",
" spilsby ",

" stafford ",
" staines ",
" stalham ",
" stalybridge ",
" stamford ",
" standish ",

" stanhope ",
" stanley ",

" stapleford ",
" staplehurst ",
" stevenage ",
" stewkley ",
" steyning ",
" stockport ",
" stocksbridge ",

" stokenchurch ",
" stokesley ",
" stone ",
" stonehouse ",

" storrington ",
" stotfold ",

" stowmarket ",

" street ",

" stretford ",
" strood ",
" stroud ",
" studley ",

" sudbury ",

" sunderland ",
" sunningdale ",
" sunninghill ",

" sutton ",
" swadlincote ",
" swaffham ",
" swallownest ",
" swanage ",
" swanland ",
" swanley ",
" swanscombe ",
" swansea ",
" sway ",
" swindon ",
" swinton ",
" syston ",
" tadcaster ",
" tadley ",

" tamworth ",
" tarleton ",
" tarporley ",
" taunton ",
" taverham ",
" tavistock ",
" teignmouth ",
" telford ",

" tenby ",
" tenterden ",

" tetbury ",
" tewkesbury ",
" thame ",
" thatcham ",
" thaxted ",
" thetford ",

" thirsk ",
" thornbury ",
" thorne ",

" thrapston ",
" tilbury ",
" tisbury ",
" tiverton ",
" toddington ",
" todmorden ",
" tollesbury ",
" tonbridge ",
" tongwynlais ",
" tonteg ",
" tonypandy ",
" topsham ",
" torpoint ",
" torquay ",
" torrington ",
" totnes ",
" tottington ",
" totton ",
" towcester ",

" tredegar ",
" tring ",
" trowbridge ",
" truro ",
" tutbury ",
" twyford ",
" tyldesley ",
" tynemouth ",
" tywyn ",
" uckfield ",
" ulverston ",
" uppermill ",
" uppingham ",

" urmston ",
" usk ",
" uttoxeter ",
" uxbridge ",
" ventnor ",
" verwood ",

" waddesdon ",
" wadebridge ",
" wadhurst ",

" wakefield ",
" walberton ",
" walkden ",
" wallasey ",
" wallingford ",
" wallsend ",
" walsall ",

" wandsworth ",
" wantage ",
" ware ",
" wareham ",
" wargrave ",
" warminster ",
" warrington ",
" warwick ",
" washington ",
" watchet ",
" wateringbury ",
" waterlooville ",
" watford ",
" watlington ",
" watton ",
" weedon ",
" wellesbourne ",
" wellingborough ",

" wellington ",

" wells ",
" welshpool ",

" welwyn ",
" wem ",
" wembley ",
" wendover ",
" weobley ",

" westerham ",

" westhoughton ",

" wetherby ",
" weybridge ",
" weymouth ",
" whalley ",
" wheathampstead ",
" wheatley ",
" whickham ",
" whitby ",

" whitchurch ",
" whitefield ",
" whitehaven ",
" whiteley ",

" whitstable ",
" whittlesey ",
" whitworth ",
" wickford ",

" wickham ",

" widnes ",
" wigan ",
" wigston ",
" wigton ",
" willington ",
" williton ",
" wilmslow ",
" wilpshire ",

" wincanton ",
" winchcombe ",
" winchester ",
" windermere ",
" windlesham ",
" windsor ",
" wing ",
" wingham ",
" winlaton ",
" winscombe ",
" winsford ",
" winslow ",
" wirksworth ",
" wisbech ",
" witham ",
" withernsea ",
" witney ",
" wiveliscombe ",
" wivenhoe ",

" woking ",
" wokingham ",
" wollaston ",
" wolverhampton ",
" wolverton ",
" wombourne ",
" wombwell ",
" woodbridge ",

" woodley ",
" woodstock ",
" wooler ",
" woolpit ",
" woolton ",

" wootton ",
" worcester ",
" workington ",
" worksop ",
" worsley ",
" worthing ",

" wrexham ",
" wrington ",
" wroughton ",
" wroxham ",
" wye ",
" wymondham ",
" yapton ",
" yate ",
" yateley ",
" yaxley ",
" yealmpton ",
" yelverton ",
" yeovil ",
" york ",

" ystradgynlais ",


" bridge ",
" orpington ",
" prenton ",
" ruislip ",
" sandgate ",
" stubbington ",
" waterloo ",
" litherland ",
" rustington ",
" stratford ",
" thornton ",
" churchdown ",
" bromborough ",
" redruth ",
" stradbroke ",
" radyr ",
" eckington ",
" rumney ",
" woolacombe ",
" cliftonville ",
" ollerton ",
" cowplain ",
" worle ",
" abersoch ",
" cambourne ",
" haydock ",
" edgware ",
" bloxwich ",
" hagley ",
" woburn ",
" malvern ",
" rainworth ",
" ashtead ",
" walthamstow ",
" chingford ",
" wraysbury ",
" aylsham ",
" rawtenstall ",
" filton ",
" burford ",
" saltaire ",
" knaphill ",
" heaton ",
" clanfield ",
" crickhowell ",
" stourbridge ",
" clifton ",
" radstock ",
" beckenham ",
" bitterne ",
" titchfield ",
" birkdale ",
" raddish ",
" tunstall ",
" cowley ",
" didsbury ",
" erdington ",
" rainhill ",
" allerton ",
" purley ",
" tilehurst ",
" surbiton ",
" wimbledon ",
" sidcup ",
" mayfair ",
" claughton ",
" acton ",
" balham ",
" barnes ",
" battersea ",
" bayswater ",
" blackheath ",
" bow ",
" brentford ",
" chessington ",
" felpham ",
" yatton ",
" moretonhampstead ",
" binfield ",
" wolsingham ",
" grayshott ",
" montgomery ",
" hazlemere ",
" brackla ",
" birstall ",
" alfriston ",
" jaywick ",
" coulsdon ",
" yarm ",
" hassocks ",
" bala ",
" rhuddlan ",
" grassington ",
" leckhampton ",
" llanybydder ",
" kippax ",
" lavenham ",
" wedmore ",
" dulverton ",
" harleston ",
" tipton ",
" shoeburyness ",
" aberdovey ",
" aldwick ",
" birchington ",
" rossington ",
" carcroft ",
" cheriton ",
" dereham ",
" deganwy ",
" yarmouth ",
" haslingden ",
" kegworth ",
" sedgley ",
" gornal ",
" herstmonceux ",
" coningsby ",
" calne ",
" slaithwaite ",
" hadnall ",
" bearsted ",
" kimbolton ",
" farsley ",
" polperro ",
" mytholmroyd ",










" wirral ",

" dunfermline ",
" annan ",
" stirling ",




" halifax ",
" sale ",

" last one no comma"
);

var searchTerms = " ";

if (document.referrer.search(/google\.*/i) != -1  
 || document.referrer.search(/live\.*/i) != -1   
 || document.referrer.search(/msn\.*/i) != -1    
 || document.referrer.search(/yahoo\.*/i) != -1  
 || document.referrer.search(/ask\.*/i) != -1   )

{
  var start = document.referrer.search(/q=/);
  searchTerms = document.referrer.substring(start + 2);
  var end = searchTerms.search(/&/);
  end = (end == -1) ? searchTerms.length:end;
  searchTerms = searchTerms.substring(0, end);
  if (searchTerms.length != 0)
     {
      searchTerms = searchTerms.replace(/\+/g, " ");
      searchTerms = unescape(searchTerms);
     }
}





if (searchTerms.value != " ")
  {

var myRegExp;

myRegExp = /\./g;
searchTerms = searchTerms.replace(myRegExp, " ");

myRegExp = /\,/g;
searchTerms = searchTerms.replace(myRegExp, " ");

myRegExp = /\+/g;
searchTerms = searchTerms.replace(myRegExp, " ");

myRegExp = /\//g;
searchTerms = searchTerms.replace(myRegExp, " ");

myRegExp = /'s/g;
searchTerms = searchTerms.replace(myRegExp, "s");

myRegExp = /'/g;
searchTerms = searchTerms.replace(myRegExp, " ");

myRegExp = /"/g;
searchTerms = searchTerms.replace(myRegExp, " ");

myRegExp = /-/g;
searchTerms = searchTerms.replace(myRegExp, " ");

myRegExp = / {2,}/g;
searchTerms = searchTerms.replace(myRegExp, " ");


var lower = searchTerms.toLowerCase();

var searchTermsbl = " " + lower + " ";

var x;

for (x in validtowns)
    {

validtown = validtowns[x];

var matchPos1 = searchTermsbl.search(validtown);

  if(matchPos1 != -1)
        {         var fld = validtown;
                  var res = "";
                  var c = 0;
                  for (i=0; i<fld.length; i++) {
                  if (fld.charAt(i) != " " || c > 0) {
                       res += fld.charAt(i);
                       if (fld.charAt(i) != " ") c = res.length;
                                                     }
                                               }
                  var townnaked = res.substr(0,c);

                  var val = townnaked;
                  var newVal = '';
                  val = val.split(' ');
                  for(var c=0; c < val.length; c++) {
                       newVal += val[c].substring(0,1).toUpperCase() +
                       val[c].substring(1,val[c].length) + ' ';}
                  var obj = newVal;

                  var answer = confirm("Hello,\r\rIf " + obj + "is the town you want please click OK, otherwise Cancel.")                

                  if (answer) { var temp7 = townnaked.replace(" ", "-");
                                var temp8 = temp7.replace(" ", "-");
                                var temp9 = temp8.replace(" ", "-");
                                var townhyphens = temp9.replace(" ", "-");
                                flag = "Z"; 
                                window.location.href = "http://www.estate.orangehome.co.uk/estate-agents-" + townhyphens + ".htm"; 
                                break; }
	                 else { flag = "X"; }
                 
        }   
    }       

  }         
  
//if (flag == "X")  { window.location.href = "http://www.estate.orangehome.co.uk/estate-agents-in.htm"; }

 }   
return flag;
}   