function img(a,b,c){
var d=new Image();
d.src=a.src
var e=d.width
var f=d.height
if (e>b || f>c){

if (e/f>b/c){
f=f*b/e;
e=b;}else{
e=e*c/f;
f=c;
}
a.width=e;
a.height=f;
}
}
function imgerr(a){
a.style.display="none"
}