function checkTodos( idForm , check )
	{
		var objForm 	= document.getElementById( idForm );
		var tagInput	= objForm.getElementsByTagName('input');
		var tm			= tagInput.length;
		
		for( i=0 ; i < tm ; i++ )
		{
			if( tagInput[i].name.substr(0,3) == 'opc' )
				switch ( tagInput[i].value )
				{
					case 'Alarme': case 'Direção hidráulica': case 'Travas elétricas': case 'Vidros elétricos':
						tagInput[i].checked = check;
						break;
				}
			
		}
	}
	function checkCompleto( obj )
	{
		var objCompleto = document.getElementById( 'opc01' );
		if( objCompleto.checked != '' && !obj.checked ) objCompleto.checked = false;
	}
	function campoCompleto()
	{
		var ano 		= document.getElementById( 'ano' );
		var modelo_ano	= document.getElementById( 'modelo_ano' );
		var msg = '';
		
		if( ano != null && ano.value.length != 4 ) msg = 'O campo ano deve conter 4 digitos.\n';
		if( modelo_ano != null && modelo_ano.value.length != 4 ) msg += 'O campo modelo ano deve conter 4 digitos.';
		
		if( msg == '' ) return true;
		else
		{
			alert( msg );
			return false;
		}
	}