ok, so i need a page to display 1 of 2 snippets of code randomly when a the page loads.

here is what i have tried:

Code:
<SCRIPT LANGUAGE="JavaScript">

var randomness = new Array(2)
randomness[0] = '<a href="javascript:;" onClick="MM_openBrWindow('testimonial_rob.asp','','scrollbars=yes,width=460,height=340')" onMouseOver="MM_swapImage('Image1','','images/polaroid_rob_on.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="images/polaroid_rob_off.jpg" alt="Testimonials" name="Image1" width="170" height="300" border="0" id="Image1"></a>';
randomness[1] = '<a href="javascript:;" onClick="MM_openBrWindow('testimonial_nathan.asp','','scrollbars=yes,width=460,height=340')" onMouseOver="MM_swapImage('Image1','','images/polaroid_nathan_on.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="images/polaroid_nathan_off.jpg" alt="Testimonials" name="Image1" width="170" height="300" border="0" id="Image1"></a>';

var a = Math.floor(Math.random() * randomness.length)

document.write(randomness[a]);

</SCRIPT>
basically it's an array with 2 html entries. i think it's running into probelms with the JS within the JS, and the quotations are all messed up. im not a coder. im a designer. please help me figure this out. its basically an image that changes when moused over and then loads a popup window when clicked. thanks.