<!--


function DrawImage(ImgD){

var flag=false;
var picwidth=128
var picheight=210
var wh=picwidth/picheight

var image=new Image();
image.src=ImgD.src;
if(image.width>0 && image.height>0){
flag=true;
if(image.width/image.height>= wh){
if(image.width>picwidth){ 
ImgD.width=picwidth;
ImgD.height=(image.height*picwidth)/image.width;
}else{
ImgD.width=image.width; 
ImgD.height=image.height;
}
}
else{
if(image.height>picheight){ 
ImgD.height=picheight;
ImgD.width=(image.width*picheight)/image.height; 
}else{
ImgD.width=image.width; 
ImgD.height=image.height;
}
}
}
} 


function ShowImage(ImgD){

picwidth=750
var image=new Image();
image.src=ImgD.src;
if(image.width>0 && image.height>0){
flag=true;

if(image.width>picwidth){ 
ImgD.width=picwidth;
ImgD.height=(image.height*picwidth)/image.width;
}else{
ImgD.width=image.width; 
ImgD.height=image.height;
}

}
} 


/////////////


function DrawImage_sm(ImgD){

var flag=false;
var picwidth=150
var picheight=115
var wh=picwidth/picheight

var image=new Image();
image.src=ImgD.src;
if(image.width>0 && image.height>0){
flag=true;
if(image.width/image.height>= wh){
if(image.width>picwidth){ 
ImgD.width=picwidth;
ImgD.height=(image.height*picwidth)/image.width;
}else{
ImgD.width=image.width; 
ImgD.height=image.height;
}
}
else{
if(image.height>picheight){ 
ImgD.height=picheight;
ImgD.width=(image.width*picheight)/image.height; 
}else{
ImgD.width=image.width; 
ImgD.height=image.height;
}
}
}
} 
//-->