﻿function random_link(){
var product_title=new Array()
product_title[1]= "立體聲藍芽耳機"
product_title[2]= "藍芽無線鍵盤滑鼠組"
product_title[3]= "迷你7吋平版筆記型電腦"
product_title[4]= "隨心所欲自由配超值主機"
product_title[5]= "極緻品味家庭多媒體中心"
product_title[6]= "HP 多功能雷射事務機"
product_title[7]= "華碩 MW221U 22吋LCD"
product_title[8]= "原廠終身保固記憶卡"
product_title[9]= "新世代多功能數位相簿"
product_title[10]="炫彩行動硬碟"
product_title[11]="超大容量硬碟"
product_title[12]="影音行動硬碟"
product_title[13]="新聲代影音手寫電子辭典"
product_title[14]="造型網路攝影機"
product_title[15]="數位家庭DVD投影機"
product_title[16]="行動類比電視電影院"
product_title[17]="超大容量優質隨身碟"
product_title[18]="四核心電腦處理器"

var product_link=new Array()
product_link[1]= "http://hibid.hinet.net/searchaction.do?searchkey=%E8%97%8D%E8%8A%BD+or+%E8%97%8D%E7%89%99&categoryid=1190&location=0&memsn=&condition=&Submit=%E9%96%8B%E5%A7%8B%E6%90%9C%E5%B0%8B"
product_link[2]= "http://hibid.hinet.net/searchaction.do?searchkey=%E8%97%8D%E8%8A%BD+or+%E8%97%8D%E7%89%99&categoryid=852&location=0&memsn=&condition=&Submit=%E9%96%8B%E5%A7%8B%E6%90%9C%E5%B0%8B"
product_link[3]= "http://hibid.hinet.net/subcategoryaction.do?categoryid=758"
product_link[4]= "http://hibid.hinet.net/subcategoryaction.do?categoryid=732"
product_link[5]= "http://hibid.hinet.net/subcategoryaction.do?categoryid=1819"
product_link[6]= "http://hibid.hinet.net/subcategoryaction.do?categoryid=862"
product_link[7]= "http://hibid.hinet.net/subcategoryaction.do?categoryid=781"
product_link[8]= "http://hibid.hinet.net/subcategoryaction.do?categoryid=1074"
product_link[9]= "http://hibid.hinet.net/searchaction.do?searchkey=%E6%95%B8%E4%BD%8D+and+%E7%9B%B8%E7%B0%BF&categoryid=0&location=0&memsn=&condition=&Submit=%E9%96%8B%E5%A7%8B%E6%90%9C%E5%B0%8B"
product_link[10]="http://hibid.hinet.net/searchaction.do?searchkey=%E8%A1%8C%E5%8B%95+and+%E7%A1%AC%E7%A2%9F&categoryid=0&location=0&memsn=&condition=&Submit=%E9%96%8B%E5%A7%8B%E6%90%9C%E5%B0%8B"
product_link[11]="http://hibid.hinet.net/subcategoryaction.do?categoryid=802"
product_link[12]="http://hibid.hinet.net/searchaction.do?searchkey=MP4+and+%E7%A1%AC%E7%A2%9F&categoryid=0&location=0&memsn=&condition=&Submit=%E9%96%8B%E5%A7%8B%E6%90%9C%E5%B0%8B"
product_link[13]="http://hibid.hinet.net/subcategoryaction.do?categoryid=970"
product_link[14]="http://hibid.hinet.net/subcategoryaction.do?categoryid=1071"
product_link[15]="http://hibid.hinet.net/subcategoryaction.do?categoryid=782"
product_link[16]="http://hibid.hinet.net/searchaction.do?searchkey=MP4&categoryid=730&location=0&memsn=&condition=&Submit=%E9%96%8B%E5%A7%8B%E6%90%9C%E5%B0%8B"
product_link[17]="http://hibid.hinet.net/subcategoryaction.do?categoryid=853"
product_link[18]="http://hibid.hinet.net/subcategoryaction.do?categoryid=795"

var number=Math.floor(Math.random()*(product_link.length-1))+1

document.write('<table cellspacing="0" cellpadding="0">')
document.write('<tr>')
document.write('<td align="center" width="180" height="152" background="images2/default_digitalwarehouse_frame_1.jpg">')
document.write('<a href="'+product_link[number]+'"><img src="http://hibid.hinet.net/HotShowWeb/digitalwarehouse/images/digitalwarehouse_product_'+number+'.gif"></a>')
document.write('</td>')
document.write('</tr><tr>')
document.write('<td align="center" width="180" height="48" background="images2/default_digitalwarehouse_frame_4.jpg">')
document.write('<a href="'+product_link[number]+'" style="color:#ff9000;font-weight:bolder;text-decoration:none">'+product_title[number]+'</a><br><br>')
document.write('</td>')
document.write('</tr>')
document.write('</table>')
}
random_link()