Jag skulle vilja ha ut bildens orginalstorlek. I detta fall så skriver den ut bilden efter formateringen i "style"
write("<html><body style=\"margin:2px;\"><div style=\"float:right;\"><img id=\"imgp\" src=\""+url+"\" style=\"[b]height: auto; width: 80px;[/b]\">");
write("</div><sc"+"ript>parent.form1.x_y.value='Storlek: '+document.images['imgp'].width+'x'+document.images['imgp'].height;")
write("parent.form1.imgsrc.value='"+url+"';")
write("</sc"+"ript></body></html>");