function NetDate()
{
 this.days=new Array("星期日","星期一","星期二","星期三","星期四","星期五","星期六"),
 this.date=new Date();
 this.WriteDate=NetDate_WriteDate;
 this.WriteDay=NetDate_WriteDay;
}
function NetDate_WriteDate()
{
 document.write(this.date.getYear(),"年",
                this.date.getMonth()+1,"月",
                this.date.getDate(),"日 ");
}
function NetDate_WriteDay()
{
 document.write(this.days[this.date.getDay()]);
}

function NetMarquee(b,b1,b2)
{
 this.Block=b;
 this.Block1=b1;
 this.Block2=b2;
 this.moveUp=NetMarquee_moveUp;
 this.moveLeft=NetMarquee_moveLeft;
 document.all(this.Block2).innerHTML=document.all(this.Block1).innerHTML;
}
function NetMarquee_moveUp()
{
 if (document.all(this.Block).scrollTop>=document.all(this.Block2).offsetHeight)
  document.all(this.Block).scrollTop-=document.all(this.Block1).offsetHeight;
 else
  document.all(this.Block).scrollTop++;
}
function NetMarquee_moveLeft()
{
 if (document.all(this.Block).scrollLeft>=document.all(this.Block2).offsetWidth)
  document.all(this.Block).scrollLeft-=document.all(this.Block1).offsetWidth;
 else
  document.all(this.Block).scrollLeft++;
}

function NetBlock(blk)
{
 this.shown=blk;
 this.showBlock=NetBlock_showBlock;
}
function NetBlock_showBlock(blk)
{
 document.all(this.shown).style.display="none";
 document.all(blk).style.display="block";
 this.shown=blk;
}
