////////////////////////////////////////// // // // Programming by grey@provincebg.ru // // (grey-shadow@yandex.ru) // // // ////////////////////////////////////////// var last_tab=0; open_tabs = new Array(); open_tabs[0]=0; tabs_count=0; hide_flag=false; timer=0; color = new Array(); color[0] = '#F8F8FF'; color[1] = '#F0F0FF'; color[2] = '#E0E0FF'; color[3] = '#E0D0FF'; level = 0; function hide(){ hide_flag=true; clearTimeout(timer); timer=setTimeout("if(hide_flag)verif(0);", 400); } function hide_(num){ if(num > 0){ elem="t" + num; document.getElementById(elem).style.visibility="hidden"; document.getElementById(elem).style.zindex="-1"; } } function verif(num_tab){ while((num_tab != open_tabs[tabs_count]) && (tabs_count > 0)){ hide_(open_tabs[tabs_count]); tabs_count--; } } function show(num){ hide_flag=false; if(num > 0){ tabs_count++; open_tabs[tabs_count] = num; elem="t" + num; document.getElementById(elem).style.visibility="visible"; document.getElementById(elem).style.zindex="+1"; } } function create_table(num_table, visual){ if(visual){level=0;document.writeln("");} else{level++;document.writeln("
");} // document.write('
'); create_cell(num_table); document.writeln("
"); level--; if(!(visual)){ elem="t" + num_table; document.getElementById(elem).style.visibility="hidden"; } } function create_cell(num_table){ tables[num_table] += "|"; var num_cell=tables[num_table].split('|'); var len = num_cell.length-1; // document.write(''); for(var i=0;i < len ;i++){ cells[num_cell[i]] += '|'; var params = cells[num_cell[i]].split("|"); if(!params[1]){params[1]='';}else{params[1]=params[1]} if(!cell[num_cell[i]])cell[num_cell[i]]=''; if(!(num_table)){ document.write('"); } else{ document.write('"); } document.write(''); if (params[1]){ document.write(''); txt=params[0]; params[0]=txt.replace(/ /gi,' '); if(cell[num_cell[i]]){ document.write(params[0]); // if (params[1]) document.write(''); document.write('»'); }else{ document.write(params[0]); // if (params[1]) document.write(''); document.write(''); } document.write('

'); if(cell[num_cell[i]])create_table(cell[num_cell[i]]); document.write("

"); } // document.write(''); } function get_day(){ url=document.location.pathname; var doc_time = url.split('.'); doc_time[0] += "000"; var _time = doc_time[0].split('/'); var data = new Date(); data.setTime(_time[_time.length-1]); day = data.getDate()+"."+ (data.getMonth() + 1) + "."+data.getYear(); return day; } function sendURL(what) { newx = 50; newy = 50; helpwin = window.open("", "sendurl", 'status=0,help=0,scrollbars=yes,resizable=1,Width=450px,Height=300px,Left=' + newx + ',Top=' + newy); helpwin.document.open(); helpwin.document.write('Отправить ссылку другу

Отправить ссылку другу

КОМУ (E-mail)


ЗАГОЛОВОК


'); helpwin.document.close(); helpwin.focus(); return false; } function addFav(url) { window.external.AddFavorite(url,'Центральный Еврейский Ресурс'); } function BODY_onkeypress(e) { var pressed=0; if(window.event) { //IE pressed=window.event.keyCode==10; } else if(e) { // NN pressed = (e.which==10 && e.modifiers==2) || // NN4 (e.keyCode==0 && e.charCode==106 && e.ctrlKey) || (e.keyCode==13 && e.ctrlKey) // Mozilla } if(pressed) complaint(); } function complaintSaveErrorText(){ if(document.getSelection){ str = document.getSelection(); } if(document.selection.createRange){ var range = document.selection.createRange(); var str = range.text; } if(str==''){}else{ document.all.ERROR.value=str; }; } function complaint(){ w=500;h=400; //url='http://base.ijc.ru/scripts/site.cgi?IID=122120'; url='?IID=122120&PARSEMODE=SERVER&STPROTECT=FALSE'; //url='bla2.html'; ass = window.open(url,"window","toolbar=no,scrollbars=no,directories=no,status=no,menubar=no,resizable=yes,left=0,top=0,width="+w+",height="+h) //window.location(url); //ass.document.title = 'Мой заголовок'; //ass.window.document.all.RPL_SUBJECT.value=document.location; //ass.document.all.RPL_SUBJECT.value='adasdasdasd'; //ass.location('http://www.yandex.ru'); //ass.focus(); //window.focus(); } document.onkeypress = BODY_onkeypress; document.onmouseup = complaintSaveErrorText;