// javascript document @charset "utf-8"; var flag=false; function drawimage1(imgd){ var image=new image(); image.src=imgd.src; if(image.width>0 && image.height>0){ flag=true; if(image.width/image.height>=150/120){ if(image.width>150){ imgd.width=150; imgd.height=(image.height*150)/image.width; }else{ imgd.width=image.width; imgd.height=image.height; } } else{ if(image.height>120){ imgd.height=120; imgd.width=(image.width*120)/image.height; }else{ imgd.width=image.width; imgd.height=image.height; } } } } var flag=false; function drawimage3(imgd){ var image=new image(); image.src=imgd.src; if(image.width>0 && image.height>0){ flag=true; if(image.width/image.height>=358/320){ if(image.width>358){ imgd.width=358; imgd.height=(image.height*358)/image.width; }else{ imgd.width=image.width; imgd.height=image.height; } } else{ if(image.height>320){ imgd.height=320; imgd.width=(image.width*320)/image.height; }else{ imgd.width=image.width; imgd.height=image.height; } } } } var flag=false; function drawimage4(imgd){ var image=new image(); image.src=imgd.src; if(image.width>0 && image.height>0){ flag=true; if(image.width/image.height>=400/380){ if(image.width>400){ imgd.width=400; imgd.height=(image.height*400)/image.width; }else{ imgd.width=image.width; imgd.height=image.height; } } else{ if(image.height>380){ imgd.height=380; imgd.width=(image.width*380)/image.height; }else{ imgd.width=image.width; imgd.height=image.height; } } } }