	function on(image){
		document.images[image].src = '/images/newhome_' + image + "_on.gif";
	}
	function off(image){
		document.images[image].src = '/images/newhome_' + image + "_off.gif";
	}
	function enlarge(image){
		var enlargepage = 'enlarge.asp?image=' + image + '_large.jpg';
		window.open(enlargepage,'enlarge','width=600,height=600');
	}
	function changePage(location){
		if (location != ''){
			var newpage = 'projects_' + location + '.asp';
			window.location = newpage;
		}
	}
	
	function verify(f){
			// Used by forms for validation
			var emptyfields="";

			if (f.Title.selectedIndex==0) {emptyfields+="Title\n";}
			if (f.First_Name.value.length==0) {emptyfields+="First Name\n";}
			if (f.Last_Name.value.length==0) {emptyfields+="Last Name\n";}
			if (f.Job_Title.value.length==0) {emptyfields+="Job Title\n";}
			if (f.Company.value.length==0) {emptyfields+="Company\n";}
			if (f.Address_1.value.length==0) {emptyfields+="Address 1\n";}
			if (f.Address_2.value.length==0) {emptyfields+="Address 2\n";}
			if (f.City.value.length==0) {emptyfields+="City\n";}
			if (f.Country.value.length==0) {emptyfields+="Country\n";}
			if (f.Postcode.value.length==0) {emptyfields+="Postcode\n";}
			if (f.Telephone.value.length==0) {emptyfields+="Telephone\n";}
			if (f.Fax.value.length==0) {emptyfields+="Fax\n";}
			if (f.Email.value.length==0) {emptyfields+="Email address\n";}
			if (f.Enquiry.value.length==0) {emptyfields+="Enquiry\n";}

			if (emptyfields.length>0) {
				var msg="The form was not submitted because the following fields were empty.\n";
				msg+="Please supply these values and re-submit.\n\n";
				msg+=emptyfields;
				
				alert(msg);
				return false;
			} else {
				return true;
			}
		}