Passing PHP Vars Into A Javascript

I'm having a slight difficulty with this.... I have a small piece of javascript that opens a new window, however when I try to pass a single variable into the mix nothing works anymore - no new windows appear, nothing!