image = new Array(1); 
link = new Array(2);
image[0] = 'mainimg/thinkpad.jpg' //不同的图片 
image[1] = 'mainimg/thinkpad1.jpg'
image[2] = 'mainimg/thinkpad.jpg'
image[3] = 'mainimg/thinkpad1.jpg'
image[4] = 'mainimg/thinkpad.jpg'
image[5] = 'mainimg/thinkpad1.jpg'
image[6] = 'mainimg/thinkpad.jpg'
image[7] = 'mainimg/thinkpad1.jpg'
image[8] = 'mainimg/thinkpad.jpg'
image[9] = 'mainimg/thinkpad1.jpg'
image[10] = 'mainimg/thinkpad.jpg'
image[11] = 'mainimg/thinkpad1.jpg'

link[0] = 'buy_product.php?pid=16' //不同的链接
link[1] = 'buy_product.php?pid=16'
link[2] = 'buy_product.php?pid=16'  
link[3] = 'buy_product.php?pid=16'
link[4] = 'buy_product.php?pid=16'  
link[5] = 'buy_product.php?pid=16'
link[6] = 'buy_product.php?pid=16'  
link[7] = 'buy_product.php?pid=16'
link[8] = 'buy_product.php?pid=16'  
link[9] = 'buy_product.php?pid=16'
link[10] = 'buy_product.php?pid=16'  
link[11] = 'buy_product.php?pid=16'





index = Math.floor(Math.random() * image.length);
document.write("<A HREF="+link[index]+">");
document.write('<IMG SRC="'+image[index]+'" height=70 width=570 border=0></A>');