var pathName = leftOf('/',location.pathname); function ReplaceViewTwisties() { for (var i=0; i=0;i--) { comp=lrgstring.substring(i-1,strlen2) comp = comp.substring(0,strlen1) if (comp == smstring) { foundat = i break } } return lrgstring.substring(foundat,255) } function imgSkift(imgDocID,imgObjName){ document.images[imgDocID].src = imgObjName; } function ReturnTo(returnType,returnName){ SetCookie ('ReturnTo', '', '/' ,'', returnType+'|'+returnName); } function windowOpener(target, width, height) { //controlWindow=window.open(target,"","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,width=" + width + ",height=" + height + ""); controlWindow=window.open(target,"","status=no,scrollbars=yes,left=200, top=200, width=" + width + ",height=" + height + ""); } function showActions(){ document.all.Actions.style.cssText = 'display:inline;'; //document.all.SubLevelActionBar.style.cssText = 'display:inline;'; } function hideActions(){ //alert('test'); document.all.Actions.style.cssText = 'display:none;'; //document.all.SubLevelActionBar.style.cssText = 'display:none;'; } function doPrint(docID) { winWidth=screen.width-300; winTop=screen.height-400; winTop=winTop/2; winTop=winTop-15; winLeft=100; detailsWindow=window.open("../(print)/"+docID, 'Print', 'dependent,scrollbars=yes,innerheight=280,innerwidth=400,width=' + winWidth + ',left=' + winLeft + ',top=' + winTop + ''); detailsWindow.moveTo(winLeft,winTop); detailsWindow.focus(); detailsWindow.print(); } function doPrintPDiv(pdivsite,docID) { winWidth=screen.width-300; winTop=screen.height-400; winTop=winTop/2; winTop=winTop-15; winLeft=100; detailsWindow=window.open("http://www.niro.com/ndk_website/" + pdivsite + "/cmsdoc.nsf/(extprint)/" +docID, 'Print', 'dependent,scrollbars=yes,innerheight=280,innerwidth=400,width=' + winWidth + ',left=' + winLeft + ',top=' + winTop + ''); detailsWindow.moveTo(winLeft,winTop); detailsWindow.focus(); detailsWindow.print(); } function visInfo ( arg ) { if (arg.substr(0,2)=='__'){ } else { window.open ( '/'+document.all.contact.value+'/popcontact?openagent&id='+ arg, '', 'width=300,height=300,scrollbars=0,status=0' ); } } function mailForm(id) { window.open(".." +"/SendMail?openform&id=" + id , "Mail" , "scrollbars=yes, left=100, top=100, height=560, width=420, status"); } function mailForm2() { // valider // set cookie // send mail .. agent via location href... } function mailFormContact() { window.open(".." +"/SendMailContact?openform" , "Mail" , "scrollbars=yes, left=100, top=100, height=530, width=420, status"); } function pop() { if (document.all.PopUpImg.value!=''){ var poppath='../../cmsresources.nsf/filenames/'+document.all.PopUpImg.value; // setting the placement for the popup window x = (640 - 465)/2, y = (480 - 250)/2; if (screen) { y = (screen.availHeight - 340)/2; x = (screen.availWidth - 465)/2; } if (screen.availWidth > 1800) { x = ((screen.availWidth/2) - width)/2; } popUpWin = window.open(poppath,'PopMeUp','resizeable=no,scrollbars=no,width=550,height=400,screenX='+x+',screenY='+y+',top='+y+',left='+x); self.history.go(-1); } } function showActions2(){ //document.all.topboksnaviright.style.cssText = 'display:inline;'; } function insertCode(type) { if (document.selection && document.selection.createRange) { var range = document.selection.createRange(); var str = range.text; if (str==''){alert('You must select a text');return false} else{ range.execCommand('copy'); } if (type== 'tm') { var textType =''+str+'TM'; } if (type== 'rm') { var textType =''+str+' ®'; // var textType =''+str+'®'; } if (type== 'sub') { var textType =''+str+''; } if (type== 'super') { var textType =''+str+''; } range.execCommand('Paste','', textType); } } //All code between the dotted lines is mandatory //-------------------------------------------------------- var loc = location.pathname; var DatabasePath = loc.substr(0, loc.indexOf('.nsf')+4); //functions to get and set data function loadEditor() { var content = document.all.DHTMLBody.value; if (content.charAt(0) == '[') content = content.substr(1,content.length-2); var svrname = location.hostname; //FIND OUT SERVER NAME AND GIVE ABSOLUTE URL-PATH TO DHTML (to be able to see images in editmode var DatabaseressPath = DatabasePath.substr(0, DatabasePath.indexOf('.nsf')-6)+'cmsresources.nsf'; newstring2 = "http://" + svrname + DatabaseressPath contentArray=content.split( newstring2); content=contentArray.join( "../cmsresources.nsf") ; //alert(content); /* //FIND OUT CURRENT SERVER NAME AND REPLACE ".." IN URL newstring = "http://" + svrname+DatabasePath; contentArray=content.split(".."); content=contentArray.join( newstring ) ; */ /////////// document.all.DHTMLEdit1.DOM.body.style.fontFamily="verdana"; document.all.DHTMLEdit1.DOM.body.style.fontSize="9px"; document.all.DHTMLEdit1.DOM.body.innerHTML = content ; document.all.DHTMLEdit1.focus(); } var counter = 0; function submitHTML() { win1 = window.frames['FCKeditor1___Frame']; win2 = win1.document.parentWindow; win3 = win2.frames['eEditorArea']; win4 = win3.document; text = win4.body.innerHTML; var theData = text; //alert(win4.getElementById('eWysiwygCell_status').value); //document.getElementById('Body').value = "[" + text + "]" ; //var theData = document.all.FCKeditor1; if (theData.charAt(0) =='<') { var data =theData; //REPLACE CURRENT SERVER NAME WITH ".." IN URL var svrname = location.hostname; newstring = "http://" + svrname + DatabasePath; contentArray=data.split( newstring ); data=contentArray.join( ".." ) ; //REPLACE CURRENT URLPATH TO CMSRESOURCES WITH A RELATIVE var DatabaseressPath = DatabasePath.substr(0, DatabasePath.indexOf('.nsf')-6)+'cmsresources.nsf'; //alert(DatabaseressPath); newstring2 = "http://" + svrname + DatabaseressPath //contentArray=data.split( newstring2 ); splitval = "../cmsresources.nsf"; contentArray=data.split( splitval); data=contentArray.join(newstring2); //data = data.replace(/cmsresources.nsf/,newstring2); //data = data.replace(/..\//,newstring2); //////////// } else{ var data = "

"+theData+"

" } var content = document.getElementById("rtStore"); content.value = "[" + data+"]"; //alert(content.value); } function submitHTML2() { win1 = window.frames['FCKeditor_elm1___Frame']; win2 = win1.document.parentWindow; win3 = win2.frames['eEditorArea']; win4 = win3.document; text = win4.body.innerHTML; var theData = text; if (theData.charAt(0) =='<') { var data =theData; //REPLACE CURRENT SERVER NAME WITH ".." IN URL var svrname = location.hostname; newstring = "http://" + svrname + DatabasePath; contentArray=data.split( newstring ); data=contentArray.join( ".." ) ; //REPLACE CURRENT URLPATH TO CMSRESOURCES WITH A RELATIVE var DatabaseressPath = DatabasePath.substr(0, DatabasePath.indexOf('.nsf')-6)+'cmsresources.nsf'; newstring2 = "http://" + svrname + DatabaseressPath splitval = "../cmsresources.nsf"; contentArray=data.split( splitval); data=contentArray.join(newstring2); //////////// } else{ var data = theData; } var content = document.getElementById("rtStore_1"); content.value = "[" + data+"]"; // erez stuff... data2= document.getElementById("dsperezref_2").value; alert(data2); content = document.getElementById("erezref_2"); content.value = "[" + data2+"]"; } //----------------------------------------------- function dtStamp() { var sel = document.all.DHTMLEdit1.DOM.selection; var now = new Date(); var dateText = "Document created on: " + now.format(); range = sel.createRange(); range.pasteHTML(dateText); document.DHTMLEdit1.focus(); } function loadURL() { if (event.keyCode == 13) { docComplete=false; document.all.DHTMLEdit1.LoadURL(document.all.URL_VALUE.value); document.DHTMLEdit1.focus(); } } function saveAs() { document.all.DHTMLEdit1.SaveDocument("" , true) } function fileOpen() { document.all.DHTMLEdit1.LoadDocument("" , true) } function ChangeLanguage( languageCode ) { urlpath = window.location.href.substring(0,window.location.href.lastIndexOf('&language')) ; if(!confirm("Please save any changes before you change language")) if(urlpath==""){ window.location.href = window.location.href + "&language=" + languageCode ; }else{ window.location.href = urlpath + "&language=" + languageCode ; };return " "; } function doRefresh(type,field){ if(type=='PATL'){ val = document.getElementById('PublishActionTypeList').value; if(val=="2"){ document.getElementById('MailActionType').style.display = ''; document.getElementById('PublishActionType').value = '2'; }else{ document.getElementById('MailActionType').style.display = 'none'; document.getElementById('PublishActionType').value = '1'; } }else if(type=='PDF'){ val = document.getElementById('PDFPopupFeatureList').value; //alert(val); if(val=="1"){ document.getElementById('PDFAction').style.display = 'none'; document.getElementById('PDFPopupFeature').value = '1'; }else if(val=="2"){ document.getElementById('PDFAction').style.display = 'block'; document.getElementById('PDFPopupFeature').value = '2'; }else if(val=="3"){ document.getElementById('PDFAction').style.display = ''; document.getElementById('PDFPopupFeature').value = '3'; }else{ document.getElementById('PDFAction').style.display = 'none'; document.getElementById('PDFPopupFeature').value = '1'; } }else if(type=='Menutype'){ if (document.forms[0].MenuType[0].checked){ val ="0"; }else{ val ="1"; } if(val=="0"){ document.getElementById('DocTemplateArea').style.display = ''; document.getElementById('FPDocTemplateArea').style.display = ''; document.getElementById('SearchEngineArea').style.display = ''; document.getElementById('FCKEditorArea').style.display = ''; document.getElementById('FCKEditorArea2').style.display = ''; document.getElementById('MailToArea').style.display = ''; document.getElementById('AttachArea').style.display = ''; document.getElementById('ChildListArea').style.display = ''; document.getElementById('LinkwordsArea').style.display = ''; document.getElementById('ExternalLinksArea').style.display = 'none'; document.getElementById('SearchEngineContent').style.borderBottomWidth = '0px'; }else{ document.getElementById('DocTemplateArea').style.display = 'none'; document.getElementById('FPDocTemplateArea').style.display = 'none'; //document.getElementById('SearchEngineArea').style.display = 'none'; document.getElementById('FCKEditorArea').style.display = 'none'; document.getElementById('FCKEditorArea2').style.display = 'none'; document.getElementById('MailToArea').style.display = 'none'; document.getElementById('AttachArea').style.display = 'none'; document.getElementById('ChildListArea').style.display = 'none'; document.getElementById('LinkwordsArea').style.display = 'none'; document.getElementById('PDivArea').style.display = 'none'; document.getElementById('ContactArea').style.display = 'none'; document.getElementById('SearchEngineContent').style.borderBottomColor = '#1a2025'; document.getElementById('SearchEngineContent').style.borderBottomWidth = '1px'; document.getElementById('SearchEngineContent').style.borderBottomStyle = 'Solid'; document.getElementById('ExternalLinksArea').style.display = ''; } }else if(type=='DocType'){ val = document.getElementById('DocType').value; if(val=="1"){ // document document.getElementById('NewsArea').style.display = 'none'; document.getElementById('ContactArea').style.display = 'none'; document.getElementById('PDivArea').style.display = 'none'; document.getElementById('FCKEditorArea').style.display = ''; document.getElementById('FCKEditorArea2').style.display = 'none'; document.getElementById('MailToArea').style.display = ''; document.getElementById('AttachArea').style.display = ''; document.getElementById('ChildListArea').style.display = 'none'; document.getElementById('LinkwordsArea').style.display = ''; document.getElementById('inmenubox').style.display = ''; document.getElementById('SearchArea').style.display = 'none'; document.getElementById('fck1').style.display = 'block'; document.getElementById('ShowEditor').value = '1'; document.getElementById('Explanation1').style.display = ''; document.getElementById('Explanation2').style.display = 'none'; document.getElementById('Explanation7').style.display = 'none'; document.getElementById('Explanation15').style.display = 'none'; document.getElementById('Explanation6').style.display = 'none'; }else if(val=="27"){ // document document.getElementById('NewsArea').style.display = 'none'; document.getElementById('ContactArea').style.display = 'none'; document.getElementById('PDivArea').style.display = 'none'; document.getElementById('FCKEditorArea').style.display = 'none'; document.getElementById('FCKEditorArea2').style.display = 'block'; document.getElementById('MailToArea').style.display = ''; document.getElementById('AttachArea').style.display = ''; document.getElementById('ChildListArea').style.display = 'none'; document.getElementById('LinkwordsArea').style.display = ''; document.getElementById('inmenubox').style.display = ''; document.getElementById('SearchArea').style.display = 'none'; document.getElementById('fck2').style.display = 'block'; document.getElementById('ShowEditor').value = '1'; document.getElementById('Explanation1').style.display = ''; document.getElementById('Explanation2').style.display = 'none'; document.getElementById('Explanation7').style.display = 'none'; document.getElementById('Explanation15').style.display = 'none'; document.getElementById('Explanation6').style.display = 'none'; }else if(val=="1_2"){ // document with list document.getElementById('NewsArea').style.display = 'none'; document.getElementById('ContactArea').style.display = 'none'; document.getElementById('PDivArea').style.display = 'none'; document.getElementById('FCKEditorArea').style.display = 'none'; document.getElementById('FCKEditorArea2').style.display = ''; document.getElementById('MailToArea').style.display = ''; document.getElementById('AttachArea').style.display = ''; document.getElementById('ChildListArea').style.display = ''; document.getElementById('LinkwordsArea').style.display = ''; document.getElementById('inmenubox').style.display = ''; document.getElementById('SearchArea').style.display = 'none'; document.getElementById('ShowEditor').value = '1'; document.getElementById('Explanation1').style.display = ''; document.getElementById('Explanation2').style.display = 'none'; document.getElementById('Explanation7').style.display = 'none'; document.getElementById('Explanation15').style.display = 'none'; document.getElementById('Explanation6').style.display = 'none'; }else if(val=="2"){ // contact document.getElementById('ContactArea').style.display = ''; document.getElementById('FCKEditorArea').style.display = 'none'; document.getElementById('FCKEditorArea2').style.display = 'none'; document.getElementById('MailToArea').style.display = ''; document.getElementById('AttachArea').style.display = 'none'; document.getElementById('ChildListArea').style.display = 'none'; document.getElementById('LinkwordsArea').style.display = ''; document.getElementById('PDivArea').style.display = 'none'; document.getElementById('NewsArea').style.display = 'none'; document.getElementById('inmenubox').style.display = ''; document.getElementById('SearchArea').style.display = 'none'; document.getElementById('FPDocTemplateArea').style.display = 'none'; document.getElementById('Explanation1').style.display = 'none'; document.getElementById('Explanation2').style.display = ''; document.getElementById('Explanation7').style.display = 'none'; document.getElementById('Explanation15').style.display = 'none'; document.getElementById('Explanation6').style.display = 'none'; }else if(val=="5"){ // forsiden document.getElementById('NewsArea').style.display = 'none'; document.getElementById('ContactArea').style.display = 'none'; document.getElementById('FCKEditorArea').style.display = 'none'; document.getElementById('PDivArea').style.display = 'none'; document.getElementById('MailToArea').style.display = 'none'; document.getElementById('AttachArea').style.display = 'none'; document.getElementById('ChildListArea').style.display = 'none'; document.getElementById('LinkwordsArea').style.display = 'none'; document.getElementById('inmenubox').style.display = 'none'; document.getElementById('SearchArea').style.display = 'none'; document.getElementById('DocTemplateArea').style.display = ''; document.getElementById('Explanation1').style.display = 'none'; document.getElementById('Explanation2').style.display = 'none'; document.getElementById('Explanation7').style.display = 'none'; document.getElementById('Explanation15').style.display = 'none'; document.getElementById('Explanation6').style.display = 'none'; }else if(val=="6"){ // search document.getElementById('NewsArea').style.display = 'none'; document.getElementById('ContactArea').style.display = 'none'; document.getElementById('FCKEditorArea').style.display = 'none'; document.getElementById('PDivArea').style.display = 'none'; document.getElementById('MailToArea').style.display = 'none'; document.getElementById('AttachArea').style.display = 'none'; document.getElementById('ChildListArea').style.display = 'none'; document.getElementById('LinkwordsArea').style.display = 'none'; document.getElementById('inmenubox').style.display = ''; document.getElementById('SearchArea').style.display = 'none'; document.getElementById('Explanation1').style.display = 'none'; document.getElementById('Explanation2').style.display = 'none'; document.getElementById('Explanation7').style.display = 'none'; document.getElementById('Explanation6').style.display = ''; document.getElementById('Explanation15').style.display = 'none'; }else if(val=="7"){ // news document.getElementById('NewsArea').style.display = 'none'; document.getElementById('ContactArea').style.display = 'none'; document.getElementById('FCKEditorArea').style.display = 'none'; document.getElementById('FCKEditorArea2').style.display = ''; document.getElementById('PDivArea').style.display = 'none'; document.getElementById('MailToArea').style.display = ''; document.getElementById('AttachArea').style.display = ''; document.getElementById('ChildListArea').style.display = 'none'; document.getElementById('LinkwordsArea').style.display = ''; document.getElementById('inmenubox').style.display = 'none'; document.getElementById('SearchArea').style.display = 'none'; document.getElementById('fck2').style.display = 'block'; document.getElementById('Explanation1').style.display = 'none'; document.getElementById('Explanation2').style.display = 'none'; document.getElementById('Explanation7').style.display = ''; document.getElementById('Explanation15').style.display = 'none'; document.getElementById('Explanation6').style.display = 'none'; }else if(val=="8"){ // sitemap document.getElementById('NewsArea').style.display = 'none'; document.getElementById('ContactArea').style.display = 'none'; document.getElementById('FCKEditorArea').style.display = 'none'; document.getElementById('PDivArea').style.display = 'none'; document.getElementById('MailToArea').style.display = 'none'; document.getElementById('AttachArea').style.display = 'none'; document.getElementById('ChildListArea').style.display = 'none'; document.getElementById('LinkwordsArea').style.display = 'none'; document.getElementById('inmenubox').style.display = 'none'; document.getElementById('SearchArea').style.display = 'none'; document.getElementById('Explanation1').style.display = 'none'; document.getElementById('Explanation2').style.display = 'none'; document.getElementById('Explanation7').style.display = 'none'; document.getElementById('Explanation15').style.display = 'none'; document.getElementById('Explanation6').style.display = 'none'; }else if(val=="15"){ // pdiv document.getElementById('PDivArea').style.display = ''; document.getElementById('ContactArea').style.display = 'none'; document.getElementById('NewsArea').style.display = 'none'; document.getElementById('FCKEditorArea').style.display = 'none'; document.getElementById('MailToArea').style.display = ''; document.getElementById('AttachArea').style.display = 'none'; document.getElementById('ChildListArea').style.display = 'none'; document.getElementById('LinkwordsArea').style.display = ''; document.getElementById('inmenubox').style.display = ''; document.getElementById('SearchArea').style.display = 'none'; document.getElementById('Explanation1').style.display = 'none'; document.getElementById('Explanation2').style.display = 'none'; document.getElementById('Explanation7').style.display = 'none'; document.getElementById('Explanation15').style.display = ''; document.getElementById('Explanation6').style.display = 'none'; }else if(val=="25"){ // Jobs document.getElementById('PDivArea').style.display = 'none'; document.getElementById('ContactArea').style.display = 'none'; document.getElementById('NewsArea').style.display = 'none'; document.getElementById('FCKEditorArea').style.display = 'none'; document.getElementById('FCKEditorArea2').style.display = 'block'; document.getElementById('MailToArea').style.display = ''; document.getElementById('AttachArea').style.display = 'none'; document.getElementById('ChildListArea').style.display = 'none'; document.getElementById('LinkwordsArea').style.display = ''; document.getElementById('inmenubox').style.display = ''; document.getElementById('SearchArea').style.display = 'none'; document.getElementById('fck2').style.display = 'block'; document.getElementById('Explanation1').style.display = 'none'; document.getElementById('Explanation2').style.display = 'none'; document.getElementById('Explanation7').style.display = 'none'; document.getElementById('Explanation15').style.display = 'none'; document.getElementById('Explanation6').style.display = 'none'; }else if(val=="30"){ // language document.getElementById('PDivArea').style.display = 'none'; document.getElementById('ContactArea').style.display = 'none'; document.getElementById('NewsArea').style.display = 'none'; document.getElementById('FCKEditorArea').style.display = 'none'; document.getElementById('FCKEditorArea2').style.display = 'none'; document.getElementById('MailToArea').style.display = 'none'; document.getElementById('AttachArea').style.display = 'none'; document.getElementById('ChildListArea').style.display = 'none'; document.getElementById('LinkwordsArea').style.display = 'none'; document.getElementById('inmenubox').style.display = ''; document.getElementById('SearchArea').style.display = 'none'; document.getElementById('fck2').style.display = 'none'; document.getElementById('Explanation1').style.display = 'none'; document.getElementById('Explanation2').style.display = 'none'; document.getElementById('Explanation7').style.display = 'none'; document.getElementById('Explanation15').style.display = 'none'; document.getElementById('Explanation6').style.display = 'none'; } }else if(type=='ContactNum'){ val = document.getElementById('LocationNum').value; if(val=="1"){ document.getElementById('Contact2').style.display = 'none'; document.getElementById('Contact3').style.display = 'none'; document.getElementById('Contact4').style.display = 'none'; }else if(val=="2"){ document.getElementById('Contact2').style.display = ''; document.getElementById('Contact3').style.display = 'none'; document.getElementById('Contact4').style.display = 'none'; }else if(val=="3"){ document.getElementById('Contact2').style.display = ''; document.getElementById('Contact3').style.display = ''; document.getElementById('Contact4').style.display = 'none'; }else if(val=="4"){ document.getElementById('Contact2').style.display = ''; document.getElementById('Contact3').style.display = ''; document.getElementById('Contact4').style.display = ''; } }else{ } } function SetPdfUrl(fileUrl ){ document.getElementById('FileDownLoad').value = fileUrl; } function getPDivDialog(isnew){ if(isnew=="0"){ path = ""; }else{ path = "../"; } window.open(path + "WebDlgPdivDoc?openform","test","left=600, top=500 , toolbars=no,location=no,status=no,scrollbars=no,width=400, height=400"); } function getSEODialog(unid,isnew){ if(isnew=="0"){ path = ""; }else{ path = "../"; } window.open(path + "WebDlgSEO?openform&docid=" + unid,"test","left=350, top=500 , toolbars=no,location=no,status=no,scrollbars=no,width=400, height=280"); } function getSiteMapDialog(isnew){ if(isnew=="0"){ path = ""; }else{ path = "../"; } var x=event.x+document.body.scrollLeft + 20; var y=event.y+document.body.scrollTop + 40; window.open(path + "WebDlgExtLink?openform&ref=thisdb&type=thissitetree","test","left=" + x + ", top=" + y + " , toolbars=no,location=no,status=no,scrollbars=no,width=400, height=400"); } function getSiteMapDialogLevel1(isnew,ref, ref2){ if(isnew=="0"){ path = ""; }else{ path = "../"; } var x=event.x+document.body.scrollLeft + 20; var y=event.y+document.body.scrollTop + 40; window.open(path + "WebDlgFPLink?openform&ref=thisdb&field=" + ref + "&field2=" + ref2 + "&type=thissitetree","test","left=" + x + ", top=" + y + " , toolbars=no,location=no,status=no,scrollbars=no,width=400, height=400"); } function getOnFPDialog(isnew,ref, ref2){ if(isnew=="0"){ path = ""; }else{ path = "../"; } var x=event.x+document.body.scrollLeft + 20; var y=event.y+document.body.scrollTop + 40; window.open(path + "WebDlgOnFPLink?openform&ref=thisdb&field=" + ref + "&field2=" + ref2 + "&type=thissitetree","test","left=" + x + ", top=" + y + " , toolbars=no,location=no,status=no,scrollbars=yes,width=450, height=420"); } function OpenRessourceView(field,ref){ divrefpos = field.indexOf('_'); divref = field.substring(divrefpos+1); //alert(divref); //alert(ref); //document.getElementById('pic' + divref + 'type_hidden').value = '0'; /* document.getElementById('resslabel' + divref).innerHTML = 'Image'; document.getElementById('erezbox' + divref).style.visibility='hidden'; document.getElementById('erezbox' + divref).style.display='none'; document.getElementById('picrefbox' + divref).style.visibility = 'visible'; document.getElementById('picrefbox' + divref).style.display='block'; document.getElementById('erezref_' +divref).value=""; */ SetCookie ('ReturnField', '', '/' ,'', field); window.open(ref) } function OpenPDFRessourceView(field,ref){ divrefpos = field.indexOf('_'); divref = field.substring(divrefpos+1); SetCookie ('ReturnField', '', '/' ,'', field); window.open(ref) } function NewPDFRessource(field,ref){ divrefpos = field.indexOf('_'); divref = field.substring(divrefpos+1); SetCookie ('ReturnFieldQuick', '', '/' ,'', field); window.open(ref) } function NewRessource(field,ref){ divrefpos = field.indexOf('_'); divref = field.substring(divrefpos+1); /* document.getElementById('pic' + divref + 'type_hidden').value = '0'; document.getElementById('resslabel' + divref).innerHTML = 'Image'; document.getElementById('erezbox' + divref).style.visibility='hidden'; document.getElementById('erezbox' + divref).style.display='none'; document.getElementById('picrefbox' + divref).style.visibility = 'visible'; document.getElementById('picrefbox' + divref).style.display='block'; document.getElementById('erezref_' +divref).value=""; */ SetCookie ('ReturnFieldQuick', '', '/' ,'', field); window.open(ref) } function NewRessource2(field,ref){ divrefpos = field.indexOf('_'); divref = field.substring(divrefpos+1); SetCookie ('ReturnFieldQuick', '', '/' ,'', field); window.open(ref) } function eRezRessource(field,divref,ref){ /* document.getElementById('pic' + divref + 'type_hidden').value = '1'; document.getElementById('resslabel' + divref).innerHTML = 'eRez:'; document.getElementById('picrefbox' + divref).style.visibility='hidden'; document.getElementById('picrefbox' + divref).style.display='none'; document.getElementById('erezbox' + divref).style.visibility = 'visible'; document.getElementById('erezbox' + divref).style.display='block'; */ //SetCookie ('ReturnFieldQuick', '', '/' ,'', field); window.open(ref); } function OpenFlashDialog(field,ref){ var x=event.x+document.body.scrollLeft + 20; var y=event.y+document.body.scrollTop + 40; window.open(ref,"test","left=" + x + ", top=" + y + " , toolbars=no,location=no,status=no,scrollbars=no,width=410, height=350"); } function showjob(ref){ var unid = document.all.jobslist.options[document.all.jobslist.selectedIndex].value; if(document.getElementById("DocType")==null){ window.location.href = "../webdoc/" + unid; }else{ alert("opens jobdocument"); } } // Validerings funktioner til Forms indst via templateoversigten function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i