According to OH, they are capacitors. They prevent DC from flowing, but high frequency AC will flow.
They are normally used to remove high frequencies from a low frequency signal, i.e. removing damaging spikes. To understand what they are doing in this case you need the circuit diagram.
Thanks for the info , it's a hookup Live / Neutral switch box ( for when mains live neutral connections are reversed at the site bollard ) . The 2 capacitors have mains ( either live or neutral ) going in one end , out the other end to some resistors then thro a rectifier diode to 2 Leds , one red, one green. The idea is that the Green led lights if the supply is the right way round , and the red if it's not . Then you throw a switch if the red Led is lit . The problem is one ( maybe 2 ) of the components is faulty , and is causes both Leds to light , no matter which way the switch is .
I wondered what it was, the diodes are 1N4005 so they are 600V
The 'hump back' on the first cap gives the clue, their not made like that so its suffered some shock, I'd just replace them and definitely the diodes, the resistors look fine but the outer ones should be 10k and the middle one 1.5k
You should get both from Maplins for pence, but that's old kit so the new caps will probably be smaller
Thanks Gary . I've looked on the Maplins website , but can only find 1N4005S and not 1N4005 , could i use the 1N4005S ? Will do as you recommend , replace both caps , diodes , will also change resistors. There is a buzzer connected to the board ( black and red wires ) , will this make a difference to the resistors used .
I wouldn't buy resistors from Maplin? I'd never trust them again and I doubt theres anything wrong with the originals anyway and yes, the 'S' is un-important as far as your concerned.
As it happens the 50v version, 1N4001 is the most used component in the world
Thanks for all the help , i now have a repaired and working switch over box , my next project is to see if i can make it automatic , so when the red led lights, it switches a relay that will then do the change over for me .