// FORM FIELD FUNCTIONS //
function focusField(obj){
	obj.style.backgroundColor = '#efcb91';
}
function blurField(obj){
	obj.style.backgroundColor = '#cfb182';
}
function checkForData(id){
	obj = document.getElementById(id);
	var error = document.getElementById(id+'-alert');
	
	if(obj.value == ''){
		error.style.display = 'inline';
		return false;
	}else{
		error.style.display = 'none';
		return true;
	}
}
function validateEmail(id){
	var email = document.getElementById(id).value;
	var valid = (email.indexOf(".") > 2) && (email.indexOf("@") > 0);
	var error = document.getElementById(id+'-alert');
	if(valid == false){
		error.style.display = 'inline';
		return false;	
	}else{
		error.style.display = 'none';
		return true;
	}
}
// END FORM FIELD FUNCTIONS //
