<!-- 
//Í¼Æ¬µÈ±ÈÀýËõÍ¼
flag=false
function DrawImage(ImgD)
{ 
   var image=new Image(); 
   image.src=ImgD.src; 
   image.alt=ImgD.alt;
   if(image.width>0 && image.height>0){ 
      flag=true; 
      if(image.width/image.height>= 180/200){ 
         if(image.width>180){ 
            ImgD.width=180; 
            ImgD.height=(image.height*180)/image.width; 
         }else{ 
            ImgD.width=image.width; 
            ImgD.height=image.height; 
         } 
           //ImgD.alt=image.alt+"\n[³ß´ç] "+image.width+"x"+image.height+" ÏñËØ"; 
      }else{ 
         if(image.height>200){ 
           ImgD.height=200; 
           ImgD.width=(image.width*200)/image.height; 
         }else{ 
           ImgD.width=image.width; 
           ImgD.height=image.height; 
         }
		// var lens=image.length;//È¡³¤¶È
        // var extname=strs.substring(lens-4,lens);//È¡Ö¸¶¨Î»ÖÃµÄ×Ó×Ö·û´®
		//if(extname==".jpg")
        // {
        //  ImgD.alt=image.alt+"\n[³ß´ç] "+image.width+"x"+image.height+" ÏñËØ"; 
        // }
      } 
   } 
} 
//--> 



<!-- 
//²úÆ·ÏêÏ¸½éÉÜÍ¼Æ¬µÈ±ÈÀýËõÍ¼
flag=false
function DrawImage1(ImgD)
{ 
   var image=new Image(); 
   image.src=ImgD.src; 
   image.alt=ImgD.alt;
   if(image.width>0 && image.height>0){ 
      flag=true; 
      if(image.width/image.height>= 280/300){ 
         if(image.width>280){ 
            ImgD.width=280; 
            ImgD.height=(image.height*280)/image.width; 
         }else{ 
            ImgD.width=image.width; 
            ImgD.height=image.height; 
         } 
           //ImgD.alt=image.alt+"\n[³ß´ç] "+image.width+"x"+image.height+" ÏñËØ"; 
      }else{ 
         if(image.height>300){ 
           ImgD.height=300; 
           ImgD.width=(image.width*300)/image.height; 
         }else{ 
           ImgD.width=image.width; 
           ImgD.height=image.height; 
         }
		// var lens=image.length;//È¡³¤¶È
        // var extname=strs.substring(lens-4,lens);//È¡Ö¸¶¨Î»ÖÃµÄ×Ó×Ö·û´®
		//if(extname==".jpg")
        // {
        //  ImgD.alt=image.alt+"\n[³ß´ç] "+image.width+"x"+image.height+" ÏñËØ"; 
        // }
      } 
   } 
} 
//--> 

<!-- 
//ËÑË÷µÈ±ÈÀýËõÍ¼
flag=false
function DrawImage2(ImgD)
{ 
   var image=new Image(); 
   image.src=ImgD.src; 
   image.alt=ImgD.alt;
   if(image.width>0 && image.height>0){ 
      flag=true; 
      if(image.width/image.height>= 130/120){ 
         if(image.width>130){ 
            ImgD.width=130; 
            ImgD.height=(image.height*130)/image.width; 
         }else{ 
            ImgD.width=image.width; 
            ImgD.height=image.height; 
         } 
           //ImgD.alt=image.alt+"\n[³ß´ç] "+image.width+"x"+image.height+" ÏñËØ"; 
      }else{ 
         if(image.height>120){ 
           ImgD.height=120; 
           ImgD.width=(image.width*120)/image.height; 
         }else{ 
           ImgD.width=image.width; 
           ImgD.height=image.height; 
         }
		// var lens=image.length;//È¡³¤¶È
        // var extname=strs.substring(lens-4,lens);//È¡Ö¸¶¨Î»ÖÃµÄ×Ó×Ö·û´®
		//if(extname==".jpg")
        // {
        //  ImgD.alt=image.alt+"\n[³ß´ç] "+image.width+"x"+image.height+" ÏñËØ"; 
        // }
      } 
   } 
} 
//--> 