function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function winopen(url)                    
     {                    
        window.open(url,"search","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=769,height=580,top=0,left=0");                    
      }
	  
function high(image)
{
theobject=image
highlighting=setInterval ("highlightit(theobject)",100)
}
function low(image)
{
clearInterval(highlighting)
image.filters.alpha.opacity=90
}
function highlightit(cur2)
{
if (cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=20
else if (window.highlighting)
clearInterval (highlighting)
}

function WriteDate()
{
	var today=new Date; 
var week=new Array(7); 
week[0]="天"; 
week[1]="一"; 
week[2]="二"; 
week[3]="三"; 
week[4]="四"; 
week[5]="五"; 
week[6]="六"; 
  if (window.navigator.userAgent.indexOf("MSIE")>=1)  //如果浏览器为IE
  {
    document.write((today.getYear())+"年"+(today.getMonth()+1)+"月"+today.getDate()+"日 星期"+week[today.getDay()]);
  }
  else //如果浏览器为Firefox
  {
    document.write((today.getYear()+1900)+"年"+(today.getMonth()+1)+"月"+today.getDate()+"日 星期"+week[today.getDay()]);
  }
}

function SetCwinHeight(){
var bobo=document.getElementById("subhtml"); //iframe id
if (document.getElementById){
   if (bobo && !window.opera){
    if (bobo.contentDocument && bobo.contentDocument.body.offsetHeight){
     bobo.height = bobo.contentDocument.body.offsetHeight;
    }else if(bobo.Document && bobo.Document.body.scrollHeight){
     bobo.height = bobo.Document.body.scrollHeight;
    }
   }
}
}
