much-awaited web-based self-checkout system
[wip/koha-chris_n.git] / koha-tmpl / opac-tmpl / prog / en / js / sco.js
1
2 function focusOnFirst(){
3
4 }
5
6 function sco_init(valid_session) {
7 if (valid_session == 1) {
8   setTimeout("location.href='/cgi-bin/koha/sco/sco-main.pl?op=logout';",120000);
9 }
10
11 if(document.forms['mainform']){
12             document.forms['mainform'].elements[0].focus();
13  }
14 }
15     
16
17 function confirmDelete(message) {
18         var agree = confirm(message);
19         if(agree) {
20                 return true;
21         } else {
22                 return false;
23         }
24 }
25
26 function Dopop(link) {
27         newin=window.open(link,'popup','width=500,height=400,toolbar=false,scrollbars=yes');
28         }