Go to the pharmacy and explain your situation to them. It is very likely they will give you a 4 day supply until you can get your refill.
I'm not sure about substituting one for the other, but I bet if you went to the ER and told them your dillema, they would give you a small script to get you through. There are others on here that DO know the answer to the substitution thing, so maybe someone will respond.