function showHead(){
	var arWeek = Array("", "一", "二", "三", "四", "五", "六", "日");
	var date = new Date();
	var sCurrDate = date.getYear()+"年"+(date.getMonth()+1)+"月"+date.getDate()+"日"+
	"&nbsp;&nbsp;星期"+arWeek[date.getDay()];
	var headcontent=''
	+'<table width="100%" border="0" cellspacing="0" cellpadding="0" background="images/pic_bg1.gif">'
	+'  <tr>'
	+'    <td height="35">&nbsp;</td>'
	+'    <td width="230" class=itemText align="center" valign="bottom">今天是'+sCurrDate+'</td>'
	+'    <td width="474" nowrap><a href="index.asp" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'m5\',\'\',\'images/sy-1.gif\',0)"><img name="m5" border="0" src="images/sy.gif" width="79" height="35"></a><a href="gy.asp" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'m0\',\'\',\'images/gywm-1.gif\',0)"><img name="m0" border="0" src="images/gywm.gif" width="79" height="35"></a><a href="yy.asp" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'m1\',\'\',\'images/yyxx-1.gif\',0);showSubmenu(1)"><img name="m1" border="0" src="images/yyxx.gif" width="79" height="35"></a><a href="cx.asp" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'m2\',\'\',\'images/cxbb-1.gif\',0);showSubmenu(2)"><img name="m2" border="0" src="images/cxbb.gif" width="79" height="35"></a><a href="qy.asp" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'m3\',\'\',\'images/qyfc-1.gif\',0);showSubmenu(3)"><img name="m3" border="0" src="images/qyfc.gif" width="79" height="35"></a><a href="gk.asp" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'m4\',\'\',\'images/gkyz-1.gif\',0);showSubmenu(4)"><img name="m4" border="0" src="images/gkyz.gif" width="79" height="35"></a></td>'
	+'    <td width="151">&nbsp;</td>'
	+'    <td>&nbsp;</td>'
	+'  </tr>'
	+'</table>'
	+'<table width="100%" border="0" cellspacing="0" cellpadding="0" background="images/pic_bg3.gif">'
	+'  <tr>'
	+'    <td height="27" class=itemText>&nbsp;</td>'
	+'    <td height="25" width="776" valign="middle"> '
	+'      <table width="100%" border="0" cellspacing="4" cellpadding="0" id=menu1 style="display:none">'
	+'        <tr> '
	+'          <td align="right" width="41%"><img src="images/arrow1.gif" width="11" height="10"></td>'
	+'          <td class="head-l" nowrap width="59%"> <a href="yingxiao_1.asp" class="itemText">连锁网络</a> '
    +'     | <a href="yy.asp" class="itemText">营运动态</a>| <a href="xiaofei.asp" class="itemText">消费保障</a></td>'
	+'        </tr>'
	+'      </table>'
	+'      <table width="100%" border="0" cellspacing="4" cellpadding="0" id=menu2 style="display:none">'
	+'        <tr> '
	+'          <td align="right" width="55%"><img src="images/arrow1.gif" width="11" height="10"></td>'
	+'          <td class="head-l" nowrap width="49%"> <a href="cx.asp" class="itemText">DM快讯</a> '
	+'            | <a href="zhinan.asp" class="itemText">消费指南</a></td>'
	+'        </tr>'
	+'      </table>'
	+'      <table width="100%" border="0" cellspacing="4" cellpadding="0" id=menu3 style="display:none">'
	+'        <tr> '
	+'          <td align="right" width="62%"><img src="images/arrow1.gif" width="11" height="10"></td>'
	+'          <td class="head-l" nowrap width="38%"> '
	+'            <a href="qy.asp" class="itemText">新闻速递</a> | <a href="qy2.asp" class="itemText">管理之窗</a> '
	+'           | <a href="qy3.asp" class="itemText">员工天地</a></td>'
	+'        </tr>'
	+'      </table>'
	+'      <table width="100%" border="0" cellspacing="4" cellpadding="0" id=menu4 style="display:none">'
	+'        <tr> '
	+'          <td align="right" width="72%"><img src="images/arrow1.gif" width="11" height="10"></td>'
	+'          <td class="head-l" nowrap width="28%"> <a href="gk.asp" class="itemText">为您服务</a> '
	+'            | <a href="gk2.asp" class="itemText">健康生活</a> | <a href="gk3.asp" class="itemText">流行情报</a> | <a href="gk4.asp" class="itemText">会员沙龙</a></td>'
	+'        </tr>'
	+'      </table>'
	+'    </td>'
	+'    <td height="22">&nbsp;</td>'
	+'  </tr>'
	+'</table>';
	document.write(headcontent);
}


function showSubmenu(id){
	for(var i=1;i<=4;i++){
		if (i!=id && eval("menu"+i).style.display=="block") eval("menu"+i).style.display='none';
	}
	eval("menu"+id).style.display='block';
}

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) { //v4.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);
  if(!x && document.getElementById) x=document.getElementById(n); 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 showOpenwinhead1(){
var opwin=''
+'<table width="100%" border="0" cellspacing="0" cellpadding="0">'
+'  <tr>'
+'    <td width="272"><img src="images/logo.gif" width="272" height="65"></td>'
+'    <td>&nbsp;</td>'
+'    <td width="100"><br>'
+'      <br>'
+'      <a href="javascript:close()"><img src="images/closewin.gif" width="85" height="23" border="0"></a></td>'
+'  </tr>'
+'</table>'
+'<table width="100%" border="0" cellspacing="0" cellpadding="0">'
+'  <tr>'
+'    <td background="images/closewin_bg1.gif" height="17"><img src="http://img.the9.com/img/empty.gif" width="1" height="17"></td>'
+'  </tr>'
+'</table>'

document.write(opwin);

}


