<!--
var flag=false;
function DrawImage(ImgD,wid){
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>wid){ 
ImgD.width=wid;
ImgD.height=(image.height*wid)/image.width;
}else{
ImgD.width=image.width; 
ImgD.height=image.height;
}
}
else{
if(image.height>wid){ 
ImgD.height=wid;
ImgD.width=(image.width*wid)/image.height; 
}else{
ImgD.width=image.width; 
ImgD.height=image.height;
}
}
}
} 

function DrawImage3(ImgD,wid,hei){
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>wid){ 
ImgD.width=wid;
ImgD.height=(image.height*wid)/image.width;
}else{
ImgD.width=image.width; 
ImgD.height=image.height;
}
}
else{
if(image.height>hei){ 
ImgD.height=hei;
ImgD.width=(image.width*hei)/image.height; 
}else{
ImgD.width=image.width; 
ImgD.height=image.height;
}
}
}
} 

function DrawImage4(ImgD,wid){
var image=new Image();
image.src=ImgD.src;
if(image.width>0 && image.height>0){
flag=true;
if(image.width>wid){ 
ImgD.width=wid;
ImgD.height=(image.height*wid)/image.width;
}else{
ImgD.width=image.width; 
ImgD.height=image.height;
}
}
} 

        function ZoomImg(o) 
        { 
            var zoom = parseInt(o.style.zoom, 10) || 100; 
            zoom += event.wheelDelta / 12; 
            if(zoom > 0) 
                o.style.zoom = zoom + '%'; 
            return false; 
        } 
//-->
