function rectif()
{for(i=0; i<document.images.length; i++)
{img = document.images[i]
imgName = img.src.toUpperCase()
if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
{imgSC = (img.src) ? "src='" + img.src + "' " : ""
imgAL = (img.alt) ? "alt='" + img.alt + "' " : ""
imgID = (img.id) ? "id='" + img.id + "' " : ""
imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
str = "stroked=t"

str = "stroked=f"
a = "<v:image " + str + " strokeweight=" + img.border*75/100 + "pt "
b = "/>"
pngimag= imgID + imgSC + "style='" + "width:" + img.width + "px;height:" + img.height + "px'" + imgAL + imgTitle
img.outerHTML = a + pngimag + b
i = i-1}}}
window.attachEvent("onload",rectif)


