Simple code moving forward

Thanks for the response everyone.

@raschemmel The student I'm mentoring has the robot which is why I didn't post a picture of the actual layout. I'll supply that when I meet him soon.
We're using the same sensor as http://arduino.cc/en/Tutorial/Ping?from=Tutorial.UltrasoundSensor. We got the detection code from this link as well.
From the tests that I did with him last time, the ultrasonic sensor is functional but the motors would not sync and they seem to "self-correct" after calibration. I'll be taking @Robin2's suggestions and fix up my code to get around that problem.
Thanks for the documentation. If I'm understanding this correctly, I'd need to write my own function to control how long the continuous servos are operating at a certain speed? For example, if I want one to be moving at full speed for 10 seconds, I can't use delay() or other functions provided.

@TomGeorge Thanks for the advice. I wasn't 100% sure it was allowed on the arduino platform. I'll definitely try to break it up into different functions.

@Robin2 Thanks for the recommendations. Your suggestion's spot on - the servos were impossible to sync. We'll probably go with your suggestion and use 2 powered/2 unpowered.
And yes, I read your code I get what you mean. I'll be working with him on that when I see him.

Thanks for the clarifications! We'll work on the code and hopefully we'll be able to fix everything.