function fms()
{
var s1=document.getElementById("q").value;
var s = escape(s1);
if (s1=="请输入关键字" || s1=="" ){
window.open("http://so.eastmoney.com/");
return false;
}else{
window.open("http://so.eastmoney.com/index.aspx?Page=1&t=body&q="+s);
return false;}
}

function rewrite(aa)
{
stockcode_current=document.getElementById("StockCode").value;
if (stockcode_current=="输入股票代码、证券名称或拼音缩写" || stockcode_current=="")stockcode_current="600000";
var re=/[0-9]{6}/; 
var re2=/[0-9]{1,}/; 
var re3=/[^0-9]{1,}/; 
bool1=aa.StockCode.value.match(re)
bool2=aa.StockCode.value.match(re2)
bool3=aa.StockCode.value.match(re3)
if(bool1!=null && stockcode_current.length==6){
window.open("http://quote.eastmoney.com/"+stockcode_current+".html") ;	}
else {
if (bool2!=null && bool3==null && stockcode_current.length<3){alert("股票代码至少输入3位！");return false;}
if (bool2==null && bool3!=null && stockcode_current.length<2){alert("模糊查询时关键字至少2位！");return false;}
window.open("http://quote.eastmoney.com/quote.asp?stockcode="+stockcode_current);}
return(false);
}
function aal(){window.open('http://quote.eastmoney.com/stocklist.html')}
function aa(){window.open('http://q.eastmoney.com/q.aspx?StockCode='+document.all.fms.StockCode.value)}
function tb(){var obj=document.getElementById("left").offsetHeight;if(obj<675){document.getElementById("left").style.height="675px";}}
	


