// JavaScript Document
var flashvars={}
var params={
menu:"false",
quality:"autohigh",
wmode:"opaque",
allowfullscreen:"true",
allowscriptaccess:"always",
allownetworking:"all"
}
var attributes={
id:"flashPlayer",
name:"flashPlayer"
}
swfobject.embedSWF("/flash/top.swf","TopFlash","988","203","9.0.0","/flash/expressInstall.swf",flashvars,params,attributes);

var flashvars={}
var params={
menu:"false",
quality:"autohigh",
wmode:"opaque",
allowfullscreen:"true",
allowscriptaccess:"always",
allownetworking:"all",
FlashVars:"xml=/ChangePic/61.xml"
}
var attributes={
id:"flashPlayer",
name:"flashPlayer"
}
swfobject.embedSWF("/flash/bcastr.swf","ChangePic","306","287","9.0.0","/flash/expressInstall.swf",flashvars,params,attributes);

//日期
today=new Date();
var hours = today.getHours();
var minutes = today.getMinutes();
var seconds = today.getSeconds();

var timeValue = "" + ((hours >12) ? hours -12 :hours); timeValue += ((minutes < 10) ? ":0" : ":") + minutes+"";
timeValue += (hours >= 12) ? "pm" : "am";
function initArray()
{
this.length=initArray.arguments.length
for(var i=0;i<this.length;i++)
this[i+1]=initArray.arguments[i]  
}
function showdate()
{
var d=new initArray("星期日","星期一","星期二","星期三","星期四","星期五","星期六"); 
document.getElementById("DateBox").innerHTML="<span>"+today.getFullYear()+"年"+""+(today.getMonth()+1)+"月"+""+today.getDate()+"日</span><span>"+d[today.getDay()+1]+"</span>";
}

function ShowLabel(me)
{
  var oLabel=document.getElementById("label").childNodes;
  var oContentBox=document.getElementById("content").childNodes;
  var cont=-1;
  for(var i=0;i<oLabel.length;i++)
  {
    if(oLabel[i].nodeType==1)
    {
      cont++;
      if(cont!=me)
      {
        oLabel[i].setAttribute("class","");
        oLabel[i].attributes.getNamedItem("class").nodeValue="";
        oContentBox[i].setAttribute("class","");
        oContentBox[i].attributes.getNamedItem("class").nodeValue="";
      }else{
        oLabel[i].setAttribute("class","current");
        oLabel[i].attributes.getNamedItem("class").nodeValue="current";
        oContentBox[i].setAttribute("class","show");
        oContentBox[i].attributes.getNamedItem("class").nodeValue="show";
      }
    }
  }
}

function CheckForm()
{
    if(document.getElementById("keyword").value=="")
    {
        var myclertTip=new Tips("操作提示","检索关键字不能为空！",40,"form");
        myclertTip.Showtips();
        return false;
    }
}