function logDrawingAreaSize(){

	targetViewport = document.getElementById("MasterViewport_area");
	if(targetViewport && targetViewport.offsetHeight != null){
		viewportWidthField = document.getElementById("viewportWidth");
		viewportHeightField = document.getElementById("viewportHeight");

		if(viewportWidthField && viewportHeightField){
			viewportWidthField.value = targetViewport.offsetWidth;
			viewportHeightField.value = targetViewport.offsetHeight;
		}	
	}
}

var intakeImageCache;

function highlightIntake(id){
	targetImage = document.getElementById("outlet_"+id);
	if(targetImage != null){
		intakeImageCache = targetImage.src;
		targetImage.src = "images/pipes/inlet_highlighted.gif";
	}
}

function unHighlightIntake(id){
	targetImage = document.getElementById("outlet_"+id);
	if(targetImage != null){
		targetImage.src = intakeImageCache;
	}
}


