<style>
<!--
a            { font-variant: small-caps; font-family: Arial; font-size:12.5px; text-decoration: none }
body         { font-family: Arial; font-size: 14.5px }
-->
</style>
<script src='../inc/draw.js'></script>	
<script>
function draw(){
if(IE4) {
//var left=document.getElementById("middle").offsetLeft;
//var top=document.getElementById("middle").offsetTop;
var max=0;
var i;
var y_n;
var x_n;
color = "#FF0000"
//var jd = new Array(<%=request("price_draw")%>);
<%
if request("price_draw")<>"$" then
	price_draw=split(request("price_draw"),",")
	if ubound(price_draw)<=0 then
		p_d="'"&price_draw(0)&"'"
	else
	    p_d=request("price_draw")
	end if
	d_d=request("date_draw")
else
    p_d="'N/A'"
	d_d="'暂时无报价'"
end if

%>
var jd = new Array(<%=p_d%>);
var jdate = new Array(<%=d_d%>);
var min=jd[0];

for(i=0;i<jd.length;i++) {
if(jd[i]>max)max=jd[i];
if(jd[i]<min)min=jd[i];
}

if (max==min) min=0;

x_n=450/jd.length;
y_n=200/(max-min);

MoveTo(30,(jd[0]-min)*y_n+50)
biaozhu(xo,yo,jd[0],1,'r')
for(i=1;i<jd.length;i++) {LineTo(i*x_n+30,(jd[i]-min)*y_n+50);biaozhu(xo,yo,jd[i],1,'r')}

color = "#808080"

Line(30,20,30,280);
MoveTo(30,280);biaozhu(xo,yo,'价格(<%=request("unit_money_name")%>)',1,'r');
LineTo(25,275)
MoveTo(30,280);
LineTo(35,275)
MoveTo(30,20);
for(i=0;i<jdate.length;i++) {
LineTo(i*x_n+30,20);
biaozhu(xo,yo,jdate[i],1,'l');
for(ii=0;ii<((jd[i]-min)*y_n+50-20)/10;ii++){
MoveTo(i*x_n+30,((jd[i]-min)*y_n+50)-ii*10);
LineTo(i*x_n+30,((jd[i]-min)*y_n+50)-ii*10-5);
}
MoveTo(i*x_n+30,15);
LineTo(i*x_n+30,20);
}
LineTo(480,20);
MoveTo(480,20);biaozhu(xo,yo,'日期',1,'b');
LineTo(475,25);
MoveTo(480,20);
LineTo(475,15);

}else {
document.write("<p> </p><table bgcolor=#FF0000><tr><td><font color=#FFFF00>对不起！您的浏览器不能支持该页的某些功能，请换用IE4.0以上版本的浏览器！谢谢！</font></td></tr></table>")
}
}
draw();
</script>