function assetGraph(id,filename,asyncMode){var msCommonObj=new msCommonClass;msCommonObj.Start(id,filename,assetDraw,asyncMode)}function assetDraw(id,xmlData){var i,x,y,arrData=new Array(3),p1,p2,arrMonthTag=xmlData.getElementsByTagName("month");if(arrMonthTag.length!=1)return;arrData[0]=Number(arrMonthTag[0].getAttribute("stock_rate"));arrData[1]=Number(arrMonthTag[0].getAttribute("bond_rate"));arrData[2]=Number(arrMonthTag[0].getAttribute("other_rate"));var jg=new jsGraphics(id);jg.setColor("#ffffff");jg.fillRect(0,0,130,130);jg.setColor("#40bf40");jg.fillArc(5,5,120,120,0,360);if(arrData[0]!=0){p1=(360+90-arrData[0]/100*360)%360;jg.setColor("#ffab57");jg.fillArc(5,5,120,120,p1,90)}if(arrData[2]!=0){p2=(360+90+arrData[2]/100*360)%360;jg.setColor("#8c8c8c");jg.fillArc(5,5,120,120,90,p2)}jg.setColor("#000000");jg.drawEllipse(5,5,119,119,0,360);if(arrData[0]!=100&&arrData[1]!=100&&arrData[2]!=100){jg.drawLine(65,65,65,5);x=65+59*Math.sin(arrData[0]/100*2*Math.PI);y=65-59*Math.cos(arrData[0]/100*2*Math.PI);jg.drawLine(65,65,Math.floor(x),Math.floor(y));x=65-59*Math.sin(arrData[2]/100*2*Math.PI);y=65-59*Math.cos(arrData[2]/100*2*Math.PI);jg.drawLine(65,65,Math.floor(x),Math.floor(y))}jg.paint();return}