function scaleImg(imgId, scaleBy) {
	var image = document.getElementById(imgId);
	image.width = image.width * scaleBy;
	image.height = image.height * scaleBy; 
	if ( image.useMap != null & image.useMap != '') {
		var mapId = image.useMap.substring(1, image.useMap.length);
		
		var imageMap = document.getElementById(mapId);
		if (imageMap != null) {
			var as = imageMap.getElementsByTagName("area");

			for (a in as) {
				var area = as[a];
				if ( area.coords != null ) {
					var scaledCoords = "";
					var scaledCoordsArray = area.coords.split(",");
					for (i = 0; i < scaledCoordsArray.length; i++) {
						scaledCoords += scaledCoordsArray[i] * scaleBy;
						if (i != scaledCoordsArray.length -1) {
							scaledCoords += ",";
						}
					}
					area.coords = scaledCoords;
				}
			}
		}
	}
}

function linkto(destination) {
	window.opener.location.href=destination;
	// window.close();
}
