Adding javascript function to trigger help screen
[koha-ffzg.git] / koha-tmpl / intranet-tmpl / npl / en / includes / doc-head-circ-close.inc
1 </title>
2 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
3 <link rel="shortcut icon" href="<!-- TMPL_VAR NAME='themelang' -->/includes/favicon.ico" type="image/x-icon" />
4 <style type="text/css"> 
5         @import url(<!-- TMPL_VAR NAME='themelang' -->/includes/intranet.css);
6 </style>
7 <script language="JavaScript" type="text/javascript">
8 <!-- Hide from old browsers
9 function Help() {
10         newin=window.open("/cgi-bin/koha/help.pl","Koha Help",'width=600,height=600,toolbar=false,scrollbars=yes');
11 }
12 function openWindow(targeturl, windowname) {
13         newwin =
14         window.open(targeturl,windowname,"height=480,width=640,scrollbars,resizable")
15 }
16  
17         var newwin;
18         
19         // Open the popup window if it doesn't already exist and give it focus.
20         function PopWin(targeturl, windowname) {
21         
22                 if (!newwin || newwin.closed) newwin = window.open(targeturl,windowname, "height=300,width=400,scrollbars=yes,resizable=yes");
23           newwin.focus();
24         }
25         
26   // Set the value of the form field to the passed value and optionally shift
27         // focus and close the popup.
28         function FillForm(val,formname,formfield) {
29         
30                 document.forms[formname].elements[formfield].value = val;
31
32                 // Uncomment below to shift focus after clicking link in popup.
33                 document.forms[formname].elements[formfield].focus();
34                 
35                 // Uncomment below to close popup after clicking link.
36                 newwin.close();
37         }
38  
39 // end hiding -->
40 </script>
41 </head>
42
43 <body onload="document.forms['mainform'].elements[0].focus();">