How do i make the link to youtube open in a new window or tab? I know with html i could use target="_blank" href="http://www.youtube.com" but not sure how to do that here.

Thanks!


var imagenumber = 3 ;
var randomnumber = Math.random() ;
var rand1 = Math.round( (imagenumber-1) * randomnumber) + 1 ;
var URLs = new Array() ;
images = new Array
images[1] = "images/1.jpg"
images[2] = "images/2.jpg"
images[3] = "images/3.jpg"

var image = images[rand1] ;
var linknumber = 3 ;
var img1 = Math.round( (linknumber-1) * randomnumber) + 1 ;
links = new Array
links[1] = "index.htm"
links[2] = "page2.htm"
links[3] = "http://www.youtube.com"


var link = links[img1];
document.write('<a href="' + link + '"><img src="' + image + '" border="0"></a>') ;