var tongji=new Array()
var tnum=new Array()
var aispllist;
var userstocklist=new Array()
var username;
function show_dispcompare_info(str)
{
	var managename;
	str=str.split(",")
	if (str[4]==0){managename='-';}else{managename='<a href="Exsm_Plus_Dispu.asp?Uid='+str[4]+'">'+str[3]+'</a>';}
	if (str[18]==0){exchangelink='<a href="Exsm_Plus_Exchange.asp?sid='+str[2]+'">进行交易';}else{exchangelink='<a title="该股票已经封盘，不能进行交易。"><font color=gray>进行交易</font>';}
	document.write ('<table class=a2 width='+assignwidth+' cellspacing=1 cellpadding=3 align=center border=0>');
	document.write ('<tr><td colspan=5 align=center height=25 class=a1>-=> 上 市 公 司 <font color=red>'+str[1]+'</font> 资 讯 <=-</td></tr>');
	document.write ('<tr valign="middle"><td class=a4 align="center" width="20%" rowspan="10"><img border="0" src="'+str[21]+'" width="130" height="190"></td>');
	document.write ('<td class=a4 width="10%" height="20"><b>上市公司</b>：</td>');
	document.write ('<td class=a3 width="30%">&nbsp;'+str[1]+'</td>');
	document.write ('<td class=a4 width="10%"><b>经营者</b>：</td>');
	document.write ('<td class=a3 width="30%">&nbsp;'+managename+'</tr>');
	document.write ('<tr><td class=a4 width="10%"><b>股票代号</b>：</td>');
	document.write ('<td class=a3 width="30%">&nbsp;'+str[0]+'</td>');
	document.write ('<td class=a4><b>上市日期</b>：</td>');
	document.write ('<td class=a3>&nbsp;'+str[20]+'</td></tr>');
	document.write ('<tr><td class=a4><b>总 股 份</b>：</td>');
	document.write ('<td class=a3>&nbsp;'+Compute(str[12],0)+'&nbsp;股');
	document.write ('<td class=a4><b>剩余股份</b>：');
	document.write ('<td class=a3>&nbsp;'+Compute(str[13],0)+'&nbsp;股</tr>');
	document.write ('<tr><td class=a4><b>今可交易</b>：');
	document.write ('<td class=a3>&nbsp;'+str[14]+'&nbsp;股</Font>'); 
	document.write ('<td class=a4><b>今成交量</b>：'); 
	document.write ('<td class=a3>&nbsp;'+Compute(str[15],0)+'&nbsp;股</Font></tr>');
	document.write ('<tr><td class=a4><b>买入笔数</b>：');
	document.write ('<td class=a3>&nbsp;'+str[16]+'&nbsp;笔');
	document.write ('<td class=a4><b>卖出笔数</b>：');
	document.write ('<td class=a3>&nbsp;'+str[17]+'&nbsp;笔</tr>');
	document.write ('<tr><td class=a4><b>开盘价格</b>：');
	document.write ('<td class=a3>&nbsp;'+str[7]+'');
	document.write ('<td class=a4><b>当前价格</b>：');
	document.write ('<td class=a3>&nbsp;'+Formatnumber(''+Compute(str[5],2)+'')+'</tr>');
	document.write ('<tr><td class=a4><b>今日涨跌</b>：');
	document.write ('<td class=a3>&nbsp;'+Formatnumber(''+Compute(str[5]-str[6],2)+'')+'&nbsp;元'); 
	document.write ('<td class=a4><b>今涨跌幅</b>：');
	document.write ('<td class=a3>&nbsp;'+Formatnumber(''+Compute((str[5]-str[6])/str[6],2)+'')+'%</tr>');
	document.write ('<tr><td class=a4><b>今日指数</b>：');
	document.write ('<td class=a3>&nbsp;'+Formatnumber(''+Compute(str[10],2)+'')+'&nbsp;点'); 
	document.write ('<td class=a4><b>综合指数</b>：'); 
	document.write ('<td class=a3>&nbsp;'+Formatnumber(''+Compute(str[11],2)+'')+'&nbsp;点</tr>');
	document.write ('<tr><td class=a4><b>最高价格</b>：');
	document.write ('<td class=a3>&nbsp;'+Formatnumber(''+Compute(str[9],2)+'')+'&nbsp;元'); 
	document.write ('<td class=a4><b>最低价格</b>：');
	document.write ('<td class=a3>&nbsp;'+Formatnumber(''+Compute(str[8],2)+'')+'&nbsp;元</tr>'); 
	document.write ('<tr valign="middle"><td class=a4><b>版面说明</b>：');
	document.write ('<td class=a3 colspan=4>&nbsp;'+str[22]+'</tr>');
	document.write ('<tr><td class=a4 colspan=5 align=center>'+exchangelink+'</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="Exsm_Plus_Gupiao.asp"><< 返回股市大厅</a></tr>');
	document.write ('</table>');
}
function show_graph_info()
{
	document.write ('<table class=a2 width='+assignwidth+' cellspacing=1 cellpadding=1 align=center border=0><br>');
	document.write ('<tr><td width="50%" align=center height=25 class=a1>-=> 最 近 30 天 走 势 图 <=-</td>');
	document.write ('<td width="50%" align=center height=25 class=a1>-=> 十 大 股 东 持 股 比 例 图 <=-</td></tr>');
	document.write ('<tr><td class=a3 width="50%">');
	document.write ('<table cellspacing=0 cellpadding=0 align=center border=0>');
	document.write ('<tr><td align="center" valign="bottom" height="'+vheight+'" width="100%">');
	for (i=0;i<tongji.length;i++)
	{
		document.write (tongji[i]);
	}
	document.write (' </td></tr>');
	document.write ('</table>');
	document.write ('</td>');
	document.write ('<td class=a3 valign="top" height="'+vheight+'">');
	document.write ('<table cellspacing=0 cellpadding=0 align=center border=0 width="100%" height="100%">');
	if (userno)
	{
		for (i=0;i<tnum.length;i++)
		{
			document.write (tnum[i]);
		}

	}
	else
	{
		document.write ('<tr valign=middle align=center><td><font color=gray>暂时没有人购买该股票</font></td></tr>');
	}
	document.write ('</table>');
	document.write ('</td></tr>');
	document.write ('</table>');
}
function show_jobber_info()
{
	document.write ('<table class=a2 width='+assignwidth+' cellspacing=1 cellpadding=3 align=center border=0><br>');
	document.write ('<tr align=center height=25 class=a1><td>代码</td><td>股东</td><td>持股数量</td><td>持股比例</td><td>当前价格</td><td>持股价格</td><td>持股现值</td><td>持股成本</td><td>总盈亏</td><td>盈亏率</td></tr>');
	if (aion)
	{
		aispllist=aispllist.split(",")
		var aistockvalue=currentprice*aispllist[3];
		var aistockcost=Compute(aispllist[4],2)*aispllist[3];
		document.write ('<tr align=right><td class=a3 align=center><Font color="olive">'+aispllist[2]+'</Font></td>');
		document.write ('<td class=a3 align=center><font color=red>'+aispllist[0]+'</font></td>');
		document.write ('<td class=a3>'+Compute(aispllist[3],0)+'</td>');
		document.write ('<td class=a3>'+Formatnumber(''+Compute(aispllist[3]*100/totalnum,2)+'')+'%</td>');
		document.write ('<td class=a3>￥'+Formatnumber(''+Compute(currentprice,2)+'')+'</td>');
		document.write ('<td class=a3>￥'+Formatnumber(''+Compute(aispllist[4],2)+'')+'</td>');
		document.write ('<td class=a3>￥'+Formatnumber(''+Compute(aistockvalue,2)+'')+'</td>');
		document.write ('<td class=a3>￥'+Formatnumber(''+Compute(aistockcost,2)+'')+'</td>');
		document.write ('<td class=a3>￥'+Formatnumber(''+Compute(aistockvalue-aistockcost,2)+'')+'</td>');
		document.write ('<td class=a3>'+Formatnumber(''+Compute((aistockvalue-aistockcost)*100/aistockcost,2)+'')+'%</td></tr>');
	}
	if (useron)
	{
		for (i=0;i<userstocklist.length;i++)
		{
			userstocklist[i]=userstocklist[i].split(",")
			var userstockvalue=currentprice*userstocklist[i][3];
			var userstockcost=Compute(userstocklist[i][4],2)*userstocklist[i][3];
			if (userstocklist[i][1]==userid){username='<Font color="blue">您自己</Font>';}else{if (userstocklist[i][5]==1){username='<a href="Exsm_Plus_Dispu.asp?uid='+userstocklist[i][1]+'">'+userstocklist[i][0]+'</a>';}else{username='<a title="使用了用户名保护模式">***</a>';}}
			document.write ('<tr align=right><td class=a3 align=center><Font color="olive">'+userstocklist[i][2]+'</Font></td>');
			document.write ('<td class=a3 align=center><a href="Exsm_Plus_Dispu.asp?Uid='+userstocklist[i][1]+'">'+username+'</a></td>');
			document.write ('<td class=a3>'+Compute(userstocklist[i][3],0)+'</td>');
			document.write ('<td class=a3>'+Formatnumber(''+Compute(userstocklist[i][3]*100/totalnum,2)+'')+'%</td>');
			document.write ('<td class=a3>￥'+Formatnumber(''+Compute(currentprice,2)+'')+'</td>');
			document.write ('<td class=a3>￥'+Formatnumber(''+Compute(userstocklist[i][4],2)+'')+'</td>');
			document.write ('<td class=a3>￥'+Formatnumber(''+Compute(userstockvalue,2)+'')+'</td>');
			document.write ('<td class=a3>￥'+Formatnumber(''+Compute(userstockcost,2)+'')+'</td>');
			document.write ('<td class=a3>￥'+Formatnumber(''+Compute(userstockvalue-userstockcost,2)+'')+'</td>');
			document.write ('<td class=a3>'+Formatnumber(''+Compute((userstockvalue-userstockcost)*100/userstockcost,2)+'')+'%</td></tr>');
		}
		document.write ('</table>');
		document.write ('<table width='+assignwidth+' cellspacing=0 cellpadding=1 align=center border=0>');
		document.write ('<tr><td align=left>&nbsp;&nbsp;页次：'+page+' / '+pagecount+'页 每页'+pagesize+'个 共'+recordcount+'个</td>');
		document.write ('<td Align=Right>分页：'+DispPageNum(page,pagecount,'?sid='+stocksid+'&page=','','""')+'</td></tr>');
	}
	document.write ('</table>');
}