//crunchinatorvariable_compressed
function fRestartObjComplete(sData){fDebugPoint('fRestartObjComplete','object restart returned result '+sData);if(sData=='gtwebpublishervariable_authenticationrequired'){fAuthenticateAndRetry('fRestartObj()');return false;}fLoadIntray();fConfirm('Restart Complete',sData,'ok','info');}function fDeleteObjComplete(sData){fDebugPoint('fDeleteObjComplete','object delete returned result '+sData);if(sData=='gtwebpublishervariable_authenticationrequired'){fAuthenticateAndRetry('fDeleteObj()');return false;}with(oForm){removeAttribute('deleteString');removeAttribute('deleteType');objectname.value='';}if(document.all.oIntray){if(oForm.all.objectSelect)fLoadIntray();else fLoadTemplateManager();}else{if(document.aPrivileges.indexOf('show_intray')>-1)fLoadIntray();else fLoadWelcome();}fConfirm('Deletion Complete',sData,'ok','info');}function fSubmitObjComplete(sData){fDebugPoint('fSubmitObjComplete','object submit returned result '+sData);if(sData=='gtwebpublishervariable_authenticationrequired'){fAuthenticateAndRetry('fSubmitObj()');return false;}with(oForm){fAnimateButton(dosubmit,'inert');objectname.value='';removeAttribute('submitObjectString');removeAttribute('submitGroupString');}if(document.aPrivileges.indexOf('show_intray')>-1)fLoadIntray();else fLoadWelcome();fConfirm('Submission Complete',sData,'ok','info');}function fConfirmDeleteObj(sData){fDebugPoint('fConfirmDeleteObj','confirming delete');if(!fConfirm('Confirm Delete',sData,'yes no','default')){fUnWait();oForm.removeAttribute('deleteString');oForm.removeAttribute('deleteType');if(document.all.oEditor)fDisableByID('oEditor');if(document.all.oIntray)fDisableByID('oIntray');return false;}with(oForm)oDownload2.startDownload('http://gtwebpublisher.co.uk/cgi-bin/webpublisher4/delete.cgi?platform=IE&deleteaction=submit&deletetype='+getAttribute('deleteType')+'&sessionid='+sgSessionID+'&objectname='+getAttribute('deleteString'),fDeleteObjComplete);}function fConfirmSubmitObj(sData){fDebugPoint('fConfirmSubmitObj','confirming submit');if(sData=='gtwebpublishervariable_authenticationrequired'){fAuthenticateAndRetry('fSubmitObj');return false;}if(!fConfirm('Confirm Submit',sData,'yes no','default')){oForm.dosubmit.disabled=false;fAnimateButton(oForm.dosubmit,'inert');fDisableByID('oEditor');with(oForm){removeAttribute('submitObjectString');removeAttribute('submitGroupString');}fUnWait();return false;}with(oForm)oDownload2.startDownload('http://gtwebpublisher.co.uk/cgi-bin/webpublisher4/submit_object.cgi?platform=IE&workflowaction=submit&sessionid='+sgSessionID+'&objectname='+getAttribute('submitObjectString')+'&groupname='+getAttribute('submitGroupString'),fSubmitObjComplete);}function fDirectOpen(sObjectname,sGroupname){fDebugPoint('fDirectOpen','open file '+sObjectname+' in group '+sGroupname);fWait('Opening '+sObjectname.replace(/_/ig,' '));with(oForm){if(sGroupname!=null)groupname.value=sGroupname;if(sObjectname!=null)objectname.value=sObjectname;if((objectname.value=='')||(sgSessionID==null))return;fDownload('opensave_webpage.cgi?sessionid='+sgSessionID+'&wpaction=open&objectname='+escape(objectname.value),oDownload,sgSessionID,fShowFile,null);}}function fShowFile(sData){fDebugPoint('fShowFile','Showing File');fDisableByID('oEditor');if(document.all.oIntray)document.all.oIntray.id='oEditor';fSetEditorEdit(sData);with(document.all.oEditor){if(getAttribute('barshidden')!=null)fShowToolbars(barshidden);if(getAttribute('editorMode')!=null)fShowHideHTML(editorMode);}document.title=oForm.objectname.value+' - GT webPublisher4';oForm.pagecontent.changed=false;fUnWait();}function fCheckSaveComplete(){if((document.saveWin!=null)&&(!document.saveWin.closed))setTimeout('fCheckSaveComplete()',500);else{fUnWait();document.title=oForm.objectname.value+' - GT webPublisher4';oForm.pagecontent.changed=false;fDisableByID('oEditor');fAnimateButton(oForm.save,'inert');document.saveWin=null;}}function fSave(){fDebugPoint('fSave','Begining save');fWait('Saving File to Server');if(!fSetFormFields())return;if(oForm.objectname.value=='')fPresave();else{document.saveWin=window.open('about:blank',oForm.target,'scrollbars=auto,status=no,width=350,height=100,top='+window.top+',left='+window.left+',borderStyle=none');setTimeout('fCheckSaveComplete()',500);oForm.submit();}}function fPresave(){fDebugPoint('fPresave','creating file on server');fWait('Creating new file on server');var sObjectname=fPrompt('New Page','Enter a name for the page','','ok cancel','default');if(sObjectname==''){fConfirm('No Filename','Please enter a name for the page','ok','info');fSave();return;}if(sObjectname==null){fDisableByID('oEditor');fUnWait();return;}oDownload.startDownload('http://gtwebpublisher.co.uk/cgi-bin/webpublisher4/create_webpage.cgi?sessionid='+sgSessionID+'&platform=IE&objectname='+escape(sObjectname)+'&groupname='+escape(oForm.groupname.value),fPresaveComplete);}fRegister('files.js v 1812020147');
