home *** CD-ROM | disk | FTP | other *** search
/ Practical Internet Web Designer 86 / PIWD86.iso / pc / contents / dreamweaver / software / dwmx2004.exe / Disk1 / data1.cab / Configuration_En / Commands / Save Page Design.js < prev    next >
Encoding:
JavaScript  |  2003-09-05  |  877 b   |  35 lines

  1. // Copyright 2003 Macromedia, Inc. All rights reserved.
  2.  
  3. // *************** GLOBALS VARS *****************
  4. var helpDoc = MM.HELP_savePageDesign; 
  5. // ******************* API **********************
  6.  
  7. function commandButtons()
  8. {
  9.   return new Array(MM.BTN_OK, "clickedOK()", MM.BTN_Cancel, "clickedCancel()", MM.BTN_Help, "displayHelp()"); 
  10. }
  11.  
  12. //***************** LOCAL FUNCTIONS  ******************
  13.  
  14. function initializeUI() {
  15. // Lori to do: hook up mechanism to remember last choice using MMNotes.
  16.     document.theForm.localOrServer[0].checked = true;
  17.  
  18. }
  19.  
  20. function clickedCancel() {
  21.   MM.commandReturnValue = "";
  22.   window.close();
  23. }
  24.  
  25. function clickedOK() {
  26.   var retVal = "local";
  27.  
  28.   if (document.theForm.localOrServer[0].checked == true)
  29.     retVal = "local";
  30.   else
  31.       retVal = "server";
  32.   
  33.   MM.commandReturnValue = retVal;
  34.   window.close();    
  35. }