home *** CD-ROM | disk | FTP | other *** search
- <%@ LANGUAGE=VBScript %>
- <% Option Explicit %>
- <% Response.Expires = 0 %>
-
- <%
- Const L_OK_TEXT="OK"
- Const L_HELP_TEXT="Help"
- Const L_CANCEL_TEXT="Cancel"
- Const L_SAVING_TEXT="Saving"
- Const L_NOHELP_ERRORMESSAGE = "The help file is unavailable."
- %>
-
- <HTML>
- <SCRIPT LANGUAGE="JavaScript">
-
-
- function toolFuncs(){
- this.mainframe = top.opener.top;
- }
-
- toolFunc = new toolFuncs();
-
-
- function closeWin(){
- top.location.href="iipopcl.asp"
- }
-
- function ok(){
- writingList=false;
- mf = toolFunc.mainframe;
- if (parent.main.head !=null){
- uform=parent.main.head.document.userform;
- writingList=true;
- parent.main.head.listFunc.writeList();
- }
- else{
- uform=parent.main.document.userform;
- }
-
- //mf.body.iisstatus.location.href="iistat.asp?thisState=<%= L_SAVING_TEXT %>";
-
- path="?page=popup";
- for (i=0; i < uform.elements.length;i++){
- thiselement=uform.elements[i];
- thisname=uform.elements[i].name;
- thisval=uform.elements[i].value;
- thisname.toLowerCase();
-
- if (thisname !=""){
- if (thisname.substring(0,3)!="chk"){
- if (thisname.substring(0,3)!="txt"){
- if (thisname.substring(0,3)!="rdo"){
- if (thisname.substring(0,3)!="hdn"){
- if (thisname.substring(0,3)!="btn"){
- path=path + "&" + escape(thisname);
- path=path + "=" + escape(thisval);
- }
- }
- }
- }
- else{
- path=path + "&" + thisname.substring(3, thisname.length);
- path=path + "=" + escape(thisval);
- }
- }
- else{
- path=path + "&" + thisname.substring(3, thisname.length);
- if (thiselement.checked){
- path=path + "="+true;
- }
- else{
- path=path + "="+false;
- }
- }
- }
- else{
- //hack to compinsate for bug in which text fields get submitted w/o a name...
- path=path + "&AspScriptErrorMessage=" + thisval
- }
- }
-
- mf.connect.location.href=("iiput.asp"+path);
- if (!writingList){
- top.location.href="iipopcl.asp"
- }
- }
-
-
- function helpBox(){
- if (top.title.Global.helpFileName==null){
- alert("<%= L_NOHELP_ERRORMESSAGE %>");
- }
- else{
- thefile=top.title.Global.helpDir + top.title.Global.helpFileName+".htm";
- window.open(thefile ,"Help","toolbar=no,scrollbars=yes,directories=no,menubar=no,width=300,height=425");
- }
- }
-
-
-
- </SCRIPT>
- <BODY BGCOLOR="#CCCCCC" LINK="#FFFFFF" VLINK="#FFFFFF" ALINK="#FFFFFF" LEFTMARGIN=0 TOPMARGIN=0>
-
-
- <TABLE WIDTH="100%" BORDER=0 BGCOLOR="#000000" CELLPADDING=5 CELLSPACING=1>
- <TR>
-
- <TD ALIGN="right">
-
- <TABLE CELLPADDING=5 CELLSPACING=0>
- <TR>
- <TD VALIGN="top">
- <FONT SIZE=2 FACE="Verdana,Arial">
- <B><A HREF="javascript:ok();">
- <IMG SRC="images/ok.gif" BORDER=0 ALIGN="top" HEIGHT=16 WIDTH=16 ALT="<%= L_OK_TEXT %>"></A>
- <A HREF="javascript:ok();"><%= L_OK_TEXT %></A></B>
- </FONT>
- </TD>
-
- <TD VALIGN="top">
- <FONT SIZE=2 FACE="Verdana,Arial" COLOR="#FFFFFF">|</FONT>
- </TD>
-
- <TD VALIGN="top">
- <FONT SIZE=2 FACE="Verdana,Arial">
- <B><A HREF="javascript:parent.window.close();">
- <IMG SRC="images/cncl.gif" BORDER=0 ALIGN="top" HEIGHT=16 WIDTH=16 ALT="<%= L_CANCEL_TEXT %>"></A>
- <A HREF="javascript:closeWin();"><%= L_CANCEL_TEXT %></A></B>
- </FONT>
- </TD>
-
- <TD VALIGN="top">
- <FONT SIZE=2 FACE="Verdana,Arial" COLOR="#FFFFFF">|</FONT>
- </TD>
-
- <TD VALIGN="top">
- <FONT SIZE=2 FACE="Verdana,Arial">
- <A HREF="javascript:helpBox();">
- <IMG SRC="images/help.gif" BORDER=0 ALIGN="top" HEIGHT=16 WIDTH=16 ALT="<%= L_HELP_TEXT %>"></A>
- <B><A HREF="javascript:helpBox();"><%= L_HELP_TEXT %></A></B>
- </FONT>
- </TD>
-
- </TR>
- </TABLE>
- </TD>
- </TR>
- </TABLE>
-
- </BODY>
- </HTML>