Hi, this script work im Crhome, but not in IE, or Firefox, please help me!!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>teste</title>
<script>
function idade(object, birthDay){
now = new Date();
bD = birthDay.value.split('/');
if(bD.length==3){
born = new Date(bD[2], bD[1]*1-1, bD[0]);
years = new Date(now.getTime() - born.getTime());
base = new Date(0);
document.all['AGE'].value = years.getFullYear()-base.getFullYear();
}
}
</script>
</head>
<body>
<form action="" method="post" name="form">
<table>
<tr>
<td>
<input name="datanascimento" type="text" style="width:100%" onChange="idade(this.form, this);"/>
<input name="AGE" type="text" style="width:100%">
</td>
</tr>
</table>
</form>
</body>
</html>