I'm trying to have my file open up (mp3) in a specific frame in another window.

CODE

<script type="text/javascript">
function popcbox(URL) {
cboxwin = window.open("","Cbox","width=160,height=396,toolbar=no,scrollbars=no,status=no,resizable=yes");
cboxwin.document.write('<html><head><title>Cbox</title></head><frameset rows="*,80,16px" frameborder="0" framespacing="0">');

cboxwin.document.write('<frame marginwidth="2" marginheight="2" src="http://www3.cbox.ws/box/?boxid=2907381&boxtag=qbjzdh&sec=main" noresize="true" scrolling="auto" name="cboxmain" style="border:#DBE2ED 1px solid;"/>');

cboxwin.document.write('<frame marginwidth="2" marginheight="2" src="http://www3.cbox.ws/box/?boxid=2907381&boxtag=qbjzdh&sec=form" noresize="true" scrolling="no" name="cboxform" style="border:#DBE2ED 1px solid;border-top:0px"/>');  

cboxwin.document.write('<frame marginwidth="2" marginheight="2" src="URL" noresize="true" scrolling="no" name="music" style="border:#DBE2ED 1px solid;border-top:0px"/></frameset>');



cboxwin.document.write('<noframes>Cbox needs frames!</noframes></html>');
  try {
    x = screen.width;
    y = screen.height;
    cboxwin.moveTo(Math.max((x/2)-80, 0), Math.max((y/3)-190));
  } catch (e) {};
}
</script>


CODE

<a class="current" href="java script:popcbox('1.mp3');">1.mp3</a>


I want the file to open in the third frame, where URL is. The URL will change as there is multiple mp3's, so i want it to take the url from the link and plug it in that third frame.

But i'm guessing i'm not doing it right, as it is not working.


Thanks for the help.