home *** CD-ROM | disk | FTP | other *** search
- <html>
- <head>
- <STYLE>
- body{
- font-size : medium;
- }
- td {
- font-size : medium;
- }
- </STYLE>
- </head>
-
- <body bgcolor="silver" text="maroon">
-
- $MENUITEMS$
- <h1><div align="center">$WORKNODENAME$</div></h1><!--<form method="POST" action="http://">-->
- <br>
- <h1><div align="center">General Parameters</div></h1><!--<form method="POST" action="http://">-->
- <form method="post" name="configure" action="CALLBACKID-ConfigureStuff" onSubmit="return VerifyData();">
- <br>
- <table><tr><th align="left">
- <B>Enter the instance name: </B></th><th align="left">
- <input name="instance_name" size=50 maxlength=80 style="HEIGHT: 22px; WIDTH: 373px"></th></tr><!--<tr><th colspan="2"><hr width="75%"></th></tr>
- <tr><th align="left">
-
- <p>Path to help file:</p> </th><th align="left">
- <input name="fileInputText" style="HEIGHT: 22px; WIDTH: 373px"><input type="button" name="browseButton" value="Browse..." onClick="BrowseClick(document.forms[0].HELP_FILE_PATH, document.forms[0].fileInputText);"><input type="file" name="HELP_FILE_PATH" style="DISPLAY: none; HEIGHT: 22px; WIDTH: 80px">
- </th></tr>
- <tr><th align="left">
- <p>Path to help content file:</p> </th><th align="left">
- <input name="fileContentInputText" style="HEIGHT: 22px; WIDTH: 373px"><input type="button" name="browseButtonContent" value="Browse..." onClick="BrowseClick(document.forms[0].CONTENT_FILE_PATH, document.forms[0].fileContentInputText);"><input type="file" name="CONTENT_FILE_PATH" style="DISPLAY: none; HEIGHT: 22px; WIDTH: 80px">
- </th></tr>
- <tr><th align="left">
- Help Option String: </th>
- <th align="left"><input name="HelpOptionString" style="HEIGHT: 22px; WIDTH: 373px">
- </th></tr>
- -->
-
- </table>Optimization Type:
- <SELECT name=selectOptimization style="HEIGHT: 22px; WIDTH: 231px"> <OPTION
- selected>speed</OPTION><OPTION>size</OPTION></SELECT><BR><BR>$MENUITEMS$
- <hr>
- <table>
- <TBODY>
- <tr><th align="right">
- <input type="hidden" name="saveState" value="0">
- <input type="hidden" name="WorkingDir">
- <input type="button" name="save" value="Save" style="HEIGHT: 28px; WIDTH: 72px" onClick="return SubmitForSave();">
- </form></TH>
- <th align="left"><form method="post" name="cancel_config" action="CALLBACKID-CancelConfigure"><INPUT name=cancel type=submit value=Cancel style="HEIGHT: 28px; WIDTH: 72px">
- </form>
- </th></TR></TBODY></TABLE>
- <hr>
-
- <BR>
-
- <A href="ConfigHelp.html#Display" target=_blank>Click here for help</A> |
- <A href="FlashDoc.html" target=_blank>Click here for flash guidelines</A>
- <P> </P>
- </body>
- </html>
-
- <SCRIPT LANGUAGE="JavaScript">
- var strInstanceName="";
- var strHelpFilePath = "";
- var strWorkingDir = "";
- var strHelpOptionString = "";
- var strHelpFileContentPath = "";
- var nOptimizationIndex = 0 ;
-
- /*VARS*/
-
- /*ENDVARS*/
-
- //document.forms[0].WorkingDir.value = strWorkingDir;
- document.forms[0].instance_name.value = strInstanceName;
- //document.forms[0].fileInputText.value = strHelpFilePath;
- //document.forms[0].fileContentInputText.value = strHelpFileContentPath;
- //document.forms[0].HelpOptionString.value = strHelpOptionString;
- document.forms[0].selectOptimization.selectedIndex = nOptimizationIndex ;
-
- function BrowseClick(theFileInput, theOutputLocation)
- {
- var strOld;
- var strNew;
-
- strOld = theFileInput.value;
- theFileInput.click();
- strNew = theFileInput.value;
-
- if (strOld != strNew)
- {
- theOutputLocation.value = strNew;
- }
- }
-
- </SCRIPT>
-
- <SCRIPT LANGUAGE="VBScript">
-
-
- Function SubmitForSave()
- document.forms(0).saveState.value = "1"
- if (VerifyData()) then
- if (document.forms(0).onSubmit()) then
- document.forms(0).submit()
- end if
- end if
- End Function
-
- Function VerifyPath(strThePath)
- dim fso
- dim bRes
- dim strFilePath
- dim bReturn
-
- bReturn = True
- strFilePath = strThePath
- strFilePath = LTrim(strFilePath)
- strFilePath = RTrim(strFilePath)
-
- Set fso = CreateObject("Scripting.FileSystemObject")
- bRes = fso.FileExists(strFilePath)
-
- if (NOT strFilePath="") then 'Verify that a path was even entered
- if NOT bRes then
- strWorkingDir = document.forms(0).WorkingDir.value
- strFilePath = strWorkingDir & strThePath
- strFilePath = LTrim(strFilePath)
- strFilePath = RTrim(strFilePath)
- bRes = fso.FileExists(strFilePath)
- if NOT bRes then
- strFilePath = strThePath
- strFilePath = LTrim(strFilePath)
- strFilePath = RTrim(strFilePath)
- Call MsgBox(strFilePath & " does not exist.",,"Validation ERROR")
- bReturn = False
- end if
- end if
- end if
-
- VerifyPath = bReturn
- End Function
-
-
- Function VerifyData()
- dim strInstanceName
- dim bReturn
- dim strWorkingDir
-
- bReturn = True
-
- strInstanceName = document.forms(0).instance_name.value
- strInstanceName = LTrim(strInstanceName)
- strInstanceName = RTrim(strInstanceName)
-
- if (strInstanceName="") then
- MsgBox("You must enter an Instance Name")
- bReturn = False
- 'elseif (NOT VerifyPath(document.forms(0).fileInputText.value)) then
- ' bReturn = False
- 'elseif (NOT VerifyPath(document.forms(0).fileContentInputText.value)) then
- ' bReturn = False
- end if
-
- VerifyData = bReturn
- end function
-
- </SCRIPT>