Found in Popular Electronics this circuit will trigger a buzzer if the ignition key is removed with the headlights on. The buzzer can be replaced with an oscillator.