home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2 (Special) / PCPro-2b.iso / Demos / Macromedia / CourseBuilder / CourseBuilderInstaller.exe / Disk1 / data1.cab / Dreamweaver-unInstalled / Configuration / Objects / Common / CourseBuilder Interaction.js < prev   
Encoding:
JavaScript  |  1999-12-06  |  792 b   |  40 lines

  1. // Copyright 1999 Macromedia, Inc. All rights reserved.
  2.  
  3. function launchAttainObj() {
  4.   
  5.   if (!regCheck()) {
  6.     window.close();
  7.     return;
  8.   }
  9.   
  10.   if (!siteExists()) {
  11.     window.close();
  12.     return;
  13.   } 
  14.   
  15.   if (!documentSaved()) {
  16.     window.close();
  17.     return;
  18.   } 
  19.   
  20.   if (isTemplate() || isDependent()) { 
  21.     if (!hasCBTemplateFix())
  22.       dreamweaver.popupCommand("CourseBuilder Template Fix.htm")
  23.     if (!hasCBTemplateFix()) { 
  24.       window.close();
  25.       return;
  26.     }    
  27.   }  
  28.   
  29.   if (needToCopySupportFiles()) { 
  30.     copySupportFiles(true, true, true);
  31.     if (needToCopySupportFiles()) {
  32.       window.close();
  33.       return;
  34.   } }
  35.   
  36.   DWAext.GALLERY_PAGE = true;
  37.   dreamweaver.popupCommand("CourseBuilder Interaction.htm");  
  38. }
  39.   
  40.