function autoFill()
{
	var inputs = document.getElementById('auto-fill').getElementsByTagName('INPUT'), i, input;
	for(i=0; i<inputs.length; i+=1)
	{
		input = inputs[i];
		if (input.getAttribute('type') == 'text' && input.value !== '') {
			mascara(input, CNPJ);
		}
	}
}

window.onload = function() { if(document.getElementById('auto-fill')) autoFill(); };

