<!--
			function replaceMainImage(newImageFile, currentAnchor) {
				if(document.getElementById) {
					document.getElementById('mainImage').src = newImageFile;
					// Clear the id of the previous thumbnail 
					document.getElementById('thumbSelected').id = "";
					// Change the id of the new one to thumbSelected
					currentAnchor.firstChild.id = "thumbSelected";
					//Change the image title
					// Perform the php baseImageName function in JavaScript!
					// Strip the '_D.jpg' from the filename
					var newTitle = newImageFile.split("_D.")[0];
					var startLocation = newTitle.lastIndexOf("/") + 1;
					newTitle = newTitle.slice(startLocation);
					// Replace underscores with blanks
					newTitle = newTitle.replace(/_/g, " ");
					document.getElementById("imageTitle").firstChild.nodeValue = newTitle;
				}
				else {
					alert('These pages require JavaScript in your browser to display correctly');
					return false;
				}
			}
			
			function check_email(mailField, msg1) {
				mail_exp = /^[A-z0-9\._-]+@[A-z0-9][A-z0-9-]*(\.[A-z0-9_-]+)*\.([A-z]{2,6})$/;
				entered = document.getElementById(mailField).value;
				if (mail_exp.test(entered)) {  
					return true;  //entered email is ok
				}
				else {
					// bad email
					document.getElementById(msg1).style.display = "";
					document.getElementById(mailField).focus();
					document.getElementById(mailField).select();
					return false;
				}					
			}
			
			function write_email(name, domain) {
			var person = name;
			var where = domain;
			var between = '@';
			var display = "email";
			document.write('<a href="mai' + 'lto:' + person + between + where + '.com' + '">');
			document.write(display + '</a>');
			}
			
			function write_year() {
				var d = new Date();
				document.write(d.getFullYear());
			}
			
			//-->

