Arduino restarts when DC motors are turned on

Hi, you may also be getting other types of EMI (Electro Magnetic Interference)

There are some hints on the http://ArduinoInfo.Info WIKI here: http://arduino-info.wikispaces.com/RelayIsolation