// JavaScript Document
var  flag=false;  
function  DrawImage(ImgD){  
     var  image=new  Image();  
     image.src=ImgD.src;  
     if(image.width>0  &&  image.height>0){  
       flag=true;  
       if(image.width/image.height>=  200/250){  
         if(image.width>200){      
         ImgD.width=200;  
         ImgD.height=(image.height*200)/image.width;  
         }else{  
         ImgD.width=image.width;      
         ImgD.height=image.height;  
         }  
        // ImgD.alt=image.width+"*"+image.height;  
         }  
       else{  
         if(image.height>250){      
         ImgD.height=250;  
         ImgD.width=(image.width*250)/image.height;            
         }else{  
         ImgD.width=image.width;      
         ImgD.height=image.height;  
         }  
         //ImgD.alt=image.width+"*"+image.height;  
         }  
       }  
} 
//------------------
function chgTDColor(oTD) {
// oTD.style.cursor = "hand";
 if(oTD.style.backgroundColor == "") {
  oTD.style.backgroundColor = "#CB0907";//鼠标移动到表格上时改变背景颜色
  if(oTD.className == "header") {
   oTD.style.color = "#464F86";
  }
 } else {
  oTD.style.backgroundColor = "";
  if(oTD.className == "header") {
   oTD.style.color = "#F1F3FB";
  }
 }
}
