// 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>=  140/210){  
         if(image.width>140){      
         ImgD.width=140;  
         ImgD.height=(image.height*140)/image.width;  
         }else{  
         ImgD.width=image.width;      
         ImgD.height=image.height;  
         }  
        // ImgD.alt=image.width+"*"+image.height;  
         }  
       else{  
         if(image.height>210){      
         ImgD.height=210;  
         ImgD.width=(image.width*210)/image.height;            
         }else{  
         ImgD.width=image.width;      
         ImgD.height=image.height;  
         }  
        // ImgD.alt=image.width+"*"+image.height;  
         }  
       }  
}    


var  flagbb=false;  
function  bb(ImgDbb){  
     var  imagebb=new  Image();  
     imagebb.src=ImgD.src;  
     if(imagebb.width>0  &&  imagebb.height>0){  
       flagbb=true;  
       if(imagebb.width/imagebb.height>=  300/300){  
         if(imagebb.width>300){      
         ImgDbb.width=300;  
         ImgDbb.height=(imagebb.height*300)/imagebb.width;  
         }else{  
         ImgDbb.width=imagebb.width;      
         ImgDbb.height=imagebb.height;  
         }  
        // ImgDbb.alt=imagebb.width+"*"+imagebb.height;  
         }  
       else{  
         if(imagebb.height>300){      
         ImgDbb.height=300;  
         ImgDbb.width=(imagebb.width*300)/imagebb.height;            
         }else{  
         ImgDbb.width=imagebb.width;      
         ImgDbb.height=imagebb.height;  
         }  
        // ImgDbb.alt=imagebb.width+"*"+imagebb.height;  
         }  
       }  
}


function chgTDColor(oTD) {
// oTD.style.cursor = "hand";
 if(oTD.style.backgroundColor == "") {
  oTD.style.backgroundColor = "#575757";//鼠标移动到表格上时改变背景颜色
  if(oTD.className == "header") {
   oTD.style.color = "#464F86";
  }
 } else {
  oTD.style.backgroundColor = "";
  if(oTD.className == "header") {
   oTD.style.color = "#F1F3FB";
  }
 }
}

window.status='welcome to visite fashionholder.com';
