function ResizeImage_Special(img,w,h)
{
		var image=new Image();
        image.src=img.src;

		var iw=image.width;
		var ih=image.height;
		var iratio=iw/ih;
        
        if(iw>w)
		{
                iw=w;
				ih=w/iratio;
        }
        if(ih>h)
		{
                ih=h;
                iw=h*iratio;
        }  
		img.width=iw;
		img.height=ih;
}


function ResizeImage(img)
{		
    ResizeImage_Special(img, 200, 200);
}


function ChangeView(obj)
{
    document.all.imgProductInfo.src = obj.src;
}
