/** * Copyright (c) 2002 i-seven aps. * Hvidsværmervej 161, DK-2610 Rødovre, Denmark. * All rights reserved. * * This software is the confidential and proprietary information * of i-seven aps. ("Confidential Information"). You shall not * disclose such Confidential Information and shall use it only in * accordance with the terms of the license agreement you entered into * with i-seven aps. */ function openSearchLink(asURL) { var searchWord=window.location.href.split('&')[1].split('=')[1]; searchWord=searchWord.substr(0,searchWord.indexOf('%20AND')); if (asURL.indexOf('?OpenDocument')==-1) window.location=asURL+'?OpenDocument&Highlight='+searchWord else window.location=asURL+'&Highlight='+searchWord } function doSearch() { var message; if (document.forms[0].fdSearch.value=='') { switch (webLanguage) { case 'dan': message='Søgefeltet er tomt.'; break; case 'jp': message='Sökfältet är tomt.'; break; case 'eng': message='Search field is empty.'; break; default: message='Fyll i ord.'; } alert(message); document.forms[0].fdSearch.focus(); return; } window.location=(webPath+'/'+webSearchView+'?SearchView&Query='+document.forms[0].fdSearch.value+'%20AND%20(FIELD%20fdLanguage%20CONTAINS%20('+webLanguage+'))&Count=20&Scope=0&SearchMax=30'); } function getKey() { if (window.event.keyCode==13) { event.keyCode=0; doSearch(); } return false; }