var bytevalue=0 var devider=10000 var minsize=1048576 var immagesize=""
function calculate(){ var invalue=document.webbie.original.value*devider var selectunit=document.webbie.units.options[document.webbie.units.selectedIndex].value if (selectunit=="Bytes") bytevalue=invalue else if (selectunit=="Kb") bytevalue=invalue*1024 else if (selectunit=="Mb") bytevalue=invalue*1024*1024 else if (selectunit=="Gb") bytevalue=invalue*1024*1024*1024
if (bytevalue/devider==minsize)
immagesize="Uw photo is groot genoeg"
else if (bytevalue/devider>=minsize/2)
immagesize="Uw photo is mogelijk niet groot genoeg"
else if (bytevalue/devider