/**

	config.js
	Descrição: Arquivo com configurações dos templates
	© 2006 - Direct Talk Comércio e Tecnologia Ltda
	*/
	
	var DTvalidateConfig = {
	"elements" :
		[
			{
				"id" : "nome_usuario",
				"feedback" : "O campo nome está vazio.",
				"validationType" : "texto",
				"failureFeedback" : "Não é correto colocar números ou caracteres especiais no nome de usuário"
			},
			{
				"id" : "cpf",
				"feedback" : "O campo cpf está vazio.",
				"validationType" : "cpf",
				"failureFeedback" : "CPF inserido é inválido"
			},
			{
				"id" : "telefone",
				"feedback" : "O campo telefone está vazio."
			},
			{
				"id" : "email",
				"feedback" : "O campo email está vazio.",
				"validationType" : "email",
				"failureFeedback" : "O E-maim inserido está incorreto"
			}
		],
	"options" :
		{
		"err_frase":"Ocorreram #total_err# erros na validação:",
		"classDefault" : "text",
		"classError" : "textErro",
		"submitButtom" : "submit",
		"onComplete" : function(){ 
			
			}
		}
	};
	
	var myDTvalidate 	= new DTvalidate(DTvalidateConfig);
		
	$(document).ready(function(){
		$("input#cpf")
		//.maskedinput("999.999.999-99")
		.bind("blur", function(){
			var fkValue 	= $(this).val();
			$("input#cpf").val(fkValue.replace(/[\.\-]/gi, ""));
		});
		
		$("input#telefone")
		.maskedinput("(99) 9999-9999")
		.bind("blur", function(){
			var fkValue 	= $(this).val();
			$("input#telefone").val(fkValue.replace(/[\(\)\-]/gi, ""));
		});
		
		$("input#nome_usuario").get(0).focus();
	});
