+[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>UNIMARC field 123a builder</title>
[% INCLUDE 'doc-head-close.inc' %]
</table>
<fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
</form>
-<script type="text/javascript">
-//<![CDATA[
-function report() {
- var doc = opener.document;
- var field = doc.getElementById("[% index %]");
- field.value = document.f_pop.f1.value;
- self.close();
- return false;
- }
-//]]>
-</script>
+[% MACRO jsinclude BLOCK %]
+ <script type="text/javascript">
+ function report() {
+ var doc = opener.document;
+ var field = doc.getElementById("[% index | html %]");
+ field.value = document.f_pop.f1.value;
+ self.close();
+ return false;
+ }
+ </script>
+[% END %]
-[% INCLUDE 'popup-bottom.inc' %]
+[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]