total_no=ubound(total,1)
totalpie=0
fori=1tototal_no
totalpie=totalpie+total(i,1)
next
PreAngle=0
fori=1tototal_no
response.write"<v:shapeid=_x0000_s1025alt=style=position:absolute;left:"&table_x&"px;top:"&table_y&"px;width:"&all_width&"px;height:"&all_height&"px;z-index:1coordsize=1500,1400o:spt=100adj=0,,0path=m750,700ae750,700,750,700,"&int(23592960*PreAngle)&","&int(23592960*total(i,1)/totalpie)&"xefillcolor="&tb_color(i,1)&"strokecolor=#FFFFFF><v:fillcolor2="&tb_color(i,2)&"rotate=tfocus=100%type=gradient/><v:strokejoinstyle=round/><v:formulas/><v:patho:connecttype=segments/></v:shape>"&CHr(13)
PreAngle=PreAngle+total(i,1)/totalpie
next