function calcular_idade(data) {


mydate = new Date();

var h = mydate.getDate()+"/"+mydate.getMonth() +1+"/"+mydate.getFullYear();

var x = data.split("/");
h = h.split("/");

anosProvisorio = h[2] - x[2];

if(h[1] < x[1]) {
anosProvisorio -= 1;
}
else if(h[1] == x[1]) {
if(h[0] < x[0]) {
anosProvisorio -= 1;
}
}

return anosProvisorio;
}
