// JavaScript Document
function ControleErros() {
  this.Errors
	Errors = new Array()



	this.add = function (e) {
	  Errors.push(e)
	}
	
	this.verify = function() {
	  return Errors.length
	}

	this.get_last_error = function() {
	  if (Errors.length > 0) {
		var primeiro_erro = Errors[0]
		Errors.length = 0
	  	return primeiro_erro
	  }
	  else
	  	return ""
	}
	
	this.reset_errors = function() {
	  Errors.length = 0
	}
	
	this.remove_last_error = function() {
		//var primeiro_erro = Errors.shift()
		return Errors
	}
}
