changing frequency on pwm in runtime .

hello martin,
Thanks for your reply. I have used fast pwm mode and successfully generated two frequencies. I know i sound noob as i am .. But please guide , is it possible to change the frequency on the go. i want to toggle between these two frequencies .
the above code is pasted generates desired two frequencies but i am able to achieve toggle pattern.