function validate(IDs) {
	for (i=0; i<IDs.length; i++) {
		if (document.getElementById(IDs[i]).value == "") {
			alert("You cannot leave this field blank.");
			document.getElementById(IDs[i]).focus();
			return false;
		}	
	}
	return true;
}