// JavaScript Document

function checkDupe(input, form, name, length) {
	for(var x = 1; x <= length; x++) {
		if(form[name + x] != input && form[name + x].value == input.value && input.value != "") {
			alert("Duplicate entry!");
			input.value = "";
			break;
		}
	}
}