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 : 12.03.2010 21:51:48
if (! window.focus) return true;
var href;
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 = '/portal/page/portal/';
var ipath = '/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_d_i=-161&p_d_c=&p_d_v='+ p1+ '&p_dimension_id='+ p1,'imagelist','scrollbars=no').focus();}
else if (dest == "463")
{ window.open(ppath + '29ED13D29F24E466E040007F010037DC?p_dim='+ p1+ '&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_d_i=-122&p_d_c=&p_d_v='+ p1+ '&p_search_id='+ p2+ '&p_operation='+ p3;
else if (dest == "542")
window.location = ppath + '29EE2952CDE2D25EE040007F01003801?p_d_i=-122&p_d_c=&p_d_v='+ 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_dim='+ p2,'_processdoc','scrollbars=no').focus();}
else if (dest == "4381")
{ window.open(ppath + '025A00B8765F4BD8BBFBB5879C465824?p_document_id='+ p1 + '&p_style_id=10581','_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_d_i=-161&p_d_c=&p_d_v='+ p1+ '&p_dimension_id='+ p1+ '&p_dim='+ 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_d_i=-161&p_d_c=&p_d_v='+ p1+ '&p_dimension_id='+ p1+ '&p_dim='+ 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_d_i=-161&p_d_c=&p_d_v='+ p1+ '&p_dimension_id='+ p1+ '&p_dim='+ p1;
else if (dest == "7938")
window.location = ppath + 'A8FED6CA04D248A280602520CCFE24B6?p_d_i=-161&p_d_c=&p_d_v='+ p1+ '&p_dimension_id='+ p1+ '&p_dim='+ p1;
else if (dest == "7955")
window.location = ppath + '340C7EDB2107461A91CA4ECC956899DC?p_d_i=-161&p_d_c=&p_d_v='+ p1+ '&p_dimension_id='+ p1+ '&p_dim='+ p1;
else if (dest == "7958")
window.location = ppath + 'A49839CF466948A4B3C5330ABAD4E4FE?p_d_i=-161&p_d_c=&p_d_v='+ p1+ '&p_dimension_id='+ p1+ '&p_dim='+ p1;
else if (dest == "7963")
window.location = ppath + '9D852088165640F7A450DF56212AC228?p_dim='+ p1+ '&p_dimension_id='+ p1+ '&p_d_i=-161&p_d_c=&p_d_v='+ p1;
else if (dest == "7968")
window.location = ppath + '858248FFBF6F49DB86430911A2D5DDCE?p_dim='+ p1+ '&p_dimension_id='+ p1+ '&p_d_i=-161&p_d_c=&p_d_v='+ p1;
else if (dest == "7981")
window.location = ppath + 'CAEEBFD66A614F1DA424776A9581E41F?p_d_i=-122&p_d_c=&p_d_v='+ p1+ '&p_search_id='+ p2 + '&p_operation=New';
else if (dest == "8067")
window.location = ppath + 'FC56781CC118465D81A688075D4C2A7F?p_d_i=-161&p_d_c=&p_d_v='+ p1+ '&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_dim='+ p1+ '&p_dimension_id='+ p1+ '&p_d_i=-161&p_d_c=&p_d_v='+ 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_dim='+ p1+ '&p_dimension_id='+ p1+ '&p_d_i=-8272&p_d_c=&p_d_v='+ 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 == "9678")
window.location = ppath + 'CB971260AECC4692BEFDCA42C7D526BF?p_style_id=9680';
else if (dest == "9672")
window.location = ppath + 'CB971260AECC4692BEFDCA42C7D526BF?p_document_id='+ p1+ '&p_notification_id='+ p2+ '&p_style_id='+ p3+ '&p_document_id='+ p4+ '&p_origin_url='+ p5;
else if (dest == "9457" || dest=="SHOW_IN_CONTEXT")
{ window.open('http://helseforskning.etikkom.no/portal/pls/portal/iknowbase.ikb_portlet_formatting_set.show_in_context?p_guid='+ p1+ '&p_app='+ 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 == "9460" || dest=="SUBSYSTEM")
{ window.open('http://helseforskning.etikkom.no/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://helseforskning.etikkom.no/portal/pls/portal/iknowbase.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_d_i=-161&p_d_c=&p_d_v='+ p1+ '&p_dimension_id='+ p1;
else if (dest == "10517")
{ window.open(ppath + 'CB971260AECC4692BEFDCA42C7D526BF','_form','width=1000,left=' + (screen.width-1000)/2 + ',scrollbars=yes,resizable=yes').focus();}
else if (dest == "11119")
window.location = ppath + '59EBDC4D1DBB0F6DE040F28156A418EC?p_document_id='+ p1;
else if (dest == "11196")
{ window.open(ppath + '5D261E3C5D9A338CE040F28154A42F42?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 == "11203")
window.location = ppath + '5B6CC521C027538CE040F28156A4097E';
else if (dest == "11293")
{ window.open(ppath + '5DB1C5405EA028A7E040F28156A44CC1?p_document_id='+ p1+ '&sprek_parent_id='+ p1,'_parent','scrollbars=no').focus();}
else if (dest == "11328")
{ window.open(ppath + '5DB1C5405EA028A7E040F28156A44CC1?p_document_id='+ p1+ '&sprek_parent_id='+ p1+ '&sprek_sub_id='+ p2 + '&page=under_arbeid','_parent','scrollbars=no').focus();}
else if (dest == "11366")
{ window.open(ipath + '/sprek/merknad','_form','width=1000,left=' + (screen.width-1000)/2 + ',scrollbars=yes,resizable=yes').focus();}
else if (dest == "11665")
{ window.open(ppath + '5D23B1FFC1AF5A88E040F28156A41B41?p_d_i=-122&p_d_c=&p_d_v='+ p1+ '&p_search_id='+ p2+ '&p_operation='+ p3,'_blank','scrollbars=yes,resizable=yes').focus();}
else if (dest == "11931")
window.location = ppath + '632FDB27195FBFFFE040F28156A44B3F?p_dim='+ p1;
else if (dest == "11933")
window.location = ppath + '5D23B1FFC1AF5A88E040F28156A41B41?p_operation=new';
else if (dest == "11997")
window.location = ppath + '639450D13B2ACE61E040F28154A47510?p_dim='+ p1;
else if (dest == "12000")
window.location = ppath + '639484486CA31350E040F28154A4790B?p_dim='+ p1 + '&p_operation=new';
else if (dest == "12025")
window.location = ppath + '632FDB27195FBFFFE040F28156A44B3F?p_dim='+ p1 + '&region=10796';
else if (dest == "12027")
window.location = ppath + '632FDB27195FBFFFE040F28156A44B3F?p_dim='+ p1 + '&region=10797';
else if (dest == "12028")
window.location = ppath + '632FDB27195FBFFFE040F28156A44B3F?p_dim='+ p1 + '&region=10798';
else if (dest == "12034")
window.location = ppath + '632FDB27195FBFFFE040F28156A44B3F?p_dim='+ p1 + '&region=10795';
else if (dest == "12038")
window.location = ppath + '63972D23E8D74E12E040F28156A4511C?p_dim='+ p1 + '&region=10798';
else if (dest == "12039")
window.location = ppath + '63972D23E8D74E12E040F28156A4511C?p_dim='+ p1 + '&region=10796';
else if (dest == "12041")
window.location = ppath + '63972D23E8D74E12E040F28156A4511C?p_dim='+ p1 + '&region=10797';
else if (dest == "12042")
window.location = ppath + '7399BB133B8186B8E040F28156A402DF?p_dim='+ p1 + '&region=10795&komite=1';
else if (dest == "12138")
window.location = ppath + '63AFD8CBBE73C540E040F28156A44E68?p_dim='+ p1;
else if (dest == "12239")
window.location = ppath + '63D19578D0956C45E040F28154A41620?p_dim='+ p1;
else if (dest == "12292")
window.location = ppath + '639A534636FEDABFE040F28156A46FBA?komite='+ p1;
else if (dest == "12275")
window.location = ppath + '639B42CF9B024BC4E040F28154A45F85?komite='+ p1;
else if (dest == "12358")
window.location = ppath + '63E73597D3B7307CE040F28154A46207?p_document_id='+ p1+ '&p_version_no='+ p2;
else if (dest == "12534")
window.location = ppath + '64994B208D2C3F91E040F28156A46069?p_dim='+ p1;
else if (dest == "12535")
window.location = ppath + '64994B208D3C3F91E040F28156A46069?p_dim='+ p1;
else if (dest == "12536")
window.location = ppath + '64994B208D333F91E040F28156A46069?p_dim='+ p1 + '&p_operation=new';
else if (dest == "12597")
window.location = ppath + '64B267849E196878E040F28154A47AAB?p_dim='+ p1 + '&region=10797';
else if (dest == "12598")
window.location = ppath + '64B267849E196878E040F28154A47AAB?p_dim='+ p1 + '&region=10796';
else if (dest == "12599")
window.location = ppath + '749EE04A6EDC5069E040F28156A452D4?p_dim='+ p1 + '&region=10795&komite=1';
else if (dest == "12600")
window.location = ppath + '64B267849E196878E040F28154A47AAB?p_dim='+ p1 + '&region=10798';
else if (dest == "12710")
{ window.open(ppath + '67BD675D42C050C3E040F28154A40B4B?p_document_id='+ p1 + '&p_style_id=12721','_new','height=500,top=' + (screen.height-500)/2 + ',width=600,left=' + (screen.width-600)/2 + ',scrollbars=no').focus();}
else if (dest == "12738")
window.location = ppath + '653B9AE7E3565621E040F28154A42B79?p_document_id='+ p1+ '&sprek_parent_id='+ p1+ '&sprek_sub_id='+ p2;
else if (dest == "12800")
window.location = ppath + '639A534636FEDABFE040F28156A46FBA?komite='+ p1;
else if (dest == "12833")
window.location = ppath + '65C53712400D3959E040F28156A4044A?komite='+ p1;
else if (dest == "13004")
{ window.open(ppath + '67BD675D42C050C3E040F28154A40B4B','_form','scrollbars=yes,resizable=yes').focus();}
else if (dest == "13166")
{ window.open(ppath + '6838A6AC9262E47FE040F28156A44272?p_document_id='+ p1,'_new','scrollbars=no').focus();}
else if (dest == "13198")
window.location = ppath + '684A12DEDA2299FEE040F28156A4227F';
else if (dest == "13199")
window.location = ipath + '/forside/opprett-ny-bruker';
else if (dest == "13253")
{ window.open(ppath + 'CB971260AECC4692BEFDCA42C7D526BF','_form2','width=1000,left=' + (screen.width-1000)/2 + ',scrollbars=yes,resizable=yes').focus();}
else if (dest == "13576")
window.location = ppath + '64994B208D3C3F91E040F28156A46069?p_dim='+ p1 + '&region=10795';
else if (dest == "13551")
{ window.open(ppath + 'C5769D48F705491AB49EDC94ACE7666D?page=main','_blank','scrollbars=yes,resizable=yes,menubar=1,toolbar=yes').focus();}
else if (dest == "13577")
window.location = ppath + '64994B208D3C3F91E040F28156A46069?p_dim='+ p1 + '&region=10796';
else if (dest == "13578")
window.location = ppath + '64994B208D3C3F91E040F28156A46069?p_dim='+ p1 + '&region=10797';
else if (dest == "13579")
window.location = ppath + '64994B208D3C3F91E040F28156A46069?p_dim='+ p1 + '&region=10798';
else if (dest == "14352")
window.location = ppath + '69C72581A0269201E040F28156A427EF?p_dim='+ p1;
else if (dest == "14457")
{ window.open(ipath + '/sprek/vis/epost?p_document_id='+ p1,'_new','scrollbars=no').focus();}
else if (dest == "14480")
{ window.open(ppath + '69B5CEFC1D7D3A93E040F28154A4221D?p_document_id='+ p1+ '&sprek_parent_id='+ p1+ '&sprek_sub_id='+ p2,'_parent','scrollbars=no').focus();}
else if (dest == "18595")
window.location = ppath + '6EA79E3EDFAB78AAE040F28156A42C3C?p_dim='+ p1;
else if (dest == "18596")
window.location = ppath + '6EA79E3EDF9B78AAE040F28156A42C3C?p_dim='+ p1;
else if (dest == "18599")
window.location = ppath + '6EA79E3EDFA278AAE040F28156A42C3C?p_dim='+ p1 + '&p_operation=new';
else if (dest == "18601")
window.location = ppath + '6EA7AB87AB26EEABE040F28156A44161?p_dim='+ p1;
else if (dest == "18602")
window.location = ppath + '6EA7AB87AB26EEABE040F28156A44161?p_dim='+ p1 + '&region=10795';
else if (dest == "18604")
window.location = ppath + '6EA7AB87AB26EEABE040F28156A44161?p_dim='+ p1 + '&region=10796';
else if (dest == "18605")
window.location = ppath + '6EA7AB87AB26EEABE040F28156A44161?p_dim='+ p1 + '&region=10797';
else if (dest == "18606")
window.location = ppath + '6EA7AB87AB26EEABE040F28156A44161?p_dim='+ p1 + '&region=10798';
else if (dest == "18607")
window.location = ppath + '739A1C7A5437B737E040F28154A477C4?p_dim='+ p1 + '&region=10795&komite=1';
else if (dest == "18608")
window.location = ppath + '6EA7AB87AB1FEEABE040F28156A44161?p_dim='+ p1 + '&region=10796';
else if (dest == "18609")
window.location = ppath + '6EA7AB87AB1FEEABE040F28156A44161?p_dim='+ p1 + '&region=10797';
else if (dest == "18610")
window.location = ppath + '6EA7AB87AB1FEEABE040F28156A44161?p_dim='+ p1 + '&region=10798';
else if (dest == "22468")
window.location = ppath + '7399BB133B8186B8E040F28156A402DF?p_dim='+ p1 + '&region=10795&komite=2';
else if (dest == "22469")
window.location = ppath + '7399BB133B8186B8E040F28156A402DF?p_dim='+ p1 + '&region=10795&komite=4';
else if (dest == "22470")
window.location = ppath + '7399BB133B8186B8E040F28156A402DF?p_dim='+ p1 + '&region=10795&komite=3';
else if (dest == "22474")
window.location = ppath + '739A1C7A5437B737E040F28154A477C4?p_dim='+ p1 + '&region=10795&komite=2';
else if (dest == "22475")
window.location = ppath + '739A1C7A5437B737E040F28154A477C4?p_dim='+ p1 + '&region=10795&komite=4';
else if (dest == "22476")
window.location = ppath + '739A1C7A5437B737E040F28154A477C4?p_dim='+ p1 + '&region=10795&komite=3';
else if (dest == "23322")
window.location = ppath + '749EE04A6EDC5069E040F28156A452D4?p_dim='+ p1 + '&region=10795&komite=2';
else if (dest == "23323")
window.location = ppath + '749EE04A6EDC5069E040F28156A452D4?p_dim='+ p1 + '&region=10795&komite=4';
else if (dest == "23325")
window.location = ppath + '749EE04A6EDC5069E040F28156A452D4?p_dim='+ p1 + '&region=10795&komite=3';
else if (dest == "23769")
window.location = ipath + '/ekstern/artikkel?p_dim='+ p1;
else if (dest == "23771")
window.location = ipath + '/ekstern/frister?p_dim='+ p1;
else if (dest == "23773")
window.location = ipath + '/ekstern/offentlig-journal?p_dim='+ p1 + '&p_operation=new';
else if (dest == "23774")
window.location = ipath + '/ekstern/rek?p_dim='+ p1 + '&region=10795';
else if (dest == "23775")
window.location = ipath + '/ekstern/rek?p_dim='+ p1 + '&region=10797';
else if (dest == "23776")
window.location = ipath + '/ekstern/rek?p_dim='+ p1 + '&region=10798';
else if (dest == "23777")
window.location = ipath + '/ekstern/rek?p_dim='+ p1 + '&region=10796';
else if (dest == "23790")
window.location = ipath + '/ekstern/medlemmer/komite?p_dim='+ p1 + '&region=10795&komite=1';
else if (dest == "23791")
window.location = ipath + '/ekstern/medlemmer/komite?p_dim='+ p1 + '&region=10795&komite=2';
else if (dest == "23792")
window.location = ipath + '/ekstern/medlemmer/komite?p_dim='+ p1 + '&region=10795&komite=4';
else if (dest == "23793")
window.location = ipath + '/ekstern/medlemmer/komite?p_dim='+ p1 + '&region=10795&komite=3';
else if (dest == "23795")
window.location = ipath + '/ekstern/medlemmer?p_dim='+ p1 + '&region=10797';
else if (dest == "23796")
window.location = ipath + '/ekstern/medlemmer?p_dim='+ p1 + '&region=10798';
else if (dest == "23797")
window.location = ipath + '/ekstern/medlemmer?p_dim='+ p1 + '&region=10796';
else if (dest == "23798")
window.location = ppath + 'http://helseforskning.etikkom.no/xnet/project/rek';
else if (dest == "23881")
{ window.open(ipath + '/min-profil?page=main','_blank','scrollbars=yes,resizable=yes,menubar=1,toolbar=yes').focus();}
else if (dest == "23900")
window.location = ppath + '74F65644521D4867E040F28154A47078?p_dim='+ p1 + '&region=10797';
else if (dest == "23913")
window.location = ppath + '74F65644521D4867E040F28154A47078?p_dim='+ p1 + '&region=10798';
else if (dest == "23914")
window.location = ppath + '74F65644521D4867E040F28154A47078?p_dim='+ p1 + '&region=10796';
else if (dest == "23918")
window.location = ppath + '74F65C5C22DA480DE040F28156A44A92?p_dim='+ p1 + '&region=10795&komite=1';
else if (dest == "23921")
window.location = ppath + '74F5A4F0301D20E0E040F28156A450DC?p_dim='+ p1;
else if (dest == "23925")
window.location = ppath + '74F65C5C22DA480DE040F28156A44A92?p_dim='+ p1 + '&region=10795&komite=2';
else if (dest == "23926")
window.location = ppath + '74F65C5C22DA480DE040F28156A44A92?p_dim='+ p1 + '&region=10795&komite=4';
else if (dest == "23927")
window.location = ppath + '74F65C5C22DA480DE040F28156A44A92?p_dim='+ p1 + '&region=10795&komite=3';
else if (dest == "23936")
window.location = ppath + '74F6B23B9DC82D99E040F28156A42992?p_dim='+ p1;
else if (dest == "23937")
window.location = ppath + '74F6B23B9DD22D99E040F28156A42992?p_dim='+ p1 + '&region=10797';
else if (dest == "23938")
window.location = ppath + '74F6B23B9DD22D99E040F28156A42992?p_dim='+ p1 + '&region=10798';
else if (dest == "23939")
window.location = ppath + '74F6B23B9DD22D99E040F28156A42992?p_dim='+ p1 + '&region=10796';
else if (dest == "23940")
window.location = ppath + '74F6B23B9DDA2D99E040F28156A42992?p_dim='+ p1 + '&region=10795&komite=1';
else if (dest == "23942")
window.location = ppath + '74F6B23B9DDA2D99E040F28156A42992?p_dim='+ p1 + '&region=10795&komite=2';
else if (dest == "23943")
window.location = ppath + '74F6B23B9DDA2D99E040F28156A42992?p_dim='+ p1 + '&region=10795&komite=4';
else if (dest == "23944")
window.location = ppath + '74F6B23B9DDA2D99E040F28156A42992?p_dim='+ p1 + '&region=10795&komite=3';
 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 = "/portal/pls/portal/iknowbase.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;
             }
            
function set_new_version (doc_id, version_no, site_id)
        {
         var run_url = "/portal/pls/portal/iknowbase.ikb_ce_custom_editor_portlet.switch_version?p_document_id="+ encodeURIComponent(doc_id)+ "&p_site_id="+ encodeURIComponent(site_id)+ "&p_version_no="+ encodeURIComponent(version_no);

         var code = jQuery.ajax({
          url: run_url,
          async: false
         }).responseText;

	if (code != "OK")
		alert(code);
	else
        	window.location.reload();
        }
