home *** CD-ROM | disk | FTP | other *** search
- function Body_OnLoad()
- {
- SSWorld = GetControl("LeftPane", "SSWorld");
-
- if (SSWorld != null)
- {
- CDImagePath.value = SSWorld.CreateImagePath;
- CDImageSize.innerText = SSWorld.GetCDImageSize();
-
- if (CDImageSize.innerText != -1)
- CDImageSizeSection.style.display = "";
-
- CDImagePath.disabled = false;
- BrowseButton.Enabled = true;
- VerifyCDImagePath()
- }
- }
-
- function CDImagePath_OnKeyUp()
- {
- setTimeout('VerifyCDImagePath()', 1)
- }
-
- function VerifyCDImagePath()
- {
- var strPath = CDImagePath.value;
- var bBlank = true;
-
- for (i = 0; bBlank && i < strPath.length; ++i)
- if (strPath.charAt(i) != ' ')
- bBlank = false;
-
- CreateButton.Enabled = !bBlank;
- }
-
- function CreateButton_Click()
- {
- SSWorld = GetControl("LeftPane", "SSWorld");
-
- if (SSWorld != null)
- SSWorld.CreateImage(CDImagePath.value);
- }
-
- function BrowseButton_Click()
- {
- SSWorld = GetControl("LeftPane", "SSWorld");
-
- if (SSWorld != null)
- CDImagePath.value = SSWorld.BrowseForCreateImage();
-
- VerifyCDImagePath();
- }
-
- function ExitButton_Click()
- {
- Exit();
- }