// JavaScript Document

function widthheightimage(myImage)
{
	var newImg = new Image();
	newImg.src = myImage;
	var count = 0;
	while(count>10)
	{
		count++;
	}
	var x = newImg.width;
	var y = newImg.height;
	
	if(x>0)
	{
		var xnew = 120;
		var ynew = parseInt((120/x)*y);
		document.write('<img border="0" src="'+myImage+'" width="'+xnew.toString(10)+'" height="'+ynew.toString(10)+'" style="margin-top:10px; margin-right:10px; margin-bottom:10px;"/>');
	} else {
		var ynew = 0;
		var xnew = 0;
		document.write('<img border="0" src="'+myImage+'" width="'+xnew.toString(10)+'" height="'+ynew.toString(10)+'" style="margin-top:10px; margin-right:10px; margin-bottom:10px;"/>');
	}
}
