	function redondearPrecio(precio)
	{
		return Math.round(precio*100)/100;// 2 decimales
	}

	function mostrarPrecio(valor)
	{
		var str = '' + valor;
		var pos = str.indexOf('.');
		if (pos >= 0)
		{
			var resto = str.length - (pos + 1);
			if (resto == 1)
				str += '0';
			else if (resto == 0)
				str += '00';
		}
		else
			str += '.00';
			
		return str;
	}

	function checkIntegerField(field)
	{
		if (!isNumeric(field.value))
		{
			field.focus();
			alert('El valor no es correcto.');
		}
	}
	
	function checkCUIT(str)
	{
		// debe ser: 99-99999999-9
		var pattern = /(\d\d\-\d\d\d\d\d\d\d\d\-\d)$/; // 99-123456789-1
		if (!pattern.test(str))
		{
			return false;
		}
		return true;
	}
