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 align="left">
- Reboot Signal Output: </th><th align="left">
- <input name="reboot_signal_name" size=50 maxlength=80 style="HEIGHT: 22px; WIDTH: 373px"></th></tr>
- <tr><th align="left">
- Print File Global Dict Path: </th><th align="left">
- <input name="print_file_global_dict_path" size=50 maxlength=80 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 strRebootSignal = "";
- var strPrintGlobDictPath = "";
- var nOptimizationIndex = 0 ;
-
- /*VARS*/
-
- /*ENDVARS*/
-
- document.forms[0].instance_name.value = strInstanceName;
- document.forms[0].reboot_signal_name.value = strRebootSignal;
- document.forms[0].print_file_global_dict_path.value = strPrintGlobDictPath;
- document.forms[0].selectOptimization.selectedIndex = nOptimizationIndex ;
-
- </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>