function time(){
  var a =  new Date();  
  a  = a.getFullYear()   +   "年"   +   (a.getMonth()   +1)   +   "月"+a.getDate()   +   "日 "+a.getHours()+ ":"+a.getMinutes() +":"+a.getSeconds(); document.getElementById("time1").innerHTML = a;
  //alert(a);
  window.setTimeout("time()",1000);
}  
function menuFix() {
 var sfEls = document.getElementById("main_menu_list").getElementsByTagName("li");
 for (var i=0; i<sfEls.length; i++) {
  sfEls[i].onmouseover=function() {
  this.className+=(this.className.length>0? " ": "") + "sfhover";
  }
  sfEls[i].onMouseDown=function() {
  this.className+=(this.className.length>0? " ": "") + "sfhover";
  }
  sfEls[i].onMouseUp=function() {
  this.className+=(this.className.length>0? " ": "") + "sfhover";
  }
  sfEls[i].onmouseout=function() {
  this.className=this.className.replace(new RegExp("( ?|^)sfhover\\b"), 

"");
  }
 }
}

function selectFriendLink(){
  var selectText = document.getElementById("friendLink").options[document.getElementById("friendLink").selectedIndex].value;
  window.open(selectText);
}
