function show(obj){
var flag=true;
restoreStyles();
var peppino=true;
if(isBlank(obj.form.blob.value))return false;
if(!test(obj.form.blob.value))return false;
var imgWidth=myImg.width;
var imgHeight=myImg.height;
var bites=operate(divide,myImg.fileSize,1024);
if(parseInt(bites)>maxWeight){dimgWeight.style.col or="red";dimgWeight.style.fontWeight="bold";peppin o=false;}
alert(imgWidth); <!--QUA CONTROLLO LA LARGHEZZA DELL'IMMAGINE
if(imgWidth!=maxWidth){
imgDisplay.style.borderTopColor=imgDisplay.style.b orderBottomColor="red";
imgDisplay.style.borderTopWidth=imgDisplay.style.b orderBottomWidth="3px";
dimgWidth.style.color="red";dimgWidth.style.fontWe ight="bold";
peppino=false;
}
if(imgHeight!=maxHeight){
imgDisplay.style.borderLeftColor=imgDisplay.style. borderRightColor="red";
imgDisplay.style.borderLeftWidth=imgDisplay.style. borderRightWidth="3px";
dimgHeight.style.color="red";dimgHeight.style.font Weight="bold";
peppino=false;
}
dimgWeight.innerHTML=parseInt(bites)+" Kb";
dimgWidth.innerHTML=imgWidth+" px";
dimgHeight.innerHTML=imgHeight+" px";
if(imgWidth<151){imgDisplay.innerHTML="[img]"+myImg.src+"[/img]";}
else{imgDisplay.innerHTML="[img]"+myImg.src+"[/img]";}
if(peppino){obj.form.test.value="ok";obj.form.Subm it.style.visibility="visible";}
else{alert('Immagine fuori parametri');obj.form.test.value="ko";obj.form.Subm it.style.visibility="hidden"; return false;}
return true;
}