Loadmovie(); problem

Below is the code, I know its long but :confused:

thb.onRelease = function() {

with(this) {
myName = this._name;
newLength = myName.length;
subbed = (newLength-3);
myNumber = myName.substr(newLength-subbed, subbed);
//trace(subbed);
}

address = “pics/im”+myNumber+".jpg";
target_winName = “kirupa”;
width = 400;
height = 300;
toolbar = 0;
location = 0;
directories = 0;
status = 0;
menubar = 0;
scrollbars = 0;
resizable = 0;
//sends data back to the function
openWinCentre(address, target_winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable);

//openPic(myNumber);
}

}

And also:
_root.openWinCentre = function (url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable) {
getURL (“javascript:var myWin; if(!myWin || myWin.closed){myWin = window.open(’” + url + “’,’” + winName + “’,’” + “width=” + w + “,height=” + h + “,toolbar=” + toolbar + “,location=” + location + “,directories=” + directories + “,status=” + status + “,menubar=” + menubar + “,scrollbars=” + scrollbars + “,resizable=” + resizable + “,top=’+((screen.height/2)-(” + h/2 + “))+’,left=’+((screen.width/2)-(” + w/2 + “))+’” + “’)}else{myWin.focus();};void(0);”);
}

this works when I play the movie alone. but when I load it into an another movie with loadMovie(); It sucks and do not work. any solutions…