function gerarFaq(pagina){	
	$.ajax({
            // Usando metodo Post
            type: 'POST',

            // this.action pega o script para onde vai ser enviado os dados
            url: './ajax/gera_faq.php?random='+unique_requestid(),

            // os dados que pegamos com a função serialize()
            data: {pag: pagina},

            success: function(data){
				$("#faq").html(unescape(data));
            },

            // Se acontecer algum erro é executada essa função
            error: function(txt){
                $('#faq').html("");
            }
        })
	
	// efeito show na div
	$("#faq").show("slow");
}

function unique_requestid() {
	var timestamp = Number(new Date()).toString();
	var random = Math.random() * (Math.random() * 100000 * Math.random() );
	var unique = new String();
	unique = timestamp + random;
	return unique;
}