
function showHead(){
	d = new Date();                           
	switch (d.getDay()) {                           
	case 0:	    strweek="日";	    break;	                             
       case 1:	    strweek="一";	    break;	                             
       case 2:	    strweek="二";	    break;	                             
       case 3:	    strweek="三";	    break;	                             
       case 4:	    strweek="四";	    break;	                             
       case 5:	    strweek="五";           break;                                 
       case 6:	    strweek="六";	    break;                               
       }
	  var sCurrDate =  (0000+d.getYear())+"年"+(d.getMonth()+1)+"月"+ d.getDate() +"日   "+"   星期"+strweek;      
	var headcontent=''
	+'<table width=770 border=0 align="center" cellpadding=0 cellspacing=0 align=center>'
    +'<tr>' 
    +'<td> <img src="/image/t_0_01.gif" width=19 height=18 alt=""></td>'
    +'<td> <a href="../index.asp"><img src="/image/menu_02.gif" alt="" width=48 height=18 border="0"></a></td>'
    +'<td> <img src="/image/t_0_03.gif" width=31 height=18 alt=""></td>'
    +'<td> <a   href="/txyj"  onMouseOver="showSubmenu(1)"><img src="/image/t_0_04.gif" alt="" width=50 height=18 border="0"></a></td>'
    +'<td> <img src="/image/t_0_05.gif" width=27 height=18 alt=""></td>'
    +'<td> <a   href="/zqsc"  onMouseOver="showSubmenu(2)"  ><img src="/image/t_0_06.gif" alt="" width=53 height=18 border="0"></a></td>'
    +'<td> <img src="/image/t_0_07.gif" width=24 height=18 alt=""></td>'
    +'<td> <a   href="/tzjj"  onMouseOver="showSubmenu(3)"  ><img src="/image/t_0_08.gif" alt="" width=52 height=18 border="0"></a></td>'
    +'<td> <img src="/image/t_0_09.gif" width=23 height=18 alt=""></td>'
    +'<td> <a   href="/tx_today/cpjs.asp"  onMouseOver="showSubmenu(4)"    ><img src="/image/t_0_100.gif" alt="" width=48 height=18 border="0"></a></td>'
    +'<td> <img src="/image/t_0_11.gif" width=29 height=18 alt=""></td>'
    +'<td> <a   href="/zqfg"  onMouseOver="showSubmenu(5)"    ><img src="/image/t_0_12.gif" alt="" width=51 height=18 border="0"></a></td>'
    +'<td width="318" background="/image/t_0_13.gif" align=center>今天是 '+sCurrDate+'</td>'
    +'<td width="5" background="/image/t_0_13.gif"><img src="/image/t_0_14.gif" width="5" height="18"></td>'
    +'</tr>'
    +'</table>'
   	+'<div align=center><table width="770" border="0" cellspacing="0" cellpadding="0" background="/image/back1.gif" height="10">'
	+'  <tr>'
	+'    <td height="10" class=itemText>&nbsp;</td>'
	+'    <td height="10" width="776" valign="middle"> '
	+'      <table width="100%" border="0" cellspacing="0" cellpadding="0" id=menu1 style="display:none">'
	+'        <tr> '
	+'          <td align="right" width="135">─>&nbsp;</td>'
	+'          <td class="head-l" nowrap >  <a href="../txyj/yjbg-z.asp?bgid=05" > 天相资讯</a>  | <a href="../txyj/yjbg-z.asp?bgid=01" > 投资策略</a> | <a href="../txyj/yjbg-z.asp?bgid=02" >宏观与政策</a>  | <a href="../txyj/yjbg-gs-z.asp?bgid=04" > 公司研究</a>  |<a href="../txyj/yjbg-hy-z.asp?bgid=03" > 行业研究</a>   | <a href="../txyj/yjbg-z.asp?bgid=06" > 基金研究</a>  | <a href="../txyj/yjbg-z.asp?bgid=08" > 债券研究</a></td>'
	+'        </tr>'
	+'      </table>'
	+'      <table width="100%" border="0" cellspacing="0" cellpadding="0" id=menu2 style="display:none">'
	+'        <tr> '
	+'          <td align="right" width="210">─>&nbsp;</td>'
	+'          <td class="head-l" nowrap ><a href="../zqsc/xwzx.asp?classid=13" >证券要闻</a> '
	+'         | <a href="../zqsc/xwzx.asp?classid=23" >信息点评</a> '
	+'         | <a href="../zqsc/xwzx.asp?classid=231" >个股风云</a> | <a href="../zqsc/xwzx.asp?classid=262" >B股动态</a> '
	+'            | <a href="../zqsc/xwzx.asp?classid=12" >产经消息</a>| <a href="../zqsc/xwzx.asp?classid=15" >上市公司 </a> '
	+'            | <a href="../zqsc/xwzx.asp?classid=10" >国内财经</a>| <a href="../zqsc/xwzx.asp?classid=11" >国际财经</a></td>'
	+'        </tr>'
	+'      </table>'
	+'      <table width="100%" border="0" cellspacing="0" cellpadding="0" id=menu3 style="display:none">'
	+'        <tr> '
	+'          <td align="right" width="285">&nbsp;─>&nbsp;</td>'
	+'          <td class="head-l" nowrap> <a href="../tzjj/jjzx.asp?classid=615" >基金点评</a> '
	+'            | <a href="../tzjj/jjsj.asp" >基金数据</a> | <a href="../tzjj/jjzx.asp?classid=608" >基金热点</a><a href="../tzjj/jjzx.asp?classid=610" > | 基金研究</a> '
	+'            | <a href="../tzjj/jjzx.asp?classid=631" >基金经理</a> | <a href="../tzjj/jjzx.asp?classid=611" >海外基金</a></td>'
	+'        </tr>'
	+'      </table>'
	+'      <table width="100%" border="0" cellspacing="0" cellpadding="0" id=menu4 style="display:none">'
	+'        <tr> '
	+'          <td align="right" width="360">&nbsp;─>&nbsp;</td>'
	+'          <td class="head-l" nowrap > <a href="/tx_today/index.asp" >今日操盘建议</a> '
	+'            | <a href="/tx_today/tx_jyd.asp" >天相金银岛日刊 </a>  '
	+'            | <a href="/xzym/tx_net.html" >天相分析系统移动版 </a>  '
	+'            | <a href="/suoming/help.asp" >帮助中心 </a> </td>'
	+'        </tr>'
	+'      </table>'
	+'      <table width="100%" border="0" cellspacing="0" cellpadding="0" id=menu5 style="display:none">'
	+'          <td align="right" width="435">&nbsp;─>&nbsp;</td>'
	+'          <td class="head-l" nowrap> <a href="../zqfg/xwzx.asp?classid=01" >股票</a>'
	+'            | <a href="../zqfg/xwzx.asp?classid=04" >基金</a> | <a href="../zqfg/xwzx.asp?classid=05" >债券</a>'
	+'            | <a href="../zqfg/xwzx.asp?classid=06" >期货</a> | <a href="../zqfg/xwzx.asp?classid=02" >上市公司</a>| <a href="../zqfg/xwzx.asp?classid=03" >中介机构</a>| <a href="../zqfg/xwzx.asp?classid=12" >其它</a></td>'
	+'        </tr>'
	+'      </table>'
	+'    </td>'
	+'    <td height="18">&nbsp;</td>'
	+'  </tr>'
	+'</table></div>';
	document.write(headcontent);
}

function showSubmenu(id){
	for(var i=1;i<=5;i++){
		if (i!=id && eval("menu"+i).style.display=="block") eval("menu"+i).style.display='none';
	}
	eval("menu"+id).style.display='block';
}

//天相研究反馈中的点击回复
function reply(id){		
	window.document.all('parent').value =  id ;
}
//报告弹出窗口定制
function newswindow(url, windowname) 
{ 
var config;
if (navigator.appVersion.substring(0, 1) <4)
	config = 'toolbar=yes,';
else
	config = 'toolbar=no,';
config += 'status=no,location=no,directories=no,menubar=no,scrollbars=1,';
config += 'resizable=no,copyhistory=no,height=510, width=540 ,left=150';
window.open(url, windowname, config);
}



//新闻弹出窗口定制
function newswindow1(url, windowname) 
{ 
var config;
if (navigator.appVersion.substring(0, 1) <4)
	config = 'toolbar=yes,';
else
	config = 'toolbar=no,';
config += 'status=no,location=no,directories=no,menubar=no,scrollbars=1,';
config += 'resizable=no,copyhistory=no,height=420, width=538 ';
window.open(url, windowname, config);
}


//企业融资在线弹出窗口定制
function newswindow3(url, windowname) 
{ 
var config;
if (navigator.appVersion.substring(0, 1) <4)
	config = 'toolbar=yes,';
else
	config = 'toolbar=no,';
config += 'status=no,location=no,directories=no,menubar=no,scrollbars=1,';
config += 'resizable=no,copyhistory=no,height=420, width=594 ';
window.open(url, windowname, config);
}


//更名证券，证券名称代码对照 弹出窗口定制
function newswindow2(url, windowname) 
{ 
var config;
if (navigator.appVersion.substring(0, 1) <4)
	config = 'toolbar=yes,';
else
	config = 'toolbar=no,';
config += 'status=no,location=no,directories=no,menubar=no,scrollbars=1,';
config += 'resizable=yes,copyhistory=no,height=420, width=200 ';
window.open(url, windowname, config);
}


function cellSwitch(cellName, newColor, textColor) {
//	if (isIE) {
		cellName.bgColor = newColor;
//	}
	if (textColor != null) {
		cellName.style.color = textColor;
	}
}

		function SubmitSearchForm1(form)
		 	{
		  		var inputData ;
				   inputData= form.GPDM.value;
		  		if ((inputData==""))
		  		{
		  			alert("股票代码不能为空！")
		  			form.GPDM.focus();
		  			return false
		  			}
		  if((inputData.length != 4 && inputData.length != 6) || isNaN(parseInt(inputData)))
		  		{
		  			alert("请输入正确的股票代码！")
		  			form.GPDM.focus();
		  			form.GPDM.select();
		  			return false
		  				}
		  			return true;
		  		}




function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function openwin(url,windowname,width,height,left,top){
var config;
if (navigator.appVersion.substring(0, 1) <4)
	config = 'toolbar=yes,';
else
	config = 'toolbar=no,';
config += 'status=no,location=no,directories=no,menubar=no,scrollbars=0,';
config += 'resizable=no,copyhistory=no,height='+height+', width='+width+' ,left='+left+',top='+top;
window.open(url, windowname, config);


}
//股权分置专题进程提示弹出窗口定制（/guquanfz/jincheng.asp）
function openwin() {
window.open ("jincheng.asp", "", "height=630, width=800, toolbar=no, menubar=no, scrollbars=yes, resizable=no, location=no, status=no")
}

//股权分置专题方案一览表弹出窗口定制（/guquanfz/jincheng.asp）
function openwin1() {
window.open ("fangan.htm", "", "height=630, width=800, toolbar=no, menubar=no, scrollbars=yes, resizable=no, location=no, status=no")
}

