function ItemCarrinho(){
	
	var opcoesVoos,	//array de opcoes, para possibilitar a selecao de mais de um voo por aba
		sourceCode,
	    abaId, tarifar;
	
	this.addOpcao = function (value){

		opcoesVoos = value;
	};
	
	this.delOpcao = function (){
		opcoesVoos = -1;
	};
	
	this.getOpcoes = function(){
		return opcoesVoos;
	};
	
	this.addOpcaoSource = function (value){

		opcoesVoos = value[0];
		sourceCode = value[1];
	};
	
	this.delOpcaoSource = function (){
		opcoesVoos = -1;
		sourceCode = "";
	};
	
	this.getOpcoesSource = function(){
		return [opcoesVoos, sourceCode];
	};
	
	this.setAbaId = function(value){
		abaId = value;
	};
	
	this.getAbaId = function(){
		return abaId;
	};
	
	this.getTarifar = function(index){
		return ($('chkTarifar_' + abaId + '_' + opcoesVoos) != null && $('chkTarifar_' + abaId + '_' + opcoesVoos).checked);
	};
	
	this.carrinhoVazio = function(){
		return (opcoesVoos == -1);
	};
	
	this.constructor = new function(){
        opcoesVoos = -1;
	};
	
};

/*
function ItemCarrinho(){
	
	var codOpcaoVoo,//-1 se n�o tiver nada selecionado
	abaId,
	tarifar;
	
	this.setOpcao = function (value){
		codOpcaoVoo = value;
	}
	
	this.getOpcao = function (){
		return codOpcaoVoo;
	}
	
	this.setAbaId = function(value){
		abaId = value;
	}
	
	this.getAbaId = function(){
		return abaId;
	}
	
	this.getTarifar = function(){
		return ($('chkTarifar_' + abaId + '_' + codOpcaoVoo) != null && $('chkTarifar_' + abaId + '_' + codOpcaoVoo).checked);
	}
	
	this.carrinhoVazio = function(){
		return (codOpcaoVoo == -1);
	}
	
	this.constructor = new function(){
		codOpcaoVoo = -1;
	};
	
};*/
