//START validation functions

function validate() {
	if (document.copy.your_name.value.length < 1) {
		alert("Please enter your name.");
		document.copy.your_name.focus();
		return false;	
		}
	if (document.copy.contact.value.length < 1) {
		alert("Please enter your contact details.");
		document.copy.contact.focus();
		return false;	
		}
	if (document.copy.material_id.value.length < 1) {
		alert("Please enter the URL of the material.");
		document.copy.material_id.focus();
		return false;	
		}
	if (document.copy.material_use.value.length < 1) {
		alert("Please enter the intended use of the material.");
		document.copy.material_use.focus();
		return false;	
		}
	if (document.copy.publish1.checked == false && document.copy.publish2.checked == false) {
		alert("Please indicate whether the material will be published in whole or part.");
		return false;	
		}
	if (document.copy.altering1.checked == false && document.copy.altering2.checked == false) {
		alert("Please indicate if you will be altering the materials.");
		return false;	
		}

// Is it for a course?
	if (document.copy.course1.checked == false && document.copy.course2.checked == false) {
		alert("Please indicate if the material is for use in a course.");
		return false;	
		}


// Is it for a publication?
	if (document.copy.pub1.checked == false && document.copy.pub2.checked == false) {
		alert("Please indicate if the material is for use in a publication.");
		return false;	
		}

// Delivery method
	if (document.copy.hardcopy1.checked == false && document.copy.hardcopy2.checked == false) {
		alert("Do you acknowledge that costs may be incurred?");
		return false;	
		}
	if (document.copy.website1.checked == false && document.copy.website2.checked == false) {
		alert("Please indicate if access to the material online is sufficient.");
		return false;	
		}
}

