it shouldn't do it on the clock. the trip i don't know. I would take it back for repair. something is resetting it and it may get worst. My 05 don't reset the trip and iwould think it would be the same as a 06.
hmmm.... it sounds like the batt either has a loose connection or has a dead cell. when you start it it is droping below 9v witch will reset everything... Reguardless you bike is getting less than 9v so check those two. also hook a batt charger up and start it. I bet the clock doesnt reset.
Update: Check battery voltage, 12.8 when cold(good), 14.0-14.3 running good. When staring it will stumble and drop to 9.xx volts and this is when the clock and trip odometer resets. I hate to take it to the dealer.(too many mods:sad