Hello everyone! I would greatly appreciate it if someone can help me out with my issue.

I am trying to switch embeded youtube videos using javascript functions that are triggered with the onClick="vidlink();" on a button. The function looks like this.

function vidlink4()
{
videolink = '<object width="293" height="165"><param name="movie" value="http://www.youtube.com/v/fa7jS2xCACw&amp;hl=en_US&amp;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/fa7jS2xCACw&amp;hl=en_US&amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="293" height="165"></embed> </object>';
}

I am using <script>document.write(videolink)</script> in the place where the code should be displayed.

I am new to JavaScript, I am very desperate to get this thing working. Please help

Thank You
Mike