
/* getElementById bug fixing in IE and Opera.
 * Attention: needs to be carefull with forms..
 * Author: Andrian Zubko <ondr@mail.ru>
 */

if (document.all) {
document._getElementById = document.getElementById;
document.getElementById = function (id)
{
var element  = this._getElementById(id);
if (element != null) {
if (element.id == id) {
return element;
}
else {
for (var i = 0; i < this.all.length; ++i) {
if (this.all[i].id == id) {
return this.all[i];
}
}
}
}
return null;
}
}

