response.write"<v:shapeid=’_x0000_s1025’type=’#_x0000_t202’alt=’’style=’position:absolute;left:"&table_x&"px;top:"&table_y+temp_space&"px;width:"&left_width&"px;height:18px;z-index:1’>"
response.write"<v:textboxinset=’0px,0px,0px,0px’><tablecellspacing=’3’cellpadding=’0’width=’100%’height=’100%’><tr><tdalign=’right’>"&total(i,2)&"</td></tr></table></v:textbox></v:shape>"
next
caseelse
endselect
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_s1025’alt=’’style=’position:absolute;left:"&table_x&"px;top:"&table_y&"px;width:"&all_width&"px;height:"&all_height&"px;z-index:1’coordsize=’1500,1400’o:spt=’100’adj=’0,,0’path=’m750,700ae750,700,750,700,"&int(23592960*PreAngle)&","&int(23592960*total(i,1)/totalpie)&"xe’fillcolor=’"&tb_color(i,1)&"’strokecolor=’#FFFFFF’><v:fillcolor2=’"&tb_color(i,2)&"’rotate=’t’focus=’100%’type=’gradient’/><v:strokejoinstyle=’round’/><v:formulas/><v:patho:connecttype=’segments’/></v:shape>"&CHr(13)
PreAngle=PreAngle+total(i,1)/totalpie
next