//function to open help window function openhelp(url, part) { if (part!=null && part!='') url=url+'#'+part; temp=window.open(url,'HELP','width=608,height=574,menubar=0,resizable=0,scrollbars=1,status=0,titlebar=0,toolbar=0,z-lock=0,left=200,top=20'); temp.opener=this; temp.focus(); } //function to open search window function opensearch(url) { temp=window.open(url,'SEARCH','width=608,height=574,menubar=0,resizable=0,scrollbars=1,status=0,titlebar=0,toolbar=0,z-lock=0,left=100,top=20'); temp.opener=this; temp.focus(); } //function to open print window with content of element with id=tisk from actual document function printIt() { winId=window.open('','printwin','width=590,height=500,scrollbars=1,resizable=0'); winId.document.write(document.getElementById('tisk').innerHTML); winId.document.close(); winId.focus(); if (window.print) winId.print(); } // close given window and focus his opener if any set function closeFocusOpener(win){ if (win.opener!=null){ win.opener.focus(); } win.close(); } //function to open window with external URL function openexternal(url) { temp=window.open(url,'EXTERNAL'); temp.opener=this; temp.focus(); } // open Periodical related search result in main window function openperiodical(type, id) { switch (type) { case (1): url = "PShowPeriodical.do?id=" break; case (2): url = "PShowVolume.do?id=" break; case (3): url = "PShowIssue.do?id=" break; case (4): url = "PShowICP.do?id=" break; default: alert("error in openperiodical JavaScript function"); return false; } this.opener.location = url + id; this.opener.focus(); } // open Monograph related search result in main window function openmonograph(type, id) { switch (type) { case (1): url = "MShowMonograph.do?id=" break; case (2): url = "MShowUnit.do?id=" break; case (3): url = "MShowMCP.do?id=" break; default: alert("error in openperiodical JavaScript function"); return false; } this.opener.location = url + id; this.opener.focus(); } /* Check if pager index is valid (is int number and in allowed range) and return true if submit is needed. * @param index to check * @param maxindex maximal allowed index * @param actualindex don't submit if new index is same as actual * @param errtext text to be shown if index is not valid */ function checkPagerIndex(index, maxindex, actualindex, errtext){ if (isNaN(index) || index < 1 || index > maxindex){ alert(errtext); return false; } else { if (index == actualindex) return false; else return true; } } // disable all fields in given form function disable(form) { for (i=0; i