function VerifyTabLogin(f) {
	// set up params
	var ErrorString  = "";
	var inverr = document.getElementById('tab-eml-invalid').style;
	var emlerr = document.getElementById('tab-eml-error').style;
	var pwerr  = document.getElementById('tab-pw-error').style;
	inverr.display = 'none';
	emlerr.display = 'none';
	pwerr.display = 'none';
	
	if (isBlank(f['E-mail'])) { 
		ErrorString += "\n - Email Address is required"; highlight_errors(f['E-mail']);	
		emlerr.display = 'inline';
	}
	else if (!isBlank(f['E-mail']) && testSimpleEmail(f['E-mail'])) {
		ErrorString += "\n - Email Address is formatted improperly";
		highlight_errors(f['E-mail']);
		inverr.display = 'inline';
	}
	if (isBlank(f.Password)) { 
		ErrorString += "\n - Password is required"; highlight_errors(f.Password); 
		pwerr.display = 'inline';
	}
	if (ErrorString.length > 0) return false;
	return true;
	
}
function highlight_errors(Ctrl) {
    var errorColor = ["#FDF4F4","#990000"];
	Ctrl.style.backgroundColor=errorColor[0];
	Ctrl.style.borderColor=errorColor[1];
}

