Set various default values if not passed as parameters If no filename passed, then use name of referring document If no name for file to display after saving then use filename Source location is public (scripts folder, the default), private (data folder) or both Default target location is same as soure location ------------------------------------------------------ Various javascript functions used by the rich text editor ------------------------------------------------------ ------------------------------------------------------ Redirect to next document after saving Use rich text option only if it is MSIE5 or higher on windows Two versions of the body tag depending if IE is the browser Start of editing section - saving section under else ------------------------------------------------------ First the rich text editing section ------------------------------------------------------ If source location is private, copy it to the public folder If source location is public, copy it to the private folder Import the file get header info
Various drop-down menus The toolbar Bold Italics Underline Cut Copy Paste Left align Center align Right align Numbered list Bullet points Decrease indent Increase indent Help Insert/edit a link Insert an image The rich text editing frame
Password: [reload file in Plain text editor] [Exit without saving] Text area - remains hidden - used for saving purposes. Now follows non-internet explorer editing section ------------------------------------------------------ If source location is public, first copy it to the private folder Import the file
Enter plain text and/or HTML tags.
Password:         [Exit without saving]
End of non-IE editing section End of NOT saving part Start of saving section - above was editing ------------------------------------------------------

Password
        [Exit without saving] Now save it
End of saving part