var m_go=false; 
function odkaz() {
if ((elem=event.srcElement)&&!m_go) {
 typ=elem.id.substr(0,2);
 if ((typ=='t_')||(typ=='c_')) {
  m_go=true; window.location = document.all['a_'+elem.id.substr(2,10)].href;
 }
 else if (typ=='a_') m_go=true;
}}  

function src(co, i) {
 document.images['btn_'+co].src='obrazky/tisk/'+co+i+'.gif';
}
function tisk(co) {
 t_win=window.open('?co='+co+'&tisk=1');
 t_win.print();
}

function insert_obj(co, slide, krok) {
 document.write("<iframe src='lekce.php?co="+co+"&slide="+slide+"&krok="+krok+"&reqid="+Math.random()+"' id=tl_lekce name=tl_frame>");
// document.write("<iframe src='http://z-i/chess/lekce.php?co="+co+"&slide="+slide+"&krok="+krok+"&reqid="+Math.random()+"' id='tl_frame' name='tl_frame'>");
// document.write("<iframe src='http://i-z/chess/lekce.php?co="+co+"&slide="+slide+"&krok="+krok+"&reqid="+Math.random()+"' id='tl_frame' name='tl_frame'>");
// document.write("<iframe src='http://i-z/chess/trenink/tl/tl2/tl2_"+slide+".htm' id='tl_frame' name='tl_frame'>");
 document.write('Nelze načíst');
 document.write('</iframe>');
}
function getById(id){return document.getElementById(id);}
