function doChangeAD(e) { var i=1; var j; document.getElementById('div_separator').style.display = 'block'; for (i=1;i<=7;i++) { if (i!=e) { document.getElementById('div_'+i+'_text').style.display = 'none'; document.getElementById('div_'+i+'_c').style.display = 'none'; document.getElementById('div_'+i).style.display = 'block'; if(document.getElementById('div_'+i+'_arr_on')!=null) document.getElementById('div_'+i+'_arr_on').style.display = 'none'; if(document.getElementById('div_'+i+'_arr_off')!=null) document.getElementById('div_'+i+'_arr_off').style.display = 'block'; } else { j=i-1; document.getElementById('div_'+i+'_text').style.display = 'block'; document.getElementById('div_'+i+'_c').style.display = 'block'; document.getElementById('div_'+i).style.display = 'none'; if(document.getElementById('div_'+i+'_arr_on')!=null) document.getElementById('div_'+i+'_arr_on').style.display = 'block'; if(document.getElementById('div_'+j+'_arr_on')!=null) document.getElementById('div_'+j+'_arr_on').style.display = 'block'; if(document.getElementById('div_'+i+'_arr_off')!=null) document.getElementById('div_'+i+'_arr_off').style.display = 'none'; if(document.getElementById('div_'+j+'_arr_off')!=null) document.getElementById('div_'+j+'_arr_off').style.display = 'none'; } } SetTblTpHeight(); }