
function searchstockcode()
{
stockcode_current=$("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=stockcode_current.match(re)
bool2=stockcode_current.match(re2)
bool3=stockcode_current.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='+escape(stockcode_current));}
return(false);
}
function rewrite()
{
stockcode_current=$("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=stockcode_current.match(re)
bool2=stockcode_current.match(re2)
bool3=stockcode_current.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='+escape(stockcode_current));}
return(false);
}
function searchgsstockcode()
{
stockcode_current=$("StockCode").value;
window.open('http://q.eastmoney.com/q.aspx?StockCode='+escape(stockcode_current));
}
function aa()
{
stockcode_current=$("StockCode").value;
stockcode_current=$("StockCode").value;
  var re=/[0-9]{6}/; 
  bool1=stockcode_current.match(re)
  if(bool1!=null)
  {window.open('http://q.eastmoney.com/q.aspx?StockCode='+escape(stockcode_current));}
  else
  {window.open('http://q.eastmoney.com/');}
}
function researchstockcode()
{
stockcode_current=$("ReStockCode").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=stockcode_current.match(re)
bool2=stockcode_current.match(re2)
bool3=stockcode_current.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='+escape(stockcode_current));}
return(false);
}
function quotetoguba()
{       
  stockcode_current=$("StockCode").value;
  var re=/[0-9]{6}/; 
  bool1=stockcode_current.match(re)
  if(bool1!=null)
  {window.open('http://guba.eastmoney.com/'+stockcode_current+',guba.html');}
  else
  {window.open('http://guba.eastmoney.com/');}
}
function gaibiandiv(divname){if($(divname).style.display=="block"){$(divname).style.display="none";}else{$(divname).style.display="block";}}
//function helpdiv_close(id){var o = $(id);starchina();var j=100;var sobjTimer;var sobjTimer2;function change(){j=j-2;o.style.filter = "Alpha(Opacity=" + j + ")";o.style.opacity = j/100;if(j<0) {window.clearInterval(sobjTimer);}}function starchina(){sobjTimer =window.setInterval(change,10);}}
