var imgState; 
var imgWidth; 
var imgHeight;

/*
function imageResize(theImage){ 
document.getElementById(theImage).style.display = 'inline';
imgWidth = document.getElementById(theImage).width; 
imgHeight = document.getElementById(theImage).height;
if (imgWidth > 700 || imgHeight > 500) 
	{
	imgWidth = eval(imgWidth/2); 
	imgHeight = eval(imgHeight/2);
	document.getElementById(theImage).width = imgWidth; 
	document.getElementById(theImage).height = imgHeight;
	document.getElementById('resizeicon').style.display = 'inline';
	imgState = 'small'; 
	}
}
*/

function changeImageSize(thisImage){ 
if(imgState == 'small'){ 
imgWidth = document.getElementById(thisImage).width; 
imgHeight = document.getElementById(thisImage).height;
imgWidth = eval(imgWidth*2); 
imgHeight = eval(imgHeight*2);
document.getElementById(thisImage).width = imgWidth; 
document.getElementById(thisImage).height = imgHeight;
imgState = 'large';
document.getElementById('resizeicon').style.display = 'none'; 
}else{ 
imgWidth = document.getElementById(thisImage).width; 
imgHeight = document.getElementById(thisImage).height;
imgWidth = eval(imgWidth/2); 
imgHeight = eval(imgHeight/2);
document.getElementById(thisImage).width = imgWidth; 
document.getElementById(thisImage).height = imgHeight;
imgState = 'small';
document.getElementById('resizeicon').style.display = 'inline'; 
} 
} 
