//JavaScript/PopupFunctions.inc T=354 var ow=null; function oUL(){ if(ow!=null) ow.close(); } onunload=oUL; function OPU(U,N,O){ if(ow){ ow.close(); ow=null; } ow=self.open(U,N,O); } var PORO=null; function DPUR(PUT,rc){ var F=document.forms["MainForm"]; if(PUT=="SOIF"){ if(rc==0&&CS==1){ CS=; var AS="/.Templates/FOV2-0000F38D/S0000CC20/FormSave?Clear=0&Close=-1&TargetURL=/.Templates/FOV2-0000F38D/S0000CC20"; if(PORO!=null) AS+="&"+uesc(PORO); F.action=AS; F.submit(); } }else if(PUT="ICON"){ if(rc==0&&PORO!=null){ var M=document.images["Icon:"+PORO[0]+(PORO[1]!=-1?"."+PORO[1]:"")]; document.forms["MainForm"].elements["FieldID:"+PORO[0]+(PORO[1]!=-1?"."+PORO[1]:"")+"=LONG"].value=PORO[2]; M.src="/Icons/d"+PORO[2]; } PORO=null; } } function OOW(){ OPU('/.Templates/FOV2-0000F38D/S0000CC20?Close=-1&FormID=172 ','OPTWIN','width=350,height=195,resizable=yes'); } function OIW(event,f,i){ var cs=document.forms["MainForm"].elements["FieldID:"+f+(i!=-1?"."+i:"")+"=LONG"].value; var nf=(event.ctrlKey||event.altKey)?1:0; var oi=event.shiftKey?1:0; event.cancelBubble=true; event.returnValue=false; OPU('/.Templates/Commands/IconPicker.shtml?FieldID='+f+'&Index='+i+'&CurSelect='+cs+'&Size=32&NoFilter='+nf+'&OutputIDs='+oi,'ICONWIN','width=280,height='+(oi?'400':'275')+',resizable=yes,status=no'); return false; } function ODW(){ OPU("/.Templates/FOV2-0000F38D/S0000CC20?Templates=EF&FormID=186","EFWIN","width=400,height=500,resizable=yes,status=no,dependent=yes"); return false; } //*PopupFunctions T=355