function gen_target_check_url (p1)
{
  var is_q=p1.indexOf('?');
  if (is_q== -1) return p1 + '?';
  else return p1 + '&';
}
   
function call_ikb_popup(p1, dest, p2, p3, p4, p5, p6, p7, p8, p9)
{
  // Last updated : 04.02.2012 09:46:46 DIFF-IGNORE
if (! window.focus) return true;

if (typeof p1 == "undefined") url=""; else url=p1;
if (typeof p1 == "undefined") p1=""; else p1=encodeURIComponent(p1);
if (typeof p2 == "undefined") p2=""; else p2=encodeURIComponent(p2);
if (typeof p3 == "undefined") p3=""; else p3=encodeURIComponent(p3);
if (typeof p4 == "undefined") p4=""; else p4=encodeURIComponent(p4);
if (typeof p5 == "undefined") p5=""; else p5=encodeURIComponent(p5);
if (typeof p6 == "undefined") p6=""; else p6=encodeURIComponent(p6);
if (typeof p7 == "undefined") p7=""; else p7=encodeURIComponent(p7);
if (typeof p8 == "undefined") p8=""; else p8=encodeURIComponent(p8);
if (typeof p9 == "undefined") p9=""; else p9=encodeURIComponent(p9);

var ppath = 'http://www.bioforsk.no:80/portal/page/portal/';
var ipath = 'http://www.bioforsk.no/ikbViewer/page/';
if (dest == "241")
window.location = ppath + '29EE2952CDCAD25EE040007F01003801?p_workflow_id='+ p1;
else if (dest == "282")
window.location = ppath + '29ECDD63A7F2437AE040007F010037FF?p_gencode_id='+ p1;
else if (dest == "288")
window.location = ppath + '29ECD34FF08A440FE040007F010037FD?p_doctype_id='+ p1;
else if (dest == "304")
window.location = ppath + '29EBC95DDC4F586AE040007F010037E0?p_attribute_id='+ p1;
else if (dest == "321")
window.location = ppath + '29EE2952CDD5D25EE040007F01003801?p_dimension_id='+ p1;
else if (dest == "303")
{ window.open(ppath + '29FE781D2A6A1B78E040007F01007124?maxCount='+ p2+ '&cbFunction='+ p3+ '&mode='+ p1+ '&cbClosure='+ p4,'_dimnav','height=500,top=' + (screen.height-500)/2 + ',width=400,left=' + (screen.width-400)/2 + ',scrollbars=yes,resizable=yes').focus();}
else if (dest == "481")
window.location = ppath + '29EBC216BB358AB3E040007F010037DE?p_styleset_id=41';
else if (dest == "383")
window.location = ppath + '29ED13D29F5CE466E040007F010037DC?p_group_id='+ p1;
else if (dest == "401")
window.location = ppath + '29ED13D29F22E466E040007F010037DC?p_acl_id='+ p1;
else if (dest == "403")
window.location = ppath + '29EBC216BB228AB3E040007F010037DE?p_user_id='+ p1;
else if (dest == "422")
window.location = ppath + '29FE823A7B0B65F9E040007F01007438?p_dimension_id='+ p1;
else if (dest == "461")
{ window.open(ppath + '29ECABF61ADDE2FBE040007F010037FB?p_document_id='+ p1,'imagedetails','scrollbars=no').focus();}
else if (dest == "424")
{ window.open(ppath + '29FE823A7B4165F9E040007F01007438?maxCount='+ p2+ '&cbFunction='+ p3+ '&mode='+ p1+ '&cbClosure='+ p4,'_dimnav2','height=500,top=' + (screen.height-500)/2 + ',width=400,left=' + (screen.width-400)/2 + ',scrollbars=yes,resizable=yes').focus();}
else if (dest == "462")
{ window.open(ppath + '29ECD34FF071440FE040007F010037FD?p_dimension_id='+ p1,'imagelist','scrollbars=no').focus();}
else if (dest == "463")
{ window.open(ppath + '29ED13D29F24E466E040007F010037DC?p_dimension_id='+ p1,'doclist','scrollbars=no').focus();}
else if (dest == "464")
{ window.open(ppath + '29EBC216BB358AB3E040007F010037DE','_parent','scrollbars=no').focus();}
else if (dest == "465")
window.location = ppath + '29ECB23AE8584904E040007F01003CF8?p_document_id='+ p1+ '&p_style_id='+ p2;
else if (dest == "466")
{ window.open(ppath + '29ECB23AE8584904E040007F01003CF8?p_document_id='+ p1,'_parent','scrollbars=no').focus();}
else if (dest == "467")
window.location = ppath + '29ECDD63A82D437AE040007F010037FF?p_searchcode_id='+ p1;
else if (dest == "501")
{ window.open(ppath + '29FE781D2A601B78E040007F01007124?img_url='+ p1+ '&img_title='+ p2+ '&editorname='+ p3+ '&img_id='+ p4+ '&cbFunction='+ p5+ '&cbClosure='+ p6+ '&img_props='+ p7,'ImageInformation','scrollbars=no').focus();}
else if (dest == "525")
window.location = ppath + '29FAD9503F5BD822E040007F01005719?p_document_id='+ p1+ '&p_d_i=-201&p_d_c=&p_d_v='+ p1;
else if (dest == "541")
window.location = ppath + '29ECB23AE84E4904E040007F01003CF8?p_searchstring='+ p1+ '&p_search_id='+ p2+ '&p_operation='+ p3;
else if (dest == "542")
window.location = ppath + '29EE2952CDE2D25EE040007F01003801?p_searchstring='+ p1+ '&p_search_id='+ p2 + '&p_operation=reset';
else if (dest == "563")
{ window.open(ppath + '29EE2952CDD5D25EE040007F01003801?p_dimension_id='+ p1,'EditDimensionWithStyle','scrollbars=no').focus();}
else if (dest == "603")
{ window.open(ppath + '29FE781D2A601B78E040007F01007124?img_url='+ p1+ '&img_title='+ p2+ '&editorname='+ p3,'picFrame','scrollbars=no').focus();}
else if (dest == "645")
window.location = ppath + '29ECD34FF091440FE040007F010037FD';
else if (dest == "842")
{ window.open(ppath + '29FE823A7B4165F9E040007F01007438','_dimselector','height=500,top=' + (screen.height-500)/2 + ',width=600,left=' + (screen.width-600)/2 + ',scrollbars=yes,resizable=yes').focus();}
else if (dest == "843")
{ window.open(ppath + '29FE781D2A501B78E040007F01007124','_imageselector','height=703,top=' + (screen.height-703)/2 + ',width=900,left=' + (screen.width-900)/2 + ',scrollbars=yes,resizable=yes').focus();}
else if (dest == "844")
{ window.open(ppath + '29FE823A7B1665F9E040007F01007438?p_operation=new','_linkselector','height=451,top=' + (screen.height-451)/2 + ',width=945,left=' + (screen.width-945)/2 + ',scrollbars=yes,resizable=yes').focus();}
else if (dest == "850")
window.location = ppath + '2C3F568D57A343369917EA5260960DD5';
else if (dest == "855")
window.location = ppath + '1882614CF9FB42D6AA7598D3CA1D68FE';
else if (dest == "942")
{ window.open(ppath + '29ED13D29F63E466E040007F010037DC','_editimage','height=520,top=' + (screen.height-520)/2 + ',width=615,left=' + (screen.width-615)/2 + ',scrollbars=yes,resizable=yes').focus();}
else if (dest == "4377")
{ window.open(ppath + '66751E869E5B4411B786CF0B82636EF4?p_document_id='+ p1,'_new','height=400,top=' + (screen.height-400)/2 + ',width=1045,left=' + (screen.width-1045)/2 + ',scrollbars=yes,resizable=yes').focus();}
else if (dest == "4376")
{ window.open(ppath + 'CB971260AECC4692BEFDCA42C7D526BF','_form','width=1000,left=' + (screen.width-1000)/2 + ',scrollbars=yes,resizable=yes').focus();}
else if (dest == "4385")
{ window.open(ppath + 'B3D7A663830C49E4AC740D59D1AB5103?p_document_id='+ p1,'_thread','scrollbars=no').focus();}
else if (dest == "4382")
{ window.open(ppath + '146AE4FCCF8846B99918334EC49AD76E?p_document_id='+ p1+ '&p_dimension_id='+ p2,'_processdoc','scrollbars=no').focus();}
else if (dest == "4381")
{ window.open(ppath + '025A00B8765F4BD8BBFBB5879C465824?p_document_id='+ p1,'_parent','scrollbars=no').focus();}
else if (dest == "4383")
window.location = 'about:blank?p_document_id='+ p1+ '&p_d_i=-4862&p_d_c=&p_d_v='+ p1;
else if (dest == "4388")
window.location = ppath + '2CF650947C794B9D89CEAABAC83F4978?p_document_id='+ p1;
else if (dest == "4397")
{ window.open(ppath + 'A6904FD88B7745B69581C47147D93723?p_document_id='+ p1,'_new','height=400,top=' + (screen.height-400)/2 + ',width=1045,left=' + (screen.width-1045)/2 + ',scrollbars=yes,resizable=yes').focus();}
else if (dest == "4884")
window.location = ppath + '29ECABF61AEDE2FBE040007F010037FB?p_dimensionattribute_id='+ p1;
else if (dest == "8350")
{ window.open(ppath + 'EAF50D043A9B48CEBF3CDAB77FB63362?p_document_id='+ p1,'_blank','height=600,top=' + (screen.height-600)/2 + ',width=600,left=' + (screen.width-600)/2 + ',scrollbars=yes,resizable=yes').focus();}
else if (dest == "8359")
window.location = ppath + '8B821002580747F2804DF5393131AC24?p_dimension_id='+ p1;
else if (dest == "8360")
window.location = ppath + '66184E4A6A89472786CDA0F22347EC80?p_document_id='+ p1;
else if (dest == "8522")
window.location =  gen_target_check_url(url) + 'p_operation=New';
else if (dest == "7567")
{ window.open(ppath + '29FCE18C18206A9EE040007F01006C40?p_document_id='+ p1,'_new','height=400,top=' + (screen.height-400)/2 + ',width=1030,left=' + (screen.width-1030)/2 + ',scrollbars=no,resizable=yes').focus();}
else if (dest == "7320")
{ window.open(ppath + '29FE823A7B3165F9E040007F01007438','_imageselector','height=550,top=' + (screen.height-550)/2 + ',width=900,left=' + (screen.width-900)/2 + ',scrollbars=yes,resizable=yes').focus();}
else if (dest == "7583")
{ window.open(ppath + '29E96C1017A2B917E040007F01001DAF?p_document_id='+ p1,'_parent','scrollbars=no').focus();}
else if (dest == "7584")
{ window.open(ppath + '29FE781D29FD1B78E040007F01007124?p_document_id='+ p1+ '&p_d_i=-125&p_d_c=&p_d_v='+ p1+ '&p_d_i=-127&p_d_c=&p_d_v='+ p1,'_parent','scrollbars=no').focus();}
else if (dest == "7670")
window.location = ppath + 'F0BA2C377EEA455181C92A2209F97FD0?p_dimension_id='+ p1;
else if (dest == "7814" || dest=="DEV_DESKTOP")
{ window.open(ppath + '29FE781D2A3E1B78E040007F01007124?p_mainmenuid='+ p1+ '&p_action='+ p2,'_new','height=800,top=' + (screen.height-800)/2 + ',width=1050,left=' + (screen.width-1050)/2 + ',scrollbars=yes,resizable=yes,menubar=1,toolbar=yes').focus();}
else if (dest == "7826")
{ window.open(ppath + '18DB5EEAD52C40CC94F973C08EFB4625?p_document_id='+ p1,'float_iframe_docaction','scrollbars=no').focus();}
else if (dest == "7813")
window.location = ppath + '29ECD34FF08A440FE040007F010037FD';
else if (dest == "7858")
window.location = ppath + '46F729C591FB48EAAA06FCBB8203F31C?p_document_id='+ p1;
else if (dest == "7860")
window.location = ppath + '6E3AD55EB9BE401DADEECB304D7C7AB4?p_document_id='+ p1;
else if (dest == "7873")
{ window.open(ppath + 'BE47913F54B242579712027E6C309917?p_document_id='+ p1,'_printout','height=500,top=' + (screen.height-500)/2 + ',width=550,left=' + (screen.width-550)/2 + ',scrollbars=yes,resizable=yes').focus();}
else if (dest == "7894")
window.location = ppath + 'AD1C677FCD7E42019761FE9D408521CD?p_dimension_id='+ p1;
else if (dest == "7938")
window.location = ppath + 'A8FED6CA04D248A280602520CCFE24B6?p_dimension_id='+ p1;
else if (dest == "7955")
window.location = ppath + '340C7EDB2107461A91CA4ECC956899DC?p_dimension_id='+ p1;
else if (dest == "7958")
window.location = ppath + 'A49839CF466948A4B3C5330ABAD4E4FE?p_dimension_id='+ p1;
else if (dest == "7963")
window.location = ppath + '9D852088165640F7A450DF56212AC228?p_dimension_id='+ p1;
else if (dest == "7968")
window.location = ppath + '858248FFBF6F49DB86430911A2D5DDCE?p_dimension_id='+ p1;
else if (dest == "7981")
window.location = ppath + 'CAEEBFD66A614F1DA424776A9581E41F?p_searchstring='+ p1+ '&p_search_id='+ p2 + '&p_operation=New';
else if (dest == "8067")
window.location = ppath + 'FC56781CC118465D81A688075D4C2A7F?p_dimension_id='+ p1;
else if (dest == "8022")
window.location = ppath + '9ED63276B10D4AC681E3218372239693?p_document_id='+ p1;
else if (dest == "8100")
window.location = ppath + '8FCA1E938E51452AB03E06CF86751EEA?p_dimension_id='+ p1;
else if (dest == "8090")
{ window.open(ppath + '572FF7D57B27477DABF51A9C688FB175?p_document_id='+ p1,'_parent','scrollbars=no').focus();}
else if (dest == "8130")
window.location = ppath + '086F6EBEEAF74C9A81DF0BF7D8A43C46?p_dimension_id='+ p1+ '&p_dim2='+ p1;
else if (dest == "8202")
window.location = ppath + '163A9226F0AB49FBA8B118B7F0079636?p_document_id='+ p1+ '&p_d_i=-8233&p_d_c=&p_d_v='+ p1;
else if (dest == "8225")
{ window.open(ppath + '56D65DA9AA1549D09A5E8840176BC605?p_document_id='+ p1,'_discussion','scrollbars=no').focus();}
else if (dest == "8252")
window.location = ppath + 'F8FB0F816AA940A6A5DBAF768991DEE5?p_document_id='+ p1+ '&p_d_i=-8238&p_d_c=&p_d_v='+ p1;
else if (dest == "8304")
window.location = ppath + '2258CA0584B648AB916636FD3D772748?p_document_id='+ p1;
else if (dest == "8305")
window.location = ppath + '00A712842D03443DA58ADACDA7F99107?p_document_id='+ p1;
else if (dest == "8337")
window.location = ppath + '7510F6AB635046CB9F28B8FD2C8FA285';
else if (dest == "9296")
window.location = ppath + 'DFB561ECC19C48E588A2682AAFCF842A';
else if (dest == "9297")
window.location = ppath + '1E3547B75AA54D1AB3B5F4157E1AFB09?p_document_id='+ p1;
else if (dest == "9312")
window.location = ppath + 'B32170D6468F49508B8D38073AF54DBB';
else if (dest == "9384")
window.location = ppath + '29ECDD63A80F437AE040007F010037FF?p_search_id='+ p2;
else if (dest == "9421")
window.location = ppath + 'EC8DFC3599624D58993995BA10A6CD0C';
else if (dest == "9457" || dest=="SHOW_IN_CONTEXT")
{ window.open('http://www.bioforsk.no/ikbStudio/pls/ikb_portlet_formatting_set.show_in_context?p_guid='+ p1+ '&p_app='+ p2,'_blank','height=800,top=' + (screen.height-800)/2 + ',width=1050,left=' + (screen.width-1050)/2 + ',scrollbars=yes,resizable=yes,menubar=1,toolbar=yes').focus();}
else if (dest == "9460" || dest=="SUBSYSTEM")
{ window.open('/ikbViewer/development/subsystem/list_by_subsystem.jsp?cbFunction=returnMetadata&cbClosure='+ p1+ '&cbMetadatatype='+ p2+ '&cbLang='+ p3+ '&cbSite='+ p4,'_metadata_select','height=600,top=' + (screen.height-600)/2 + ',width=400,left=' + (screen.width-400)/2 + ',scrollbars=yes,resizable=yes').focus();}
else if (dest == "10143")
{ window.open(ppath + '4F2DEF3655494051A7847639E02CD471','_parent','scrollbars=no').focus();}
else if (dest == "10144")
{ window.open(ppath + 'C5769D48F705491AB49EDC94ACE7666D','_parent','scrollbars=no').focus();}
else if (dest == "10159" || dest=="TITLE_REDIRECT")
window.location = 'http://www.bioforsk.no/ikbViewer/pls/portlet_manage_redirect.redirect?p_document_id='+ p1+ '&p_site_id='+ p2+ '&p_target_id='+ p3+ '&p_domain_name='+ p5+ '&p_document_type_id='+ p4 + '&p_debug=0';
else if (dest == "10166")
window.location = ppath + '36B38815E76893DBE040007F0100270A?p_document_id='+ p1+ '&p_version_no='+ p2;
else if (dest == "10257")
window.location = ipath + 'ikbdemo/contentpage?p_dimension_id='+ p1;
else if (dest == "15021")
window.location = ipath + 'bioforsk/forskingssenter?p_dimension_id='+ p1+ '&p_dimension_under='+ p1;
else if (dest == "15023")
window.location = ipath + 'bioforsk/forskingssenter/senter?p_dimension_id='+ p1+ '&p_dimension_under='+ p1;
else if (dest == "15044")
window.location = ipath + 'bioforsk/forskingssenter/senter/avdeling?p_dimension_id='+ p1;
else if (dest == "15118")
window.location = ipath + 'fagomrader/fagomrade?p_dimension_id='+ p1+ '&p_dimension_under='+ p1;
else if (dest == "15172")
window.location = ipath + 'fagomrader/fagomrade/omrade?p_dimension_id='+ p1+ '&p_dimension_under='+ p1;
else if (dest == "15188")
window.location = ipath + 'fagomrader/fagomrade/omrade/tema?p_dimension_id='+ p1+ '&p_dimension_under='+ p1;
else if (dest == "15216")
window.location = ipath + 'bioforsk?p_dimension_id='+ p1;
else if (dest == "15258")
window.location = ipath + 'bioforsk/aktivitetskalender?p_dimension_id='+ p1;
else if (dest == "15263")
window.location = ipath + 'bioforsk/ansatte?p_operation=New&p_dimension_id=2156';
else if (dest == "15267")
window.location = ipath + 'tjenester?p_dimension_id='+ p1;
else if (dest == "15284")
window.location = ipath + 'tjenester/prosjekter?p_dimension_id='+ p1 + '&p_operation=New';
else if (dest == "15290")
window.location = ipath + 'tjenester/prosjekter?p_operation=New';
else if (dest == "15291")
window.location = ipath + 'tjenester/publikasjoner?p_dimension_id='+ p1 + '&p_operation=New';
else if (dest == "15292")
window.location = ipath + 'tjenester/infotjenester?p_dimension_id='+ p1;
else if (dest == "15293")
window.location = ipath + 'tjenester/infotjenester/artikkel?p_document_id='+ p1;
else if (dest == "15294")
window.location = ipath + 'tjenester/tjenester?p_dimension_id='+ p1;
else if (dest == "15295")
window.location = ipath + 'tjenester/nyhetsbrev?p_dimension_id='+ p1;
else if (dest == "15341")
window.location = ipath + 'forside/nyhet/fagomrader';
else if (dest == "15333")
window.location = ipath + 'forside/nyhet?p_document_id='+ p1;
else if (dest == "15373")
window.location = ipath + 'forside/nyhet/fagomrade?p_d_i=-8369&p_d_c=&p_d_v='+ p1+ '&p_fagomrade='+ p1+ '&p_dimension_id='+ p1;
else if (dest == "15375")
window.location = ipath + 'fagomrader/fagomrade/omrade/tema/tema?p_dimension_id='+ p1+ '&p_dimension_under='+ p1;
else if (dest == "15412")
window.location = ipath + 'tjenester/tjenester/artikkel?p_document_id='+ p1;
else if (dest == "15448")
window.location = ipath + 'bioforsk/forskingssenter/senter/artikkel?p_dimension_id='+ p1+ '&p_document_id='+ p2;
else if (dest == "15460")
window.location = ipath + 'fagomrader/fagomrade/omrade/tema/artikkel?p_dimension_id='+ p1+ '&p_document_id='+ p2;
else if (dest == "15504")
window.location = ipath + 'sok?p_searchstring='+ p1 + '&p_operation=New';
else if (dest == "15496")
window.location = ipath + 'forside/nyhet/alle';
else if (dest == "15528")
window.location = ipath + 'dokument?p_document_id='+ p1;
else if (dest == "15533")
window.location = ipath + 'fagomrader/fagomrade/omrade/generelletema?p_dimension_id='+ p1;
else if (dest == "15539")
window.location = ipath + 'fagomrader/fagomrade/omrade/generelttema?p_document_id='+ p1;
else if (dest == "15551")
window.location = ipath + 'tjenester/prosjekt/sokeresultater?p_searchstring='+ p1 + '&p_operation=New';
else if (dest == "15597")
window.location = ipath + 'tjenester/prosjekt?p_document_id='+ p1;
else if (dest == "15623")
window.location = ipath + 'forside';
else if (dest == "15657")
window.location = ipath + 'bioforsk/aktivitetskalender/aktivitet?p_document_id='+ p1;
else if (dest == "15750")
{ window.open(ipath + 'prosjekt/hovedtema?p_dimension_id='+ p1+ '&p_menu_id='+ p2+ '&p_sub_id='+ p3+ '&p_dim2='+ p4,'_blank','scrollbars=yes,resizable=yes,menubar=1,toolbar=yes').focus();}
else if (dest == "15798")
window.location = ipath + 'bioforsk/stillinger/stilling?p_document_id='+ p1;
else if (dest == "15805")
window.location = ipath + 'bioforsk/stillinger?p_dimension_id='+ p1;
else if (dest == "15854")
window.location = ipath + 'tjenester/kurs/kurs?p_document_id='+ p1;
else if (dest == "15858")
{ window.open(ppath + '619E92ADA27010E7E040640A1904430B','_form','width=1000,left=' + (screen.width-1000)/2 + ',scrollbars=yes,resizable=yes').focus();}
else if (dest == "15885")
window.location = ipath + 'bioforsk/forskingssenter/senter/prosjekt?p_d_i=-8493&p_d_c=&p_d_v='+ p1 + '&p_dimension_id=15705&p_operation=New';
else if (dest == "15899")
window.location = ipath + 'tjenester/tjenester/sokeresultater?p_d_i=-8493&p_d_c=&p_d_v='+ p1 + '&p_dimension_id=15395&p_operation=New';
else if (dest == "15902")
window.location = ipath + 'bioforsk/aktivitetskalender/sokeresultater?p_d_i=-8493&p_d_c=&p_d_v='+ p1 + '&p_dimension_id=8060&p_operation=New';
else if (dest == "15903")
window.location = ipath + 'tjenester/kurs/sokeresultater?p_d_i=-8493&p_d_c=&p_d_v='+ p1 + '&p_dimension_id=15707&p_operation=New';
else if (dest == "15911")
window.location = ipath + 'bioforsk/aktivitetskalender/sokeresultater?p_d_i=-8369&p_d_c=&p_d_v='+ p1 + '&p_dimension_id=8060&p_operation=New';
else if (dest == "15912")
window.location = ipath + 'tjenester/kurs/sokeresultater?p_d_i=-8369&p_d_c=&p_d_v='+ p1 + '&p_dimension_id=15707&p_operation=New';
else if (dest == "15913")
window.location = ipath + 'tjenester/tjenester/sokeresultater?p_d_i=-8369&p_d_c=&p_d_v='+ p1 + '&p_dimension_id=15395&p_operation=New';
else if (dest == "15914")
window.location = ipath + 'fagomrader/fagomrade/prosjekter?p_d_i=-8369&p_d_c=&p_d_v='+ p1 + '&p_dimension_id=15705&p_operation=New';
else if (dest == "15970")
window.location = ipath + 'fagomrader/fagomrade/omrade/generelletema/fagomrader?p_dimension_id=16534';
else if (dest == "16005")
window.location = ipath + 'fagomrader/fagomrade/omrade/generelletema/fagomrade?p_d_i=-8369&p_d_c=&p_d_v='+ p1+ '&p_fagomrade='+ p1+ '&p_dimension_id='+ p1;
else if (dest == "16008")
window.location = ipath + 'bioforsk/aktivitetskalender/alle?p_dimension_id='+ p1;
else if (dest == "16025")
window.location = ipath + 'fagomrader/fagomrade/omrade/generelletema/alle';
else if (dest == "16073")
window.location = ipath + 'bioforsk/aktivitetskalender/aktivitet/subdokument?p_document_id='+ p1;
else if (dest == "16104")
{ window.open(ppath + '6215FA1CDC7EB481E040640A19043AC3','_form','width=1000,left=' + (screen.width-1000)/2 + ',scrollbars=yes,resizable=yes').focus();}
else if (dest == "16143")
window.location = ipath + 'forside/nyhet?p_document_id='+ p1+ '&p_dimension_id='+ p2;
else if (dest == "16145")
window.location = ipath + 'tjenester/publikasjoner/publikasjon?p_document_id='+ p1;
else if (dest == "16390")
window.location = ipath + 'tjenester/forfatter/profil?p_document_id='+ p1;
else if (dest == "16407")
window.location = ipath + 'fagomrader/fagomrade/publikasjoner?p_d_i=-8369&p_d_c=&p_d_v='+ p1 + '&p_dimension_id=15706&p_operation=New';
else if (dest == "16430")
window.location = ipath + 'tjenester/infotjenester/sokeresultater?p_d_i=-8493&p_d_c=&p_d_v='+ p1 + '&p_dimension_id=15396&p_operation=New';
else if (dest == "16431")
window.location = ipath + 'tjenester/infotjenester/sokeresultater?p_d_i=-8369&p_d_c=&p_d_v='+ p1 + '&p_dimension_id=15396&p_operation=New';
else if (dest == "16449")
window.location = ipath + 'bioforsk/forskingssenter/senter/publikasjon?p_d_i=-8493&p_d_c=&p_d_v='+ p1 + '&p_dimension_id=15706&p_operation=New';
else if (dest == "18750")
window.location = ipath + 'bioforsk/ansatte?p_d_i=-8493&p_d_c=&p_d_v='+ p1 + '&p_operation=New';
else if (dest == "18751")
window.location = ipath + 'bioforsk/ansatte?p_d_i=-8369&p_d_c=&p_d_v='+ p1 + '&p_operation=New';
else if (dest == "16793")
window.location = ipath + 'bioforsk/ansatte/person?p_document_id='+ p1+ '&p_dimension_id='+ p2;
else if (dest == "18892")
{ window.open(ppath + '659097D2273E0056E040640A19043DA2','_formpub','width=1000,left=' + (screen.width-1000)/2 + ',scrollbars=yes,resizable=yes').focus();}
else if (dest == "19069")
window.location = ipath + 'mainpage/news?p_document_id='+ p1;
else if (dest == "19083")
window.location = ipath + 'mainpage/news/all';
else if (dest == "19084")
window.location = ipath + 'mainpage/news?p_document_id='+ p1+ '&p_dimension_id='+ p2;
else if (dest == "19086")
window.location = ipath + 'mainpage/news/researcharea?p_d_i=-8369&p_d_c=&p_d_v='+ p1+ '&p_fagomrade='+ p1+ '&p_dimension_id='+ p1;
else if (dest == "19088")
window.location = ipath + 'mainpage/news/researchareas';
else if (dest == "19104")
window.location = ipath + 'bioforsk/english';
else if (dest == "19105")
window.location = ipath + 'bioforsk/projects?p_dimension_id='+ p1 + '&p_operation=New';
else if (dest == "19106")
window.location = ipath + 'bioforsk/project?p_document_id='+ p1;
else if (dest == "19107")
window.location = ipath + 'publication?p_document_id='+ p1;
else if (dest == "19108")
window.location = ipath + 'bioforsk/publications?p_dimension_id='+ p1 + '&p_operation=New';
else if (dest == "19109")
window.location = ipath + 'bioforsk/personnel?p_operation=New&p_dimension_id=2156';
else if (dest == "19110")
window.location = ipath + 'area/employees/person?p_document_id='+ p1+ '&p_dimension_id='+ p2;
else if (dest == "19335")
window.location = ipath + 'tjenester/prosjekter?p_dimension_id='+ p1 + '&p_operation=New';
else if (dest == "19336")
window.location = ipath + 'forside/nyhet/fagomrader';
else if (dest == "19337")
window.location = ipath + 'tjenester/prosjekt?p_document_id='+ p1;
else if (dest == "19341")
window.location = ipath + 'tjenester/prosjektnett?p_dimension_id='+ p1 + '&p_operation=New';
else if (dest == "19455")
window.location = ipath + 'prosjekt/forside?p_dimension_id=16927&p_menu_id=16934&p_sub_id=16928&p_dim2=16928';
else if (dest == "19461")
window.location = ipath + 'tjenester/prosjektnett/prosjekt?p_document_id='+ p1;
else if (dest == "19500")
{ window.open(ppath + '68BC6C42F4178749E040640A1904737C','_form','width=1000,left=' + (screen.width-1000)/2 + ',scrollbars=yes,resizable=yes').focus();}
else if (dest == "19979")
{ window.open(ipath + 'prosjekt/tema?p_dimension_id='+ p1+ '&p_menu_id='+ p2+ '&p_sub_id='+ p3+ '&p_dim2='+ p4,'_blank','scrollbars=yes,resizable=yes,menubar=1,toolbar=yes').focus();}
else if (dest == "20673")
window.location = ipath + 'xnext/accesspage/frontpage';
else if (dest == "20674")
window.location = ipath + 'xnext/accesspage/underconstruction';
else if (dest == "20675")
window.location = ipath + 'xnext/accesspage/profile';
else if (dest == "20676" || dest=="XNEXT_PUBLISH")
{ window.open(ipath + 'xnext/accesspage/publish','MinPopup','height=600,top=' + (screen.height-600)/2 + ',width=800,left=' + (screen.width-800)/2 + ',scrollbars=yes,resizable=yes').focus();}
else if (dest == "20677")
window.location = ipath + 'xnext/accesspage/showcontent?p_document_id='+ p1;
else if (dest == "20678")
window.location = ipath + 'xnext/accesspage/customer?p_dimension_id='+ p1;
else if (dest == "20679" || dest=="XNEXT_SEARCH")
window.location = ipath + 'xnext/accesspage/search?p_searchstring='+ p1+ '&p_search_id='+ p2 + '&p_operation=New';
else if (dest == "20680")
window.location = ipath + 'xnext/ajax/form/profile/settings?p_document_id='+ p1;
else if (dest == "20681")
window.location = ipath + 'xnext/accesspage/profile/settings';
else if (dest == "20682")
window.location = ipath + 'xnext/ajax/form/profile/status?p_document_id='+ p1;
else if (dest == "20683")
window.location = ipath + 'xnext/accesspage/product?p_dimension_id='+ p1;
else if (dest == "20684" || dest=="XNEXT_SUBJECT")
window.location = ipath + 'xnext/accesspage/subject?p_dimension_id='+ p1;
else if (dest == "20686")
window.location = ipath + 'xnext/accesspage/search?p_searchstring='+ p1 + '&p_operation=reset&p_search_id=15218';
else if (dest == "20685")
window.location = ipath + 'xnext/accesspage/organizationunit?p_dimension_id='+ p1;
else if (dest == "20687")
window.location = ipath + 'xnext/accesspage/showcontent/customer?p_document_id='+ p2+ '&p_dimension_id='+ p1;
else if (dest == "20688")
window.location = ipath + 'xnext/accesspage/showcontent/product?p_document_id='+ p2+ '&p_dimension_id='+ p1;
else if (dest == "20689")
window.location = ipath + 'xnext/accesspage/showcontent/organization?p_document_id='+ p2+ '&p_dimension_id='+ p1;
else if (dest == "20690")
window.location = ipath + 'xnext/accesspage/showcontent/subject?p_document_id='+ p2+ '&p_dimension_id='+ p1;
else if (dest == "20692")
window.location = ipath + 'xnext/accesspage/resources/allcontent?p_dimension_id='+ p1;
else if (dest == "20691")
window.location = ipath + 'xnext/accesspage/customers/log';
else if (dest == "20696")
window.location = ipath + 'xnext/accesspage/resources/discussionforum?p_dimension_id='+ p1;
else if (dest == "20694")
window.location = ipath + 'xnext/accesspage/workspace?p_document_id='+ p1;
else if (dest == "20697")
window.location = ipath + 'xnext/accesspage/resources/activity';
else if (dest == "20693")
window.location = ipath + 'xnext/accesspage/showcontent/discussionforum?p_document_id='+ p1+ '&p_dimension_id='+ p2;
else if (dest == "20698")
window.location = ipath + 'xnext/accesspage/showcontent/activity?p_document_id='+ p2;
else if (dest == "20695")
window.location = ipath + 'xnext/accesspage/showcontent/bulletinboard?p_document_id='+ p2;
else if (dest == "20699")
{ window.open(ipath + 'xnext/accesspage/comment?p_comment_on='+ p1,'MyComment','height=500,top=' + (screen.height-500)/2 + ',width=700,left=' + (screen.width-700)/2 + ',scrollbars=yes').focus();}
else if (dest == "20702")
window.location = ipath + 'xnext/accesspage/workspaces?p_dimension_id='+ p1;
else if (dest == "20701" || dest=="IKB_PROCESS_AREA")
window.location = ipath + 'xnext/accesspage/qms/area?p_dimension_id='+ p1;
else if (dest == "20718")
window.location = 'about:blank?p_document_id='+ p1;
else if (dest == "20703" || dest=="IKB_PROCESS_DETAILS")
window.location = ipath + 'xnext/accesspage/qms/process?p_dimension_id='+ p1;
else if (dest == "20704")
window.location = ipath + 'xnext/accesspage/qms/process?p_dimension_id='+ p1;
else if (dest == "20705")
window.location = ipath + 'xnext/accesspage/qms/process/content?p_dimension_id='+ p1+ '&p_document_id='+ p2;
else if (dest == "20706")
window.location = ipath + 'xnext/accesspage/qms/area/content?p_dimension_id='+ p1+ '&p_document_id='+ p2;
else if (dest == "20707")
window.location = ipath + 'xnext/accesspage/news/archive';
else if (dest == "20708")
window.location = ipath + 'xnext/accesspage/profile/workspace?p_document_id='+ p1;
else if (dest == "20709")
window.location = ipath + 'xnext/accesspage/profile/documents?p_document_id='+ p1;
else if (dest == "20710")
window.location = ipath + 'xnext/accesspage/profile/task?p_document_id='+ p1;
else if (dest == "20712")
window.location = ipath + 'xnext/accesspage/profile/postit';
else if (dest == "20711")
window.location = ipath + 'xnext/accesspage/person/profile?p_document_id='+ p1;
else if (dest == "20713")
window.location = ipath + 'xnext/accesspage/workspace?p_document_id='+ p1+ '&p_dimension_id='+ p2;
else if (dest == "20715")
window.location = ipath + 'xnext/accesspage/workspace/document/showcontent?p_workdoc='+ p2+ '&p_document_id='+ p1;
else if (dest == "20717")
window.location = ipath + 'xnext/accesspage/workspace/tasks/showcontent?p_workdoc='+ p2+ '&p_document_id='+ p1;
else if (dest == "20719")
window.location = ipath + 'xnext/accesspage/workspace/documents?p_document_id='+ p1+ '&p_dimension_id='+ p2;
else if (dest == "20720")
window.location = ipath + 'xnext/accesspage/workspace/tasks?p_document_id='+ p1+ '&p_dimension_id='+ p2;
else if (dest == "20721")
window.location = ipath + 'xnext/accesspage/qms/area/issue?p_dimension_id='+ p1+ '&p_document_id='+ p2;
else if (dest == "20722")
window.location = ipath + 'xnext/accesspage/qms/process/issue?p_dimension_id='+ p1+ '&p_document_id='+ p2;
else if (dest == "20723")
{ window.open(ipath + 'xnext/accesspage/print?p_document_id='+ p1,'_printout','height=500,top=' + (screen.height-500)/2 + ',width=550,left=' + (screen.width-550)/2 + ',scrollbars=yes,resizable=yes').focus();}
else if (dest == "20724")
window.location = ipath + 'xnext/accesspage/showcontent/vacancy?p_document_id='+ p2;
else if (dest == "20725")
window.location = ipath + 'xnext/accesspage/showcontent/news?p_document_id='+ p1;
else if (dest == "20727")
window.location = ipath + 'xnext/accesspage/search?p_dimension_id='+ p1 + '&p_operation=New&searchkey=XNEXT_SEARCH_PERSONS_INTEREST_AREA';
else if (dest == "20726")
window.location = ipath + 'xnext/accesspage/search?p_dimension_id='+ p1 + '&p_operation=New&searchkey=XNEXT_SEARCH_PERSONS_CORE_COMPETENCE';
else if (dest == "20728")
window.location = ipath + 'xnext/accesspage/search?p_dimension_id='+ p1 + '&p_operation=New&searchkey=XNEXT_SEARCH_PERSONS_CUSTOMER';
else if (dest == "20729")
window.location = ipath + 'xnext/accesspage/search?p_dimension_id='+ p1 + '&p_operation=New&searchkey=XNEXT_SEARCH_PERSONS_PROCESS';
else if (dest == "20730")
window.location = ipath + 'xnext/accesspage/search?p_dimension_id='+ p1 + '&p_operation=New&p_search_id=17019';
else if (dest == "20731")
window.location = ipath + 'xnext/accesspage/qms';
else if (dest == "21089")
window.location = ipath + 'xnext/accesspage/organisasjon/intranett?p_dimension_id='+ p1;
else if (dest == "21112")
window.location = ipath + 'xnext/accesspage/showcontent/organization/intranett?p_document_id='+ p2+ '&p_dimension_id='+ p1;
else if (dest == "21263")
window.location = ipath + 'xnext/accesspage/Info-IKT/intranett?p_dimension_id='+ p1;
else if (dest == "21258")
window.location = ipath + 'xnext/accesspage/fou/intranett?p_dimension_id='+ p1;
else if (dest == "21264")
window.location = ipath + 'xnext/accesspage/administrasjon/intranett?p_dimension_id='+ p1;
else if (dest == "21268")
window.location = ipath + 'xnext/accesspage/showcontent/fou/intranett?p_document_id='+ p2+ '&p_dimension_id='+ p1;
else if (dest == "21269")
window.location = ipath + 'xnext/accesspage/showcontent/administrasjon/intranett?p_document_id='+ p2+ '&p_dimension_id='+ p1;
else if (dest == "21270")
window.location = ipath + 'xnext/accesspage/showcontent/Info-IKT/intranett?p_document_id='+ p2+ '&p_dimension_id='+ p1;
else if (dest == "21768")
window.location = '';
else if (dest == "22026")
window.location = ipath + 'xnext/accesspage/resources/publications';
else if (dest == "22236")
window.location = ipath + 'bioforsk/presse?p_dimension_id='+ p1;
else if (dest == "22578")
window.location = ipath + 'area?p_dimension_id='+ p1;
else if (dest == "22584")
window.location = ipath + 'area/about/article?p_dimension_id='+ p1;
else if (dest == "22624")
window.location = ipath + 'area/employees/person?p_document_id='+ p1+ '&p_dimension_id='+ p2;
else if (dest == "22616")
window.location = ipath + 'area/employees?p_operation=New&p_dimension_id=22576';
else if (dest == "22730")
window.location = ipath + 'fagomrader/fagomrade/satsingsomrade?p_dimension_id='+ p1+ '&p_dimension_under='+ p1;
else if (dest == "22735")
window.location = ipath + 'fagomrader/fagomrade/satsingsomrade/tema?p_dimension_id='+ p1+ '&p_dimension_under='+ p1;
else if (dest == "22754")
window.location = ipath + 'area/vacancies/position?p_document_id='+ p1;
else if (dest == "22773")
window.location = ipath + 'fagomrader/fagomrade/satsingsomrade/tema/artikkel?p_dimension_id='+ p1+ '&p_document_id='+ p2;
else if (dest == "22863")
window.location = ipath + 'prosjekthandbok?p_rolle='+ p1 + '&p_prosess=0';
else if (dest == "22943")
window.location = ipath + 'prosjekthandbok?p_rolle='+ p1 + '&p_prosess=0';
else if (dest == "23865")
window.location = ipath + 'prosjekt/hovedtema?p_dimension_id='+ p2+ '&p_document_id='+ p1;
else if (dest == "23117")
window.location = ipath + 'prosjekthandbok/alle?p_rolle='+ p1 + '&p_prosess=22855&p_steg=0';
else if (dest == "23119")
window.location = ipath + 'prosjekthandbok/alle?p_rolle='+ p1 + '&p_prosess=22928&p_steg=0';
else if (dest == "23120")
window.location = ipath + 'prosjekthandbok/alle?p_rolle='+ p1 + '&p_prosess=23067&p_steg=0';
else if (dest == "23121")
window.location = ipath + 'prosjekthandbok/alle?p_rolle='+ p1 + '&p_prosess=23087&p_steg=0';
else if (dest == "23122")
window.location = ipath + 'prosjekthandbok/alle?p_rolle='+ p1 + '&p_prosess=23097&p_steg=0';
else if (dest == "23134")
window.location = ipath + 'prosjekthandbok/sok?p_searchstring='+ p1;
else if (dest == "17269")
window.location = ipath + 'cs/showdoc?p_document_id='+ p1+ '&p_style_id='+ p2;
else if (dest == "51858")
window.location = ipath + 'ext/cs/document.json?p_document_id='+ p1;
else if (dest == "51851")
{ window.open(ipath + 'ext/cs/form/image?p_d_i=-284&p_d_c=&p_d_v='+ p1,'_editimage','height=260,top=' + (screen.height-260)/2 + ',width=700,left=' + (screen.width-700)/2 + ',scrollbars=yes,resizable=yes').focus();}
else if (dest == "42751")
window.location = ipath + 'cs/docarch?p_dimension_id='+ p1+ '&p_document_id='+ p2;
else if (dest == "51471")
{ window.open(url,'_blank','scrollbars=yes,resizable=yes,menubar=1,toolbar=yes').focus();}
else if (dest == "51241")
{ window.open('http://www.bioforsk.no/ikbStudio/metadata/infotypes','_blank','scrollbars=yes,resizable=yes,menubar=1,toolbar=yes').focus();}
else if (dest == "42495")
{ window.open(ipath + 'cs/form','_parent','scrollbars=no').focus();}
else if (dest == "43452")
window.location = ipath + 'cs/tools/duplicates/details?p_document_id='+ p1+ '&p_d_i=-201&p_d_c=&p_d_v='+ p1;
else if (dest == "17249" || dest=="CS_SEARCH")
window.location = ipath + 'cs/search?p_searchstring='+ p1+ '&p_search_id='+ p2 + '&p_operation=New';
else if (dest == "50801")
{ window.open(ipath + 'cs/component/picklist-m','_piclist_m','height=550,top=' + (screen.height-550)/2 + ',width=975,left=' + (screen.width-975)/2 + ',scrollbars=yes,resizable=yes').focus();}
else if (dest == "50354" || dest=="DIMNAV")
{ window.open(ipath + 'cs/component/selectlist','_dimselector','height=315,top=' + (screen.height-315)/2 + ',width=600,left=' + (screen.width-600)/2 + ',scrollbars=yes,resizable=yes').focus();}
else if (dest == "95579")
{ window.open(ipath + 'bf/accesspage/publish/lenker','_blank','height=600,top=' + (screen.height-600)/2 + ',width=800,left=' + (screen.width-800)/2 + ',scrollbars=yes,resizable=yes').focus();}
else if (dest == "95623")
window.location = ipath + 'area/research-area/article?p_dimension_id='+ p1;
else if (dest == "95625")
window.location = ipath + 'area/international/article?p_dimension_id='+ p1;
else if (dest == "95641")
window.location = ipath + 'area/long-term-monitoring/article?p_dimension_id='+ p1;
 else call_ikb_popup_dynamic(p1,dest,p2,p3,p4,p5,p6,p7,p8,p9);
return false;
}
function call_ikb_homeplace(documentid, target, siteid, domainid, documenttype, viewertarget, viewdebug, versionno)
{
if (typeof documentid == "undefined")
   documentid="";
if (typeof siteid == "undefined")
   siteid="";
if (typeof domainid == "undefined")
   domainid="";
if (typeof documenttype == "undefined")
   documenttype="";
if (typeof viewertarget == "undefined")
   viewertarget="";
if (typeof viewdebug == "undefined")
   viewdebug ="";
if (typeof versionno == "undefined")
   versionno ="";

  var run_url = "/ikbViewer/pls/portlet_manage_redirect.redirect?p_document_id="+ encodeURIComponent(documentid)+ "&p_site_id="+ encodeURIComponent(siteid)+ "&p_target_id="+ encodeURIComponent(viewertarget)+ "&p_domain_name="+ encodeURIComponent(domainid)+ "&p_document_type_id="+ encodeURIComponent(documenttype) + "&p_debug="+ encodeURIComponent(viewdebug) + "&p_version_no="+ encodeURIComponent(versionno);
       var code = jQuery.ajax({
        url: run_url,
        async: false
       }).responseText;
       if (code != null)
         if (viewdebug == "1")
            alert(code);
         else
            eval(code);

             return false;
             }
            

