function validate(formname, field, msgtext){
	var input = field.value;
	input = input.replace(" ", "");
	msgtext = msgtext.toUpperCase();

	if (input == ""){
    	alert("You did not enter a " + msgtext + ".\n\n" +
			"Please specify a " + msgtext + " and resubmit\n" +
			"this form.");
		field.focus();
	}
	else{
		formname.submit();
	}
}

function checkInput(formname, field, msgtext){
	var input = field.value;
	input = input.replace(" ", "");
	if (input == ""){
		alert("Please Enter Your " + msgtext);
		field.focus();
		return false;
	}
	else {
		formname.submit();
	}
}

function setFocus(field){
	field.focus();
}
