<!--
function showimg(ImgD){
	
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>120){ 
ImgD.width=120;
}else{
ImgD.width=image.width; 
ImgD.height=image.height;
}
}
else{
if(image.height>120){ 
ImgD.height=120;
}else{
ImgD.width=image.width; 
ImgD.height=image.height;
}
}
}
ImgD.style.display="";
}
//-----------------------------------------------------------------------------------



function bigimg(ImgD){
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>270){ 
ImgD.width=270;
}else{
ImgD.width=image.width; 
ImgD.height=image.height;
}
}
else{
if(image.height>270){ 
ImgD.height=270;
}else{
ImgD.width=image.width; 
ImgD.height=image.height;
}
}
}
ImgD.style.display="";

}
//-----------------------------------------------------------------------




function fixpic(Obj)
{var thisvalue=0;
//argument[0]-Obj,[1]-width,[2]-height;
var Objwidth=Objheight=120;
var ObjOrgwidth=Obj.width,ObjOrgheight=Obj.height;
if(arguments.length>1){Objwidth=arguments[1];}
if(arguments.length>2){Objheight=arguments[2];}
var wscale=ObjOrgwidth/Objwidth;
var hscale=ObjOrgheight/Objheight;
if(wscale>1){
if(wscale>hscale){Obj.style.width=Objwidth.toString()+'px';Obj.style.height=parseInt(ObjOrgheight/wscale).toString()+'px';}
else{Obj.style.height=Objheight.toString()+'px';Obj.style.width=parseInt(ObjOrgwidth/hscale).toString()+'px';}
}
else{
if(hscale>1){
if(hscale>wscale){Obj.style.height=Objheight.toString()+'px';Obj.style.width=parseInt(ObjOrgwidth/hscale).toString()+'px';}
else{Obj.style.width=Objwidth.toString()+'px';Obj.style.height=parseInt(ObjOrgheight/wscale).toString()+'px';}
}
}
} 



//-->
