if its a single click only, its the aps switching, and the problem lies with the ignition system (either the electrodes, wires, or pcb)
if you hear a constant few seconds of clicking, the problem is either the gas valve or again a pcb problem (odds on gas valve though)
T, June 2008