var originalWidth;
var orginalHeight;
var originalsrc; 

function imageEnlarge(myElement,img)
{
	image = myElement.getElementsByTagName("img");
	originalsrc = image[0].src;
	image[0].src = "uploads/pics/" + img;
	originalWidth = image[0].width;
 	originalHeight = image[0].height;
	image[0].removeAttribute('height');
	image[0].removeAttribute('width');
	
}

function imageReduce(myElement,img)
{
	imagediv = this;
	image = myElement.getElementsByTagName("img");
	image[0].width = originalWidth;
	image[0].height = originalHeight;
	image[0].src = originalsrc;
}
