Materials when switching between BI and luxrender

Hello everyone.

When switching engines from blender internal to luxrender (and lux->bi), all materials in the scene have to be replaced with new ones.

Is there a way to replace all materials in the scene with a pre-specified default one?