var Orcamento = new Class({	
	regraQtdParada: function(obj)
	{		
		var comando = $('form_comando').value;
		
		if(comando == 0)
				alert('Selecione o Comando Infolev');
		else if(comando.indexOf("GENIUS") != -1 || comando.indexOf("IFL") != -1 )
		{
			if(obj>32 )
				alert('Valor máximo é 32');
		
		}
		
		else if(comando.indexOf("JR") != -1)
		{
			if(obj>9 )
				alert('Valor máximo é 9');
		
		}
		else
		{
			if(obj <2)
				alert('Número de paradas não pode ser 0 (zero) ou 1 (um)');
		}
		
		
		
	},	
	regraTensao: function(obj)
	{
		$('form_tensao').value=obj;
	},
	
	getIndicador: function(obj)
	{		
		var path = this.options.base_url + 'img_system/indicador/' + obj + 'jpg';
		$('img_form_1').innerHTML = '<img src="' + path + ' "border="0"/>';
		$('img_form_1').style.height = '100%';
	}
});