//vrací objekt podle id podle dostupnosti kolekcí
function get_id_object(object_name)
{
 var html_object;
 if (document.all) {
  html_object = document.all[object_name];
 }
 else if (document.getElementById(object_name)) {
  html_object = document.getElementById(object_name);
 }
 return html_object;
}