			var hideShowStatus = 0;

			function chooseDay(month) {
				document.location = 'chooseDay.php?month=' + month;
			}

			function showVolumes(day) {
				document.location = 'showVolumes.php?day=' + day;
			}

			function browse() {
				document.location = 'browse.php';
			}

			function search() {
				document.location = 'search.php';
			}

			function validateSearch() {
				if(document.getElementsByName('surname')[0].value.length > 0) {
					return true;
				}
				else {
					alert('Please enter a Surname to continue.');
					return false;
				}
			}

			function loadPage(page) {
				//document.getElementById('fullPage').innerHTML = '<img src="' + page + '" width="990" height="1478">';
				//document.getElementById('fullPage').innerHTML = '<img src="' + page + '" width="1200" height="1792">';
				document.getElementById('pageImage').innerHTML = '<img src="' + page + '" width="100%">';
			}

			function hideShow() {
				if(hideShowStatus == 0) {
					document.getElementById('thumbsGallery').style.display = 'none';
					document.getElementById('fullPage').style.width = '700px';
					document.getElementById('hideShow').innerHTML = '<span class="menu">Show Thumbnails</span>';
					hideShowStatus = 1;
				}
				else {
					document.getElementById('thumbsGallery').style.display = 'block';
					document.getElementById('fullPage').style.width = '420px';
					document.getElementById('hideShow').innerHTML = '<span class="menu">Hide Thumbnails</span>';
					hideShowStatus = 0;
				}
			}

			/* Image Resize Function */
			var scalePhotos;

			function scaleIt(v) {
				if(scalePhotos == null) {
					scalePhotos = document.getElementsByClassName('scale-image');
				}

				floorSize = .226;
				ceilingSize = 1.0;
				v = floorSize + (v * (ceilingSize - floorSize));

				for(i = 0; i < scalePhotos.length; i++) {
					// Set the v*x variable to the maximum size you want the images to zoom e.g. 1200px
					scalePhotos[i].style.width = (v*1200) + 'px';
				}
			}