﻿	function ShowNextImage(iPosition, iLength){
		//iPosition = the current position 
		//iLength = number of images in collection
		
		var obj;
		//iterate through the images; if it's the next image then show it,
		//otherwise hide it.
		for (var i = 1; i <= iLength; i++) {
			obj = document.getElementById("image_" + i);
			if (i == (iPosition + 1)) {
				obj.className = "visibleImage";
			} else {
				obj.className = "hiddenImage";
			}
		}

	}
	
	
	function ShowPreviousImage(iPosition, iLength){
		//iPosition = the current position 
		//iLength = number of images in collection
		
		var obj;
		//iterate through the images; if it's the next image then show it,
		//otherwise hide it.
		for (var i = 1; i <= iLength; i++) {
			obj = document.getElementById("image_" + i);
			if (i == (iPosition - 1)) {
				obj.className = "visibleImage";
			} else {
				obj.className = "hiddenImage";
			}
		}

	}

	function GetResults(obj){
		var pc = 1; //assume that project complete is true as a default
		
		location = "/pages/proj_results.aspx?ProjectComplete=" + pc 
			+ "&Region=" + document.forms[0].RegionList.value 
			+ "&ProjectType=" + document.forms[0].ProjectTypeList.value 
			+ "&ProjectSize=" + document.forms[0].ProjectSizeList.value;
	}
