I'm sorry for you, if indeed you do have to put your dog down. Saying goodbye to a pet is one of the hardest things to do. I've had to put two of my own down in the last two years. I still miss them.
As for replacing your dog, wait just a bit for the initial shock to wear off.
Good luck to you.