fixing bug 1754: Hide language chooser if only one translation is available
[koha.git] / koha-tmpl / opac-tmpl / prog / en / js / sco.js
1 function focusOnFirst(){
2         ;       // FIXME: do something here?
3 }
4
5 function sco_init(valid_session) {
6         if (valid_session == 1) {
7                 setTimeout("location.href='/cgi-bin/koha/sco/sco-main.pl?op=logout';",120000);
8         }
9         if(document.forms['mainform']){
10                 document.forms['mainform'].elements[0].focus();
11         }
12 }
13     
14 function confirmDelete(message) {
15         return (confirm(message) ? true : false);
16 }
17
18 function Dopop(link) {
19         newin=window.open(link,'popup','width=500,height=400,toolbar=false,scrollbars=yes');
20 }