function get_height(date)
{
var rows = document.getElementById('table').getElementsByTagN ame('div');
var h = -1;
var finded = false;
for(var i = 0; i < rows.length; i++)
{
<-->var o = rows[i].getElementsByTagName('div');
<-->for(var j = 0; j < o.length; j++)
{
<--><------>if(o[j].id == 'div_'+date)
{
h = (h == -1)? 0: h;
finded = true;
}
}
if(!finded && (rows[i].className == 'm_l'))
{
h += rows[i].clientHeight*1;
}
if(finded)
{
break;
}
}
return h;
}
|