// JavaScript Document

var flag=false;
function AXImg(ximg){
var image=new Image();
var iwidth = 138; //Í¼Æ¬¿í¶È
var iheight = 138; //Í¼Æ¬¸ß¶È
image.src=ximg.src;
if(image.width>0 && image.height>0){
flag=true;
if(image.width/image.height>= iwidth/iheight){
if(image.width>iwidth){ 
ximg.width=iwidth;
ximg.height=(image.height*iwidth)/image.width;
}else{
ximg.width=image.width; 
ximg.height=image.height;
}
//ximg.alt=image.width+"¡Á"+image.height;
}
else{
if(image.height>iheight){ 
ximg.height=iheight;
ximg.width=(image.width*iheight)/image.height; 
}else{
ximg.width=image.width; 
ximg.height=image.height;
}
ximg.alt=image.width+"¡Á"+image.height;
}
}
} 

