Adding javascript function to trigger help screen
[koha.git] / koha-tmpl / intranet-tmpl / npl / en / includes / doc-head-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
13 function openWindow(targeturl, windowname) {
14         newwin =
15         window.open(targeturl,windowname,"height=480,width=640,scrollbars,resizable")
16 }
17  
18         var newwin;
19         
20         // Open the popup window if it doesn't already exist and give it focus.
21         function PopWin(targeturl, windowname) {
22         
23                 if (!newwin || newwin.closed) newwin = window.open(targeturl,windowname, "height=300,width=400,scrollbars=yes,resizable=yes");
24           newwin.focus();
25         }
26         
27   // Set the value of the form field to the passed value and optionally shift
28         // focus and close the popup.
29         function FillForm(val,formname,formfield) {
30         
31                 document.forms[formname].elements[formfield].value = val;
32
33                 // Uncomment below to shift focus after clicking link in popup.
34                 document.forms[formname].elements[formfield].focus();
35                 
36                 // Uncomment below to close popup after clicking link.
37                 newwin.close();
38         }
39  
40 // end hiding -->
41 </script>
42 </head>
43
44 <body>