Javascript not reading flash variables correctly

I have sort of a strange situation. I’m passing my variables from flash to js as such:


collat_movie.onRelease = function() {
   var image = this.img_src;
   getURL("javascript: loadImage(" + image + ");"); 
   trace(image.text);
  };

When I trace my variable0, it correctly states the variable as logo.jpg

However, in my javascript I have this:


function loadImage(x){
document.getElementById("flash").innerHTML = "<img src=/'" + x + "'/>";
}

When I try to run this in explorer, I get the following message:

“logo” is undefined.

Now considering that I do not use the variable “logo” anywhere in the flash/js, I know that what is happening is that js is stripping the .jpg off of the end of my ‘x’ variable. Does anyone know why this is happening and how I can fix it???

Thank you in advance!

Mat