Solved

dropdownlist autopostback works in IE but not in FireFox

Posted on 2009-05-11
45
1,116 Views
Last Modified: 2013-12-20
This works in IE after I've changed  'dropoptions.Visible = False to dropoptions.Attributes.Add("style", "display:none;")  but not in FireFox..

Page_Load:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
 
        '*********
        'first we check if the user is logged in. If not sent to LogIn page.
        'then we check that there is an eventid available. If not sent to register new event page.
        '****************
        Try
            If Session("Logged") = True Then
                'only proceed if event is not published
                If Session("EvPublished") <> "yes" Then
 
 
                    Dim strHeading As String
                    Dim lst As String = "" 'holds name of listbox to process
                    'strHeading = "Edit Reg Form"
                    'lblHeading.Text = strHeading
 
                    btnSave.Attributes.Add("onclick", "return ValErrorText();")
 
                    '******
                    'only show possibility of adding drop down options if that type of control is chosen
                        '******
                        valrequired.Visible = True
                        'reqErrorText.Visible = True
                        dropoptions.Attributes.Add("style", "display:none;")
                        radiooptions.Visible = False
                        'dropoptions.Visible = False
                        'regExpError.Attributes.Add("style", "display:none;")
                        regExpError.Visible = False
                        regExpMinMax.Visible = False
                        allocation.Visible = False
                    cctypelabel.Visible = False
                    ccNrLabel.Visible = False
                    ccDateLabel.Visible = False
                    ccCvcLabel.Visible = False
                    ccNrError.Visible = False
                    ccCVCError.Visible = False
                        chkShowCvC.Visible = False
                        txtarealabel.Visible = False
                        TextArea.Visible = False
                    help.Visible = True
                    frmlabel.Visible = True
                    frmEvalVal1Txt.visible = False
                    frmEvalVal2Txt.visible = False
                    frmEvalNrOptions.Visible = False
                        frmEvalQuestion.Visible = False
                        linkTextLabel.Visible = False
                        linkLabel.Attributes.Add("style", "display:none;")
 
 
                    If Session("Eventid") > 0 Then
 
                        'check to see if a query string is coming in
                        'if so populate controls and put form in update mode
                        'this is fired from the dynamic edit buttons created on screen
                        If Not IsPostBack Then
                            If Request.QueryString.Count > 0 Then
                                Dim iControlid As Integer
 
                                iControlid = Request.QueryString("CID")
 
                                PopControls(iControlid)
                                ltlSaveFlag.Text = "Update"
                                ltlControlId.Text = iControlid
                                ddlControlType.Enabled = False
 
                            End If
                        End If
 
                        'build the preview at the bottom of page
                        BuildForm(Session("Eventid"), tdContainer, True, False)
 
 
                            If IsPostBack Then
 
                                Select Case ddlControlType.SelectedValue.ToUpper
 
                                    Case "DROPDOWN"
                                        dropoptions.Attributes.Add("style", "display:block;")
                                        'dropoptions.Visible = True
 
                                    Case "RADIO"
                                        radiooptions.Visible = True
                                        valrequired.Visible = False
                                        reqErrorText.Visible = False
 
                                    Case "CHECK"
                                        valrequired.Visible = False
                                        reqErrorText.Visible = False
 
                                    Case "FIXED LENGTH", "MAX LENGTH"
                                        regExpError.Visible = True
                                        regExpMinMax.Visible = True
 
                                    Case "NUMERIC"
                                        regExpError.Visible = True
 
                                    Case "EMAIL"
                                        regExpError.Visible = True
 
                                    Case "ALLOCATION"
                                        allocation.Visible = True
                                        regExpError.Visible = True
                                        valrequired.Visible = False
                                        reqErrorText.Visible = False
 
                                    Case "SINGLEALLOCATION"
                                        allocation.Visible = True
                                        regExpError.Visible = True
                                        valrequired.Visible = False
                                        reqErrorText.Visible = False
 
                                    Case "CREDITCARD"
 
                                        frmlabel.Visible = False
                                        cctypelabel.Visible = True
                                        ccNrLabel.Visible = True
                                        ccDateLabel.Visible = True
                                        ccCvcLabel.Visible = True
                                        ccNrError.Visible = True
                                        ccCVCError.Visible = True
                                        chkShowCvC.Visible = True
 
                                    Case "SECTIONHEADER"
                                        valrequired.Visible = False
                                        reqErrorText.Visible = False
                                        help.Visible = False
 
                                    Case "SUBSECTIONHEADER"
                                        valrequired.Visible = False
                                        reqErrorText.Visible = False
                                        help.Visible = False
 
                                    Case "TEXTAREA"
                                        txtarealabel.Visible = True
                                        TextArea.Visible = True
                                        valrequired.Visible = False
                                        reqErrorText.Visible = False
                                        help.Visible = False
                                        frmlabel.Visible = False
 
                                    Case "EVALUATION OPTIONS"
                                        radiooptions.Visible = False
                                        valrequired.Visible = False
                                        reqErrorText.Visible = False
                                        frmlabel.Visible = True
                                        frmEvalVal1Txt.Visible = True
                                        frmEvalVal2Txt.Visible = True
                                        frmEvalNrOptions.Visible = True
                                        frmEvalQuestion.Visible = True
 
                                    Case "LINK"
                                        linkTextLabel.Visible = True
                                        linkLabel.Attributes.Add("style", "display:block;")
                                        'linkLabel.Visible = True
                                        valrequired.Visible = False
                                        reqErrorText.Visible = False
                                        help.Visible = False
                                        frmlabel.Visible = False
 
 
                                End Select
 
 
                            End If
                        '*****
 
 
                        If Not IsPostBack Then
                            PopControlDropDown()
                        End If
 
                    Else
                        Response.Redirect("../CreatePages/CreateNewEvent.aspx?msg=You must have an Event before you can create a form. Please register a new Event.")
                    End If
 
                    'if event is published
                Else
                    tblEditForm.Visible = False
                    BuildMessageTable(tdContainer, "This event is published. Editing of form is not allowed.")
                End If
 
            Else
                    Response.Redirect("../Main/Login.aspx")
            End If
 
        Catch excException As Exception
            If Not TypeOf excException.GetBaseException Is System.Threading.ThreadAbortException Then
 
                Me.cvGeneral.ErrorMessage = Errors.UserFriendlyMessage(excException, "EN")
            Errors.EmailDiagnostics(excException, "RegisterforEvent Admin Edit Form")
 
            Me.cvGeneral.IsValid = False
            End If
 
        End Try
    End Sub

Open in new window

0
Comment
Question by:mattegol
  • 25
  • 20
45 Comments
 

Author Comment

by:mattegol
ID: 24354087
Controls in usercontrol:
<tr>
		<td class="header" colSpan="2">Edit Form
		</td>
	</tr>
	<TR>
		<td colSpan="2"><IMG height="10" src="../../images/shim.gif"></td>
	</TR>
	<TR>
		<TD class="label" width="200"><asp:label id="Label1" runat="server">Choose Control Type:</asp:label></TD>
		<TD class="label" width="400"><asp:dropdownlist id="ddlControlType" runat="server" Width="300" AutoPostBack="True" CssClass="Companylist"></asp:dropdownlist></TD>
	</TR>
	<tr id="radiooptions" runat="server">
		<td class="label" vAlign="top" width="200"><asp:label id="Label7" runat="server">Enter Control Options:</asp:label></td>
		<td width="400"><asp:textbox id="txtradvalue1" runat="server"></asp:textbox>&nbsp;&nbsp;
			<asp:textbox id="txtradvalue2" runat="server"></asp:textbox></td>
	</tr>
	<tr id="dropoptions" runat="server">
		<td class="label" vAlign="top" width="200"><asp:label id="Label6" runat="server">Enter Control Options:</asp:label></td>
		<td width="400">
			<TABLE id="Table2" cellSpacing="1" cellPadding="1" width="400" border="0">
				<TR>
					<TD class="label" vAlign="top" width="270"><asp:textbox id="txtDropOption" runat="server"></asp:textbox>&nbsp;<A onclick="popListBox();" href="#"><IMG src="../../images/plus.gif" border="0"></A>
						&nbsp;<A onclick="DeleteListItem();" href="#"><IMG src="../../images/minus.gif" border="0"></A></TD>
					<TD class="label" width="170"><asp:listbox id="lstDropOption" runat="server" Width="170" CssClass="Companylist" SelectionMode="Multiple"></asp:listbox></TD>
				</TR>
			</TABLE>
		</td>
	</tr>
	<tr id="allocation" runat="server">
		<td>Enter Allocation Amt:</td>
		<td><asp:textbox id="txtAllocationAmt" runat="server" Width="50px"></asp:textbox></td>
	</tr>
	<TR id="regExpMinMax" runat="server">
		<TD class="label" vAlign="top" width="200">Enter Min/Max Value:</TD>
		<TD width="400"><asp:textbox id="txtMin" runat="server" Width="50px"></asp:textbox>&nbsp;
			<asp:textbox id="txtMax" runat="server" Width="50px"></asp:textbox></TD>
	</TR>
	<TR id="regExpError" runat="server">
		<TD class="label" vAlign="top" width="200">Enter Error Text.</TD>
		<TD width="400"><asp:textbox id="txtErrorText" runat="server" Width="300px" MaxLength="500"></asp:textbox></TD>
	</TR>
	<TR id="rptlabel" runat="server">
		<TD class="label" width="200"><asp:label id="Label5" runat="server">Enter Control Name:</asp:label></TD>
		<TD class="label" width="400"><asp:textbox id="txtCtlName" runat="server" Width="300" MaxLength="50"></asp:textbox></TD>
	</TR>
	<TR id="frmlabel" runat="server">
		<TD class="label" width="200"><asp:label id="Label2" runat="server">Enter Label Text:</asp:label></TD>
		<TD class="label" width="400"><asp:textbox id="txtControlLabel" runat="server" Width="300" MaxLength="500"></asp:textbox></TD>
	</TR>
	<!--Evaluation controls-->
	<TR id="frmEvalVal1Txt" runat="server">
		<TD class="label" width="200"><asp:label id="Label8" runat="server">Enter Left Text:</asp:label></TD>
		<TD class="label" width="400"><asp:textbox id="txtEvalVal1Txt" runat="server" Width="300" MaxLength="500"></asp:textbox></TD>
	</TR>
	<TR id="frmEvalVal2Txt" runat="server">
		<TD class="label" width="200"><asp:label id="Label9" runat="server">Enter Right Text:</asp:label></TD>
		<TD class="label" width="400"><asp:textbox id="txtEvalVal2Txt" runat="server" Width="300" MaxLength="500"></asp:textbox></TD>
	</TR>
	<TR id="frmEvalQuestion" runat="server">
		<TD class="label" width="200"><asp:label id="Label10" runat="server">Enter Question:</asp:label></TD>
		<TD class="label" width="400"><asp:textbox id="txtEvalQuestion" runat="server" Width="300" MaxLength="500"></asp:textbox></TD>
	</TR>
	<TR id="frmEvalNrOptions" runat="server">
		<TD class="label" vAlign="top" width="200">How many options?:(2-7):</TD>
		<TD width="400"><asp:textbox id="txtEvalOptions" runat="server" Width="50px"></asp:textbox></TD>
	</TR>
	<!--Credit Card Fields-->
	<tr id="cctypelabel" runat="server">
		<TD class="label" vAlign="top" width="200">Enter Type Label:</TD>
		<TD width="400"><asp:textbox id="txtCCtypeLabel" runat="server" Width="300px" MaxLength="500"></asp:textbox></TD>
	</tr>
	<tr id="ccNrLabel" runat="server">
		<TD class="label" vAlign="top" width="200">Enter Nr Label:</TD>
		<TD width="400"><asp:textbox id="txtCCnrLabel" runat="server" Width="300px" MaxLength="100"></asp:textbox></TD>
	</tr>
	<tr id="ccNrError" runat="server">
		<TD class="label" vAlign="top" width="200">Enter Nr Error:</TD>
		<TD width="400"><asp:textbox id="txtCCNrError" runat="server" Width="300px" MaxLength="100"></asp:textbox></TD>
	</tr>
	<tr id="ccDateLabel" runat="server">
		<TD class="label" vAlign="top" width="200">Enter Date Label:</TD>
		<TD width="400"><asp:textbox id="txtCCDateLabel" runat="server" Width="300px" MaxLength="100"></asp:textbox></TD>
	</tr>
	<tr id="chkShowCvC" runat="server">
		<TD class="label" vAlign="top" width="200">Show CVC?:</TD>
		<TD class="label" width="400"><asp:checkbox id="chkCVC" runat="server"></asp:checkbox></TD>
	</tr>
	<tr id="ccCvcLabel" runat="server">
		<TD class="label" vAlign="top" width="200">Enter CVC Label:</TD>
		<TD width="400"><asp:textbox id="txtCVCLabel" runat="server" Width="300px" MaxLength="100"></asp:textbox></TD>
	</tr>
	<tr id="ccCVCError" runat="server">
		<TD class="label" vAlign="top" width="200">Enter CVC Error:</TD>
		<TD width="400"><asp:textbox id="txtCCCvcError" runat="server" Width="300px" MaxLength="500"></asp:textbox></TD>
	</tr>
	<!--End of CreditCard Fields-->
	<!--Link Fields-->
	<tr id="linkTextLabel" runat="server">
		<TD class="label" vAlign="top" width="200">Link text:</TD>
		<TD width="400"><asp:textbox id="txtLinkText" runat="server" Width="300px" MaxLength="500"></asp:textbox></TD>
	</tr>
	<tr id="linkLabel" runat="server">
		<TD class="label" vAlign="top" width="200">Link:</TD>
		<TD width="400">
		    <asp:textbox id="txtLink" runat="server" Width="300px" MaxLength="500"></asp:textbox>
            <!--<asp:RegularExpressionValidator ID="RegularExpressionValidator1" ControlToValidate="txtLink" ValidationExpression="((https?|ftp|gopher|telnet|file|notes|ms-help):((//)|(\\\\))+[\w\d:#@%/;$()~_?\+-=\\\.&]*)" runat="server" ErrorMessage="Ange en giltig adress" />-->
		</TD>
	</tr>
 
	<!--End of Link Fields-->
	<TR id="valrequired" runat="server">
		<TD class="label" width="200"><asp:label id="Label3" runat="server">Is it Required:</asp:label></TD>
		<TD class="label" width="400"><asp:radiobutton id="rbYes" runat="server" GroupName="grpYesNo" Text="Yes"></asp:radiobutton><asp:radiobutton id="rbNo" runat="server" GroupName="grpYesNo" Text="No"></asp:radiobutton></TD>
	</TR>
	<TR id="reqErrorText" runat="server">
		<TD class="label" width="200"><asp:label id="lblRequiredText" runat="server">Required Error Text:</asp:label></TD>
		<TD class="label" width="400"><asp:textbox id="txtReqError" runat="server" Width="300" MaxLength="500"></asp:textbox></TD>
	</TR>
	<TR id="help" runat="server">
		<TD class="label" vAlign="top" width="200"><asp:label id="Label4" runat="server">Help Text:</asp:label></TD>
		<TD class="label" width="400"><asp:textbox id="txtHelpText" runat="server" Width="300" MaxLength="100" TextMode="MultiLine"></asp:textbox></TD>
	</TR>
	<tr id="txtarealabel" runat="server">
		<td class="label" colSpan="2"><asp:label id="lblTxtArea" Runat="server">Text:</asp:label></td>
	</tr>
	<tr id="TextArea" runat="server">
		<td class="label" colSpan="2"><asp:textbox id="txtTextArea" runat="server" Width="500" MaxLength="2000" TextMode="MultiLine"
				height="85"></asp:textbox></td>
	</tr>
	<TR>
		<td style="HEIGHT: 5px" colSpan="2"><IMG height="5" src="../../images/shim.gif">&nbsp;<INPUT id="lblList" type="hidden" runat="server"></td>
	</TR>
	<TR>
		<TD align="center" colSpan="2"><asp:button id="btnSave" runat="server" Text="Save"></asp:button>&nbsp;&nbsp;
			<asp:literal id="ltlSaveFlag" runat="server" Visible="False"></asp:literal><asp:literal id="ltlControlId" runat="server" Visible="False"></asp:literal></TD>
	</TR>
	<TR>
		<td colSpan="2"><IMG height="15" src="../../images/shim.gif">&nbsp;</td>
	</TR>
	<tr>
		<td class="header" colSpan="2">View Results
		</td>
	</tr>
	<TR>
		<td colSpan="2"><IMG height="10" src="../../images/shim.gif"></td>
	</TR>
</TABLE>
<table id="tblFormResult" cellSpacing="1" cellPadding="1" width="600" border="0">
	<tr>
		<td id="tdContainer" runat="server"></td>
	</tr>
</table>

Open in new window

0
 

Author Comment

by:mattegol
ID: 24354103
From aspx:
<%@ Register TagPrefix="uc1" TagName="ucMenu" Src="../EditControls/ucMenuEditEvent.ascx" %>
<%@ Register TagPrefix="uc1" TagName="ucEditForm" Src="../EditControls/ucEditForm.ascx" %>
<%@ Register TagPrefix="uc1" TagName="ucFooter" Src="../MainControls/ucFooter.ascx" %>
<%@ Register TagPrefix="uc1" TagName="ucHeader" Src="../MainControls/ucHeader.ascx" %>
<%@ Page Language="vb" AutoEventWireup="false" Inherits="RegisterForEvent.EditForm" CodeFile="EditForm.aspx.vb" %>
<HTML>
	<HEAD>
		<title>Edit Existing Event</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<LINK href="../../Styles.css" type="text/css" rel="stylesheet">
		<script language="javascript">
		
function popListBox(){
 
				var lBox=document.getElementById('ucEditForm:lstDropOption');
				var tBox = document.getElementById('ucEditForm:txtDropOption');
				var tValue = tBox.value
				var iIndex = lBox.options.length;
				if (tValue == "") {
				alert("You need to enter a value");
				}
				else
				lBox.options[iIndex]=new Option(tValue,iIndex+1);
				lBox.options[iIndex].value=tValue
				}
				
function popAllocationListBox(){
 
				var lBox=document.getElementById('ucEditForm:lstAllocation');
				var tAllBox = document.getElementById('ucEditForm:txtAllocationItem');
				var tAmtBox = document.getElementById('ucEditForm:txtAllocationAmt');
				var tAllValue = tAllBox.value
				var tAmtValue = tAmtBox.value
				
				
				var iIndex = lBox.options.length;
				if ((tAllValue == "")||(tAmtValue == "")) {
				alert("You need to enter an allocation Item and Amount");
				return false
				}
				else
				var lstValue = tAllBox.value + " " + "(" + tAmtBox.value + ")"
				lBox.options[iIndex]=new Option(lstValue,iIndex+1);
				lBox.options[iIndex].value=lstValue
				}
				
	function SelectAllItems(sList)
				{
		var el = document.getElementById(sList)
		var intCount=el.options.length;
		for(i = 0; i < intCount;i++)
		{
			el.options(i).selected=true;
		}
		}
		
	function DeleteListItem()
		{
				var lBox=document.getElementById('ucEditForm:lstDropOption');
				var iSelIndex =lBox.selectedIndex
				if(iSelIndex ==-1){
				alert("You need to selected an item to delete");
				return false
				}
				else
				lBox.remove(iSelIndex);
		}
		
function ValErrorText()
				{
				var op = document.getElementById("ucEditForm_rbYes")
				var tx = document.getElementById("ucEditForm_txtReqError")
					if(op.checked==true){
 
						if (tx.value.length < 1)
							{
							alert("You must add a validation error message.")
							return false;
							}
							else
							{
							
							return true;
							}
							}
				}
		</script>
	</HEAD>
	<body>
		<form id="Form1" method="post" onsubmit="SelectAllItems('ucEditForm:lstDropOption');"
			runat="server">
			<TABLE id="Table1" cellSpacing="1" cellPadding="1" width="760" border="0">
				<TR>
					<TD colSpan="2"><uc1:ucheader id="ucHeader" runat="server"></uc1:ucheader></TD>
				</TR>
				<TR>
					<td colSpan="2"><IMG height="5" src="../../images/shim.gif"></td>
				</TR>
				<TR>
					<TD vAlign="top" width="160"><uc1:ucmenu id="ucMenu" runat="server"></uc1:ucmenu></TD>
					<td width="500"><uc1:uceditform id="ucEditForm" runat="server"></uc1:uceditform></td>
				</TR>
				<TR>
					<td colSpan="2"><IMG height="200" src="../../images/shim.gif"></td>
				</TR>
				<TR>
					<TD colSpan="2"><uc1:ucfooter id="ucFooter" runat="server"></uc1:ucfooter></TD>
				</TR>
			</TABLE>
		</form>
	</body>
</HTML>

Open in new window

0
 

Author Comment

by:mattegol
ID: 24354151
The error message from Error console is:

Error: el is null
......EditForm.aspx
Line: 49
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 24361829
Looks like the server removes the element from the html
Can you post the view-source from the browser instead?

In any case, try this:



function SelectAllItems(sList) {
  var el = document.getElementById(sList)
  if (el) {
    var intCount=el.options.length;
    for(i = 0; i < intCount;i++) {
      el.options(i).selected=true;
    }
  }
}

Open in new window

0
 

Author Comment

by:mattegol
ID: 24362530
That solved it..... everything works now except for the dropdown option (works in IE not in FireFox). When I select dropdown the control appears as it should but when I try to add a value nothing happens. Error console:
tBox is null
EditForm.aspx   Line 16
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 24362790
please post the HTML of the view-source in the browser.
0
 

Author Comment

by:mattegol
ID: 24362987


<HTML>
	<HEAD>
		<title>Edit Existing Event</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<LINK href="../../Styles.css" type="text/css" rel="stylesheet">
		<script language="javascript">
		
function popListBox(){
 
				var lBox=document.getElementById('ucEditForm:lstDropOption');
				var tBox = document.getElementById('ucEditForm:txtDropOption');
				var tValue = tBox.value
				var iIndex = lBox.options.length;
				if (tValue == "") {
				alert("You need to enter a value");
				}
				else
				lBox.options[iIndex]=new Option(tValue,iIndex+1);
				lBox.options[iIndex].value=tValue
				}
				
function popAllocationListBox(){
 
				var lBox=document.getElementById('ucEditForm:lstAllocation');
				var tAllBox = document.getElementById('ucEditForm:txtAllocationItem');
				var tAmtBox = document.getElementById('ucEditForm:txtAllocationAmt');
				var tAllValue = tAllBox.value
				var tAmtValue = tAmtBox.value
				
				
				var iIndex = lBox.options.length;
				if ((tAllValue == "")||(tAmtValue == "")) {
				alert("You need to enter an allocation Item and Amount");
				return false
				}
				else
				var lstValue = tAllBox.value + " " + "(" + tAmtBox.value + ")"
				lBox.options[iIndex]=new Option(lstValue,iIndex+1);
				lBox.options[iIndex].value=lstValue
				}
				
	function SelectAllItems(sList)
				{
		var el = document.getElementById(sList)
		if(el)
		{
		    var intCount=el.options.length;
		    for(i = 0; i < intCount;i++)
		    {
			    el.options(i).selected=true;
		    }
		    }
		}
		
	function DeleteListItem()
		{
				var lBox=document.getElementById('ucEditForm:lstDropOption');
				var iSelIndex =lBox.selectedIndex
				if(iSelIndex ==-1){
				alert("You need to selected an item to delete");
				return false
				}
				else
				lBox.remove(iSelIndex);
		}
		
function ValErrorText()
				{
				var op = document.getElementById("ucEditForm_rbYes")
				var tx = document.getElementById("ucEditForm_txtReqError")
					if(op){
					    if(op.checked==true){
 
						    if (tx.value.length < 1)
							{
							    alert("You must add a validation error message.")
							    return false;
							}
							else
							{
							
							return true;
							}
						}
					}	
				}
		</script>
	</HEAD>
	<body>
		<form name="Form1" method="post" action="EditForm.aspx" language="javascript" onsubmit="javascript:return WebForm_OnSubmit();" id="Form1">
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="__LASTFOCUS" id="__LASTFOCUS" value="" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTE4ODQ4MTEyMzIPZBYCAgEPZBYGAgEPZBYCAgEPZBYCZg8PFgIeBFRleHQFC01hdHMgRWduZWxsZGQCAw9kFgQCAQ8WAh8ABQRNZW51ZAIDDzwrAAUBAxQrAAoQFgYeBkl0ZW1JRAUYdWNNZW51X01lbnUxLW1lbnVJdGVtMDAwHghJdGVtVGV4dAUESG9tZR4HSXRlbVVSTAUZLi4vTUFJTi9BZG1pbldlbGNvbWUuYXNweGRkEBYGHwEFGHVjTWVudV9NZW51MS1tZW51SXRlbTAwMR8CBQZEZXNpZ24fAwUPRWRpdERlc2lnbi5hc3B4ZGQQFgYfAQUYdWNNZW51X01lbnUxLW1lbnVJdGVtMDAyHwIFBkxhYmVscx8DBQ9FZGl0TGFiZWxzLmFzcHhkZBAWBh8BBRh1Y01lbnVfTWVudTEtbWVudUl0ZW0wMDMfAgUKSW50cm8gUGFnZR8DBRJFZGl0SW50cm9QYWdlLmFzcHhkZBAWBh8BBRh1Y01lbnVfTWVudTEtbWVudUl0ZW0wMDQfAgUMQ29udGFjdCBQYWdlHwMFFEVkaXRDb250YWN0UGFnZS5hc3B4ZGQQFgYfAQUYdWNNZW51X01lbnUxLW1lbnVJdGVtMDA1HwIFCUZvcm0gUGFnZR8DBQ1FZGl0Rm9ybS5hc3B4ZGQQFgYfAQUYdWNNZW51X01lbnUxLW1lbnVJdGVtMDA2HwIFC0ZpZWxkIE9yZGVyHwMFFUVkaXRGb3JtRmllbGRTZX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sc1JlcXVpcmVQb3N0QmFja0tleV9fFgUFGHVjRWRpdEZvcm06bHN0RHJvcE9wdGlvbgUQdWNFZGl0Rm9ybTpyYlllcwUQdWNFZGl0Rm9ybTpyYlllcwUPdWNFZGl0Rm9ybTpyYk5vBQ91Y0VkaXRGb3JtOnJiTm8a6r4dSBPIdTtztFEF2AN/HwTnDQ==" />
 
<script type="text/javascript">
<!--
var theForm = document.forms['Form1'];
if (!theForm) {
    theForm = document.Form1;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
// -->
</script>
 
 
<script src="/Copy of RegisterForEvent on 10.47.0.15/WebResource.axd?d=TDChIrj_h4rKxVsCDotzxQ2&amp;t=633748835251662040" type="text/javascript"></script>
 
 
<script language='javascript'>
<!--
//Region Global Variables
var skm_SelectedMenuStyleInfos=new Object();
var skm_UnselectedMenuStyleInfos=new Object();
var skm_MenuFadeDelays=new Object();
var skm_clockValue=0;
var skm_ticker;
var skm_highlightTopMenus=new Object();
var skm_images=new Array();
var skm_OpenMenuItems = new Array();
//EndRegion
//Region Methods to hook up a menu to the global variables
function skm_registerMenu(menuID, selectedStyleInfo, unselectedStyleInfo, menuFadeDelay, highlightTopMenu){
	skm_SelectedMenuStyleInfos[menuID]=selectedStyleInfo;
	skm_UnselectedMenuStyleInfos[menuID]=unselectedStyleInfo;
	skm_MenuFadeDelays[menuID]=menuFadeDelay;
	skm_highlightTopMenus[menuID]=highlightTopMenu;
}
//Region The methods and contructor of the skm_styleInfo object.
function skm_applyStyleInfoToElement(element){
	element.style.backgroundColor=this.backgroundColor;
	element.style.borderColor=this.borderColor;
	element.style.borderStyle=this.borderStyle;
	element.style.borderWidth=this.borderWidth;
	element.style.color=this.color;
	if (this.fontFamily!='')
		element.style.fontFamily=this.fontFamily;
	element.style.fontSize=this.fontSize;
	element.style.fontStyle=this.fontStyle;
	element.style.fontWeight=this.fontWeight;
	if (this.className!='')
		element.style.className=this.className;
}
function skm_styleInfo(backgroundColor,borderColor,borderStyle,borderWidth,color,fontFamily,fontSize,fontStyle,fontWeight,className){
	this.backgroundColor=backgroundColor;
	this.borderColor=borderColor;
	this.borderStyle=borderStyle;
	this.borderWidth=borderWidth;
	this.color=color;
	this.fontFamily=fontFamily;
	this.fontSize=fontSize;
	this.fontStyle=fontStyle;
	this.fontWeight=fontWeight;
	this.className=className;
	this.applyToElement=skm_applyStyleInfoToElement;
}
//Region MouseEventHandlers
function skm_mousedOverMenu(menuID,elem,parent,displayedVertically,imageSource){
	skm_stopTick();
	skm_closeSubMenus(elem);
	var childID=elem.id+"-subMenu";  // Display child menu if needed
	if (document.getElementById(childID)!=null){  // make the child menu visible and specify that its position is specified in absolute coordinates
		document.getElementById(childID).style.display='block';
		document.getElementById(childID).style.position='absolute';
		skm_OpenMenuItems = skm_OpenMenuItems.concat(childID);
		if (displayedVertically){ // Set the child menu's left and top attributes according to the menu's offsets
			document.getElementById(childID).style.left=skm_getAscendingLefts(parent)+parent.offsetWidth;
			document.getElementById(childID).style.top=skm_getAscendingTops(elem);
			var visibleWidth=parseInt(window.outerWidth?window.outerWidth-9:document.body.clientWidth,10);
			if ((parseInt(document.getElementById(childID).offsetLeft,10)+parseInt(document.getElementById(childID).offsetWidth,10))>visibleWidth) {
				document.getElementById(childID).style.left=visibleWidth-parseInt(document.getElementById(childID).offsetWidth,10);
			}
		}else{  // Set the child menu's left and top attributes according to the menu's offsets
			document.getElementById(childID).style.left=skm_getAscendingLefts(elem);
			document.getElementById(childID).style.top=skm_getAscendingTops(parent)+parent.offsetHeight;
			if (document.getElementById(childID).offsetWidth<elem.offsetWidth)
				document.getElementById(childID).style.width=elem.offsetWidth;
		}
	}
	if (skm_SelectedMenuStyleInfos[menuID] != null) skm_SelectedMenuStyleInfos[menuID].applyToElement(elem);
	if (skm_highlightTopMenus[menuID]){
		var eId=elem.id+'';
		while (eId.indexOf('-subMenu')>=0){
			eId=eId.substring(0, eId.lastIndexOf('-subMenu'));
			skm_SelectedMenuStyleInfos[menuID].applyToElement(document.getElementById(eId));
		}
	}	
	if (imageSource!=''){
		setimage(elem,imageSource)
	}
}
function skm_mousedOverClickToOpen(menuID,elem,parent,imageSource){
	skm_stopTick();
	if (skm_SelectedMenuStyleInfos[menuID] != null) skm_SelectedMenuStyleInfos[menuID].applyToElement(elem);
	if (skm_highlightTopMenus[menuID]){
		var eId=elem.id+'';
		while (eId.indexOf('-subMenu')>=0){
			eId=eId.substring(0, eId.lastIndexOf('-subMenu'));
			skm_SelectedMenuStyleInfos[menuID].applyToElement(document.getElementById(eId));
		}
	}	
	if (imageSource!=''){
		setimage(elem,imageSource)
	}
}
function skm_mousedOverSpacer(menuID,elem,parent){
	skm_stopTick();
}
function skm_mousedOutMenu(menuID,elem,imageSource){
	skm_doTick(menuID);
	if (skm_UnselectedMenuStyleInfos[menuID] != null) skm_UnselectedMenuStyleInfos[menuID].applyToElement(elem);
	if (skm_highlightTopMenus[menuID]){
		var eId=elem.id+'';
		while (eId.indexOf('-subMenu')>=0){
			eId=eId.substring(0, eId.lastIndexOf('-subMenu'));
			skm_UnselectedMenuStyleInfos[menuID].applyToElement(document.getElementById(eId));
		}
	}
	if (imageSource!=''){
		setimage(elem,imageSource)
	}
}
function skm_mousedOutSpacer(menuID, elem){
	skm_doTick(menuID);
}
//Region Utility Functions
function skm_closeSubMenus(parent){
	if (skm_OpenMenuItems == "undefined") return;
	for (var i=skm_OpenMenuItems.length-1; i>-1;i--) {
		if (parent.id.indexOf(skm_OpenMenuItems[i]) != 0) {
			document.getElementById(skm_OpenMenuItems[i]).style.display = 'none';
			skm_shimSetVisibility(false, skm_OpenMenuItems[i]);			
			skm_OpenMenuItems = new Array().concat(skm_OpenMenuItems.slice(0,i), skm_OpenMenuItems.slice(i+1));
  		} 
	}
}
function skm_shimSetVisibility(makevisible, tableid){
	var tblRef=document.getElementById(tableid);
	var IfrRef=document.getElementById('shim'+tableid);
	if (tblRef!=null && IfrRef!=null){
		if(makevisible){
			IfrRef.style.width=tblRef.offsetWidth;
			IfrRef.style.height=tblRef.offsetHeight;
			IfrRef.style.top=tblRef.style.top;
			IfrRef.style.left=tblRef.style.left;
			IfrRef.style.zIndex=tblRef.style.zIndex-1;
			IfrRef.style.display="block";
		}else{
			IfrRef.style.display="none";
		}
	}
}
function skm_IsSubMenu(id){
	if (skm_subMenuIDs == "undefined") return false;
	for (var i=0;i<skm_subMenuIDs.length;i++)
	  if (id==skm_subMenuIDs[i]) return true;
	return false;
}
function skm_getAscendingLefts(elem){
	if (elem==null)
		return 0;
	else
	{
		if ((elem.style.position=='absolute' || elem.style.position=='relative') && !skm_IsSubMenu(elem.id)) return 0;
		return elem.offsetLeft+skm_getAscendingLefts(elem.offsetParent);
	}
}
function skm_getAscendingTops(elem){
	if (elem==null)
		return 0;
	else {
		if ((elem.style.position=='absolute' || elem.style.position=='relative') && !skm_IsSubMenu(elem.id)) return 0;
		return elem.offsetTop+skm_getAscendingTops(elem.offsetParent);
	}
}
//Region Fade Functions
function skm_doTick(menuID){
	if (skm_clockValue>=skm_MenuFadeDelays[menuID]){
		skm_stopTick();
		skm_closeSubMenus(document.getElementById(menuID));
	} else {
		skm_clockValue++;
		skm_ticker=setTimeout("skm_doTick('"+menuID+"');", 500);
	}
}
function skm_stopTick(){
	skm_clockValue=0;
	clearTimeout(skm_ticker);
}
function preloadimages(){
	for (i=0;i<preloadimages.arguments.length;i++){
		skm_images[i]=new Image();
		skm_images[i].src=preloadimages.arguments[i];
	}
}
function setimage(elem,imageSource){
	var i=elem.getElementsByTagName("img")[0];
	i.src=imageSource;
}
//-->
</script>
		
<script src="/Copy of RegisterForEvent on 10.47.0.15/WebResource.axd?d=15C5cJL3LLlXNd18Rr855uslxYU9TJ8hd3RMUqP5kRs1&amp;t=633748835251662040" type="text/javascript"></script>
<script type="text/javascript">
<!--
function WebForm_OnSubmit() {
if (typeof(ValidatorOnSubmit) == "function" && ValidatorOnSubmit() == false) return false;SelectAllItems('ucEditForm:lstDropOption');
return true;
}
// -->
</script>
 
			<TABLE id="Table1" cellSpacing="1" cellPadding="1" width="760" border="0">
				<TR>
					<TD colSpan="2">
<TABLE cellSpacing="0" cellPadding="0" width="760" border="0" ID="Table1">
	<TBODY>
	
		<TR height="70">
			<TD width="760" BACKGROUND="../../images/HRGLogo.jpg"><p class="dateline">
					<div style="z-index:1;" align="right"><span id="ucHeader_lbl" style="background-color:Transparent;">Mats Egnell</span></div></p></TD>
		</TR>
		<tr>
			<td><IMG height="1" src="../../images/shim.gif" width="1"></td>
		</tr>
		<tr>
			<td class="HeaderMenuBackground"><img src="../../images/shim.gif" width="0" height="11"></td>
		</tr>
	</TBODY>
</TABLE>
</TD>
				</TR>
				<TR>
					<td colSpan="2"><IMG height="5" src="../../images/shim.gif"></td>
				</TR>
				<TR>
					<TD vAlign="top" width="160">
<table border="0" cellpadding="0" cellspacing="0" width="146">
	<tr>
		<td width="2"><img src="../../images/mTL.gif"></td>
		<td width="142" style="BACKGROUND-IMAGE: url(../../images/mT.gif); BACKGROUND-REPEAT: repeat-x">
			<table border="0" cellpadding="0" cellspacing="0" width="142">
				<tr>
					<td width="120"><p class="MenuHeading">Menu</p>
					</td>
					<td width="22"><img src="../../images/BTIMiniLogo.gif"></td>
				</tr>
			</table>
		</td>
		<td width="2"><img src="../../images/mTR.gif"></td>
	</tr>
</table>
<table class="MenuItemBorder" border="0" cellpadding="0" cellspacing="0" width="146">
	<tr>
		<td colSpan="2">
			<table class="menusub" cellspacing="1" cellpadding="1" id="ucMenu_Menu1-menuItem007-subMenu" bordercolor="#424A52" border="0" style="border-color:#424A52;border-width:1px;border-style:solid;display:none;z-index:1002;">
	<tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem007-subMenu-menuItem000" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditGraphics.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1-menuItem007-subMenu'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this,'');this.className='MenuItemNormal';" style="cursor:pointer;">Images</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem007-subMenu-menuItem001" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditLinksPageSettings.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1-menuItem007-subMenu'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this,'');this.className='MenuItemNormal';" style="cursor:pointer;">Links Page Settings</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem007-subMenu-menuItem002" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditLinksPDF.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1-menuItem007-subMenu'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this,'');this.className='MenuItemNormal';" style="cursor:pointer;">PDF</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem007-subMenu-menuItem003" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditLinksWEB.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1-menuItem007-subMenu'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this,'');this.className='MenuItemNormal';" style="cursor:pointer;">WEB</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem007-subMenu-menuItem004" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditLinksSeq.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1-menuItem007-subMenu'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this,'');this.className='MenuItemNormal';" style="cursor:pointer;">Links Sequence</td>
	</tr>
</table><table class="MenuItemNormal" cellspacing="1" cellpadding="1" id="ucMenu_Menu1" bordercolor="#424A52" border="0" style="border-color:#424A52;border-width:1px;border-style:solid;width:146px;z-index:1000;">
	<tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem000" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='../MAIN/AdminWelcome.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Home</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem001" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditDesign.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Design</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem002" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditLabels.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Labels</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem003" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditIntroPage.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Intro Page</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem004" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditContactPage.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Contact Page</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem005" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditForm.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Form Page</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem006" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditFormFieldSeq.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Field Order</td>
	</tr><tr>
		<td title="Edit pdf or weblinks. Upload images or PDF files." class="MenuItemNormal" valign="bottom" id="ucMenu_Menu1-menuItem007" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';"><img src="../../images/Arrow.gif" align="right" border="0" />Upload Files</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem008" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='../Preview/pIntro.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Preview</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem009" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='../Main/LogOut.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Log out</td>
	</tr>
</table></td>
	</tr>
</table>
</TD>
					<td width="500"><table id="ucEditForm_tblEditForm" cellspacing="1" cellpadding="1" width="600" border="0">
	<tr id="ucEditForm_trError" align="center">
		<td colspan="2">
 
<table width="440" cellpadding="0" cellspacing="0" border="0">
	<tr valign="top">
		<td width="1"></td>
		<td id="ucEditForm_ucError_col1" bgcolor="#ffa525">
			<div headertext="&lt;img src='../../images/warning.gif' hspace=4 vspace=6>&lt;!--" id="ucEditForm_ucError_Validationsummary1" style="color:Red;background-color:#FFA525;display:none;">
 
		</div><!---->
		</td>
		
		<td bgcolor="#ffa525" style="PADDING-BOTTOM: 4px; PADDING-TOP: 4px">
			<div displaymode="List" id="ucEditForm_ucError_Validationsummary2" class="PageText" style="color:Black;background-color:#FFA525;display:none;">
 
		</div>
		</td>
		<td id="ucEditForm_ucError_col3" bgcolor="#ffa525" align="right">
			<div headertext="&lt;img src='../../images/errorcorner.gif'>&lt;!--" id="ucEditForm_ucError_Validationsummary3" style="color:Red;background-color:#FFA525;display:none;">
 
		</div><!---->
		</td>
		
	</tr>
</table>
<script language="javascript">
/*
TestContent()
 
window.onbeforeunload=function(){
	tblError.style.display="none"
}
 
window.onload=function(){
	TestContent()
}
 
function TestContent(){
	if(tdCol2.innerText.length>0){
		trError.bgColor="#FFCC66"
		tblError.style.display="block"
	} else {
		trError.bgColor="#FFFFFF"
		tblError.style.display="none"
	}
}
*/
</script>
<span display="None" id="ucEditForm_cvGeneral" evaluationfunction="CustomValidatorEvaluateIsValid" style="color:Red;display:none;"></span></td>
	</tr>
	<tr>
		<td class="header" colspan="2">Edit Form
		</td>
	</tr>
	<tr>
		<td colspan="2"><IMG height="10" src="../../images/shim.gif"></td>
	</tr>
	<tr>
		<TD class="label" width="200"><span id="ucEditForm_Label1">Choose Control Type:</span></TD>
		<TD class="label" width="400"><select name="ucEditForm:ddlControlType" onchange="javascript:setTimeout('__doPostBack(\'ucEditForm$ddlControlType\',\'\')', 0)" language="javascript" id="ucEditForm_ddlControlType" class="Companylist" style="width:300px;">
			<option selected="selected" value=""></option>
			<option value="TextBox">TextBox</option>
			<option value="Other Info">Other Info</option>
			<option value="Max Length">Max Length</option>
			<option value="Fixed Length">Fixed Length</option>
			<option value="Numeric">Numeric</option>
			<option value="Evaluation Options">Evaluation Options</option>
			<option value="Email">Email</option>
			<option value="DropDown">DropDown</option>
			<option value="Radio">Radio</option>
			<option value="Check">Check</option>
			<option value="CreditCard">CreditCard</option>
			<option value="Allocation">Allocation</option>
			<option value="SingleAllocation">SingleAllocation</option>
			<option value="TextArea">TextArea</option>
			<option value="SectionHeader">SectionHeader</option>
			<option value="SubSectionHeader">SubSectionHeader</option>
			<option value="Link">Link</option>
 
		</select>
        </TD>
	</tr>
	<tr id="ucEditForm_dropoptions" style="display:none;">
		<td class="label" valign="top" width="200"><span id="ucEditForm_Label6">Enter Control Options:</span></td>
		<td width="400">
			<TABLE id="Table2" cellSpacing="1" cellPadding="1" width="400" border="0">
				<TR>
					<TD class="label" vAlign="top" width="270"><input name="ucEditForm:txtDropOption" type="text" id="ucEditForm_txtDropOption" />&nbsp;<A onclick="popListBox();" href="#"><IMG src="../../images/plus.gif" border="0"></A>
						&nbsp;<A onclick="DeleteListItem();" href="#"><IMG src="../../images/minus.gif" border="0"></A></TD>
					<TD class="label" width="170"><select size="4" name="ucEditForm:lstDropOption" multiple="multiple" id="ucEditForm_lstDropOption" class="Companylist" style="width:170px;">
 
		</select></TD>
				</TR>
			</TABLE>
		</td>
	</tr>
	<tr id="ucEditForm_rptlabel">
		<TD class="label" width="200"><span id="ucEditForm_Label5">Enter Control Name:</span></TD>
		<TD class="label" width="400"><input name="ucEditForm:txtCtlName" type="text" maxlength="50" id="ucEditForm_txtCtlName" style="width:300px;" /></TD>
	</tr>
	<tr id="ucEditForm_frmlabel">
		<TD class="label" width="200"><span id="ucEditForm_Label2">Enter Label Text:</span></TD>
		<TD class="label" width="400"><input name="ucEditForm:txtControlLabel" type="text" maxlength="500" id="ucEditForm_txtControlLabel" style="width:300px;" /></TD>
	</tr>
	<tr id="ucEditForm_valrequired">
		<TD class="label" width="200"><span id="ucEditForm_Label3">Is it Required:</span></TD>
		<TD class="label" width="400"><input id="ucEditForm_rbYes" type="radio" name="ucEditForm:grpYesNo" value="rbYes" /><label for="ucEditForm_rbYes">Yes</label><input id="ucEditForm_rbNo" type="radio" name="ucEditForm:grpYesNo" value="rbNo" /><label for="ucEditForm_rbNo">No</label></TD>
	</tr>
	<tr id="ucEditForm_reqErrorText">
		<TD class="label" width="200"><span id="ucEditForm_lblRequiredText">Required Error Text:</span></TD>
		<TD class="label" width="400"><input name="ucEditForm:txtReqError" type="text" maxlength="500" id="ucEditForm_txtReqError" style="width:300px;" /></TD>
	</tr>
	<tr id="ucEditForm_help">
		<TD class="label" valign="top" width="200"><span id="ucEditForm_Label4">Help Text:</span></TD>
		<TD class="label" width="400"><textarea name="ucEditForm:txtHelpText" id="ucEditForm_txtHelpText" style="width:300px;"></textarea></TD>
	</tr>
	<tr>
		<td style="HEIGHT: 5px" colspan="2"><IMG height="5" src="../../images/shim.gif">&nbsp;<input name="ucEditForm:lblList" type="hidden" id="ucEditForm_lblList" /></td>
	</tr>
	<tr>
		<TD align="center" colspan="2"><input type="submit" name="ucEditForm:btnSave" value="Save" onclick="return ValErrorText();WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ucEditForm:btnSave&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))" language="javascript" id="ucEditForm_btnSave" />&nbsp;&nbsp;
			</TD>
	</tr>
	<tr>
		<td colspan="2"><IMG height="15" src="../../images/shim.gif">&nbsp;</td>
	</tr>
	<tr>
		<td class="header" colspan="2">View Results
		</td>
	</tr>
	<tr>
		<td colspan="2"><IMG height="10" src="../../images/shim.gif"></td>
	</tr>
</table>
 
<table id="tblFormResult" cellSpacing="1" cellPadding="1" width="600" border="0">
	<tr>
		<td id="ucEditForm_tdContainer"></td>
 
	</tr>
</table>
</td>
				</TR>
				<TR>
					<td colSpan="2"><IMG height="200" src="../../images/shim.gif"></td>
				</TR>
				<TR>
					<TD colSpan="2">
<br>
<br>
<TABLE id="Table6" cellSpacing="0" cellPadding="0" width="760" border="0">
	<tr>
		<td id="ucFooter_trVer" align="right"><p class="FooterText">Ver 3.6.2
			</p>
		</td>
 
	</tr>
</TABLE>
<hr class="SeperatorA">
</TD>
				</TR>
			</TABLE>
		
<script type="text/javascript">
<!--
var skm_subMenuIDs =  new Array('ucMenu_Menu1-menuItem007-subMenu', 'ucMenu_Menu1');
var Page_ValidationSummaries =  new Array(document.getElementById("ucEditForm_ucError_Validationsummary1"), document.getElementById("ucEditForm_ucError_Validationsummary2"), document.getElementById("ucEditForm_ucError_Validationsummary3"));
var Page_Validators =  new Array(document.getElementById("ucEditForm_cvGeneral"));
// -->
</script>
 
<script language="javascript">skm_registerMenu('ucMenu_Menu1',new skm_styleInfo('','','','','','','','','',''),new skm_styleInfo('','','','','','','','','',''),2,false);</script>
<script type="text/javascript">
<!--
var Page_ValidationActive = false;
if (typeof(ValidatorOnLoad) == "function") {
    ValidatorOnLoad();
}
 
function ValidatorOnSubmit() {
    if (Page_ValidationActive) {
        return ValidatorCommonOnSubmit();
    }
    else {
        return true;
    }
}
// -->
</script>
        </form>
	</body>
</HTML>

Open in new window

0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 24363277
You problem is that IE does not care if you use document.getElementsById using a NAME instead of an ID

The NAME of the dropbox is ucEditForm:txtDropOption but the ID is ucEditForm_txtDropOption
So either change all
document.getElementById(fieldNAME) to
document.forms[0].elements[fieldNAME]
or change
document.getElementById(fieldNAME) to
 document.getElementById(fieldID)

Also the links should return false on the onClick to stop the page from reloading on the href="#"

<A  onclick="popListBox(); return false" href="#"><IMG src="../../images/plus.gif" border="0"></A>

 
0
 

Author Comment

by:mattegol
ID: 24364306
After I've done those changes I can add things to the listbox but when I try to save it the I get the error: lBox.options[iIndex] is undefined  

Thanks for your help so far!

<HTML>
	<HEAD>
		<title>Edit Existing Event</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<LINK href="../../Styles.css" type="text/css" rel="stylesheet">
		<script language="javascript">
		
function popListBox(){
 
				var lBox = document.getElementById('ucEditForm_lstDropOption');
				//var lBox = document.forms[0].elements['ucEditForm:lstDropOption'];
				var tBox = document.getElementById('ucEditForm_txtDropOption');
				//var tBox = document.forms[0].elements['ucEditForm:txtDropOption'];
				var tValue = tBox.value
				var iIndex = lBox.options.length;
				if (tValue == "") {
				alert("You need to enter a value");
				}
				else
				lBox.options[iIndex]=new Option(tValue,iIndex+1);
				lBox.options[iIndex].value=tValue
				}
				
function popAllocationListBox(){
 
				var lBox=document.getElementById('ucEditForm_lstAllocation');
				var tAllBox = document.getElementById('ucEditForm_txtAllocationItem');
				var tAmtBox = document.getElementById('ucEditForm_txtAllocationAmt');
				var tAllValue = tAllBox.value
				var tAmtValue = tAmtBox.value
				
				
				var iIndex = lBox.options.length;
				if ((tAllValue == "")||(tAmtValue == "")) {
				alert("You need to enter an allocation Item and Amount");
				return false
				}
				else
				var lstValue = tAllBox.value + " " + "(" + tAmtBox.value + ")"
				lBox.options[iIndex]=new Option(lstValue,iIndex+1);
				lBox.options[iIndex].value=lstValue
				}
				
	function SelectAllItems(sList)
				{
		var el = document.getElementById(sList)
		if(el)
		{
		    var intCount=el.options.length;
		    for(i = 0; i < intCount;i++)
		    {
			    el.options(i).selected=true;
		    }
		    }
		}
		
	function DeleteListItem()
		{
				var lBox=document.getElementById('ucEditForm_lstDropOption');
				var iSelIndex =lBox.selectedIndex
				if(iSelIndex ==-1){
				alert("You need to selected an item to delete");
				return false
				}
				else
				lBox.remove(iSelIndex);
		}
		
function ValErrorText()
				{
				var op = document.getElementById("ucEditForm_rbYes")
				var tx = document.getElementById("ucEditForm_txtReqError")
					if(op){
					    if(op.checked==true){
 
						    if (tx.value.length < 1)
							{
							    alert("You must add a validation error message.")
							    return false;
							}
							else
							{
							
							return true;
							}
						}
					}	
				}
		</script>
	</HEAD>
	<body>
		<form name="Form1" method="post" action="EditForm.aspx" language="javascript" onsubmit="javascript:return WebForm_OnSubmit();" id="Form1">
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="__LASTFOCUS" id="__LASTFOCUS" value="" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTE4ODQ4MTEyMzIPZBYCAgEPZBYGAgEPZBYCAgEPZBYCZg8PFgIeBFRleHQFC01hdHMgRWduZWxsZGQCAw9kFgQCAQ8WAh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IQU3ViU2VjdGlvbkhlYWRlcgRMaW5rFRIAB1RleHRCb3gKT3RoZXIgSW5mbwpNYXggTGVuZ3RoDEZpeGVkIExlbmd0aAdOdW1lcmljEkV2YWx1YXRpb24gT3B0aW9ucwVFbWFpbAhEcm9wRG93bgVSYWRpbwVDaGVjawpDcmVkaXRDYXJkCkFsbG9jYXRpb24QU2luZ2xlQWxsb2NhdGlvbghUZXh0QXJlYQ1TZWN0aW9uSGVhZGVyEFN1YlNlY3Rpb25IZWFkZXIETGluaxQrAxJnZ2dnZ2dnZ2dnZ2dnZ2dnZ2cWAWZkAgQPFgIeB1Zpc2libGVoZAIFDxYCHwloFgICAQ9kFgICAw8QZGQWAGQCBg8WAh8JaGQCBw8WAh8JaGQCCA8WAh8JaGQCCw8WAh8JaGQCDA8WAh8JaGQCDQ8WAh8JaGQCDg8WAh8JaGQCDw8WAh8JaGQCEA8WAh8JaGQCEQ8WAh8JaGQCEg8WAh8JaGQCEw8WAh8JaGQCFA8WAh8JaGQCFQ8WAh8JaGQCFg8WAh8JaGQCFw8WAh8JaGQCGw8WAh8JaGQCHA8WAh8JaGQCHg9kFgJmD2QWAmYPD2QWAh4Hb25jbGljawUWcmV0dXJuIFZhbEVycm9yVGV4dCgpO2QYAQUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFgQFEHVjRWRpdEZvcm06cmJZZXMFEHVjRWRpdEZvcm06cmJZZXMFD3VjRWRpdEZvcm06cmJObwUPdWNFZGl0Rm9ybTpyYk5vUZ3NUQp/IQBetxkWHX5ZeoTjwKk=" />
 
<script type="text/javascript">
<!--
var theForm = document.forms['Form1'];
if (!theForm) {
    theForm = document.Form1;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
// -->
</script>
 
 
<script src="/Copy of RegisterForEvent on 10.47.0.15/WebResource.axd?d=TDChIrj_h4rKxVsCDotzxQ2&amp;t=633748835251662040" type="text/javascript"></script>
 
 
<script language='javascript'>
<!--
//Region Global Variables
var skm_SelectedMenuStyleInfos=new Object();
var skm_UnselectedMenuStyleInfos=new Object();
var skm_MenuFadeDelays=new Object();
var skm_clockValue=0;
var skm_ticker;
var skm_highlightTopMenus=new Object();
var skm_images=new Array();
var skm_OpenMenuItems = new Array();
//EndRegion
//Region Methods to hook up a menu to the global variables
function skm_registerMenu(menuID, selectedStyleInfo, unselectedStyleInfo, menuFadeDelay, highlightTopMenu){
	skm_SelectedMenuStyleInfos[menuID]=selectedStyleInfo;
	skm_UnselectedMenuStyleInfos[menuID]=unselectedStyleInfo;
	skm_MenuFadeDelays[menuID]=menuFadeDelay;
	skm_highlightTopMenus[menuID]=highlightTopMenu;
}
//Region The methods and contructor of the skm_styleInfo object.
function skm_applyStyleInfoToElement(element){
	element.style.backgroundColor=this.backgroundColor;
	element.style.borderColor=this.borderColor;
	element.style.borderStyle=this.borderStyle;
	element.style.borderWidth=this.borderWidth;
	element.style.color=this.color;
	if (this.fontFamily!='')
		element.style.fontFamily=this.fontFamily;
	element.style.fontSize=this.fontSize;
	element.style.fontStyle=this.fontStyle;
	element.style.fontWeight=this.fontWeight;
	if (this.className!='')
		element.style.className=this.className;
}
function skm_styleInfo(backgroundColor,borderColor,borderStyle,borderWidth,color,fontFamily,fontSize,fontStyle,fontWeight,className){
	this.backgroundColor=backgroundColor;
	this.borderColor=borderColor;
	this.borderStyle=borderStyle;
	this.borderWidth=borderWidth;
	this.color=color;
	this.fontFamily=fontFamily;
	this.fontSize=fontSize;
	this.fontStyle=fontStyle;
	this.fontWeight=fontWeight;
	this.className=className;
	this.applyToElement=skm_applyStyleInfoToElement;
}
//Region MouseEventHandlers
function skm_mousedOverMenu(menuID,elem,parent,displayedVertically,imageSource){
	skm_stopTick();
	skm_closeSubMenus(elem);
	var childID=elem.id+"-subMenu";  // Display child menu if needed
	if (document.getElementById(childID)!=null){  // make the child menu visible and specify that its position is specified in absolute coordinates
		document.getElementById(childID).style.display='block';
		document.getElementById(childID).style.position='absolute';
		skm_OpenMenuItems = skm_OpenMenuItems.concat(childID);
		if (displayedVertically){ // Set the child menu's left and top attributes according to the menu's offsets
			document.getElementById(childID).style.left=skm_getAscendingLefts(parent)+parent.offsetWidth;
			document.getElementById(childID).style.top=skm_getAscendingTops(elem);
			var visibleWidth=parseInt(window.outerWidth?window.outerWidth-9:document.body.clientWidth,10);
			if ((parseInt(document.getElementById(childID).offsetLeft,10)+parseInt(document.getElementById(childID).offsetWidth,10))>visibleWidth) {
				document.getElementById(childID).style.left=visibleWidth-parseInt(document.getElementById(childID).offsetWidth,10);
			}
		}else{  // Set the child menu's left and top attributes according to the menu's offsets
			document.getElementById(childID).style.left=skm_getAscendingLefts(elem);
			document.getElementById(childID).style.top=skm_getAscendingTops(parent)+parent.offsetHeight;
			if (document.getElementById(childID).offsetWidth<elem.offsetWidth)
				document.getElementById(childID).style.width=elem.offsetWidth;
		}
	}
	if (skm_SelectedMenuStyleInfos[menuID] != null) skm_SelectedMenuStyleInfos[menuID].applyToElement(elem);
	if (skm_highlightTopMenus[menuID]){
		var eId=elem.id+'';
		while (eId.indexOf('-subMenu')>=0){
			eId=eId.substring(0, eId.lastIndexOf('-subMenu'));
			skm_SelectedMenuStyleInfos[menuID].applyToElement(document.getElementById(eId));
		}
	}	
	if (imageSource!=''){
		setimage(elem,imageSource)
	}
}
function skm_mousedOverClickToOpen(menuID,elem,parent,imageSource){
	skm_stopTick();
	if (skm_SelectedMenuStyleInfos[menuID] != null) skm_SelectedMenuStyleInfos[menuID].applyToElement(elem);
	if (skm_highlightTopMenus[menuID]){
		var eId=elem.id+'';
		while (eId.indexOf('-subMenu')>=0){
			eId=eId.substring(0, eId.lastIndexOf('-subMenu'));
			skm_SelectedMenuStyleInfos[menuID].applyToElement(document.getElementById(eId));
		}
	}	
	if (imageSource!=''){
		setimage(elem,imageSource)
	}
}
function skm_mousedOverSpacer(menuID,elem,parent){
	skm_stopTick();
}
function skm_mousedOutMenu(menuID,elem,imageSource){
	skm_doTick(menuID);
	if (skm_UnselectedMenuStyleInfos[menuID] != null) skm_UnselectedMenuStyleInfos[menuID].applyToElement(elem);
	if (skm_highlightTopMenus[menuID]){
		var eId=elem.id+'';
		while (eId.indexOf('-subMenu')>=0){
			eId=eId.substring(0, eId.lastIndexOf('-subMenu'));
			skm_UnselectedMenuStyleInfos[menuID].applyToElement(document.getElementById(eId));
		}
	}
	if (imageSource!=''){
		setimage(elem,imageSource)
	}
}
function skm_mousedOutSpacer(menuID, elem){
	skm_doTick(menuID);
}
//Region Utility Functions
function skm_closeSubMenus(parent){
	if (skm_OpenMenuItems == "undefined") return;
	for (var i=skm_OpenMenuItems.length-1; i>-1;i--) {
		if (parent.id.indexOf(skm_OpenMenuItems[i]) != 0) {
			document.getElementById(skm_OpenMenuItems[i]).style.display = 'none';
			skm_shimSetVisibility(false, skm_OpenMenuItems[i]);			
			skm_OpenMenuItems = new Array().concat(skm_OpenMenuItems.slice(0,i), skm_OpenMenuItems.slice(i+1));
  		} 
	}
}
function skm_shimSetVisibility(makevisible, tableid){
	var tblRef=document.getElementById(tableid);
	var IfrRef=document.getElementById('shim'+tableid);
	if (tblRef!=null && IfrRef!=null){
		if(makevisible){
			IfrRef.style.width=tblRef.offsetWidth;
			IfrRef.style.height=tblRef.offsetHeight;
			IfrRef.style.top=tblRef.style.top;
			IfrRef.style.left=tblRef.style.left;
			IfrRef.style.zIndex=tblRef.style.zIndex-1;
			IfrRef.style.display="block";
		}else{
			IfrRef.style.display="none";
		}
	}
}
function skm_IsSubMenu(id){
	if (skm_subMenuIDs == "undefined") return false;
	for (var i=0;i<skm_subMenuIDs.length;i++)
	  if (id==skm_subMenuIDs[i]) return true;
	return false;
}
function skm_getAscendingLefts(elem){
	if (elem==null)
		return 0;
	else
	{
		if ((elem.style.position=='absolute' || elem.style.position=='relative') && !skm_IsSubMenu(elem.id)) return 0;
		return elem.offsetLeft+skm_getAscendingLefts(elem.offsetParent);
	}
}
function skm_getAscendingTops(elem){
	if (elem==null)
		return 0;
	else {
		if ((elem.style.position=='absolute' || elem.style.position=='relative') && !skm_IsSubMenu(elem.id)) return 0;
		return elem.offsetTop+skm_getAscendingTops(elem.offsetParent);
	}
}
//Region Fade Functions
function skm_doTick(menuID){
	if (skm_clockValue>=skm_MenuFadeDelays[menuID]){
		skm_stopTick();
		skm_closeSubMenus(document.getElementById(menuID));
	} else {
		skm_clockValue++;
		skm_ticker=setTimeout("skm_doTick('"+menuID+"');", 500);
	}
}
function skm_stopTick(){
	skm_clockValue=0;
	clearTimeout(skm_ticker);
}
function preloadimages(){
	for (i=0;i<preloadimages.arguments.length;i++){
		skm_images[i]=new Image();
		skm_images[i].src=preloadimages.arguments[i];
	}
}
function setimage(elem,imageSource){
	var i=elem.getElementsByTagName("img")[0];
	i.src=imageSource;
}
//-->
</script>
		
<script src="/Copy of RegisterForEvent on 10.47.0.15/WebResource.axd?d=15C5cJL3LLlXNd18Rr855uslxYU9TJ8hd3RMUqP5kRs1&amp;t=633748835251662040" type="text/javascript"></script>
<script type="text/javascript">
<!--
function WebForm_OnSubmit() {
if (typeof(ValidatorOnSubmit) == "function" && ValidatorOnSubmit() == false) return false;SelectAllItems('ucEditForm:lstDropOption');
return true;
}
// -->
</script>
 
			<TABLE id="Table1" cellSpacing="1" cellPadding="1" width="760" border="0">
				<TR>
					<TD colSpan="2">
<TABLE cellSpacing="0" cellPadding="0" width="760" border="0" ID="Table1">
	<TBODY>
	
		<TR height="70">
			<TD width="760" BACKGROUND="../../images/HRGLogo.jpg"><p class="dateline">
					<div style="z-index:1;" align="right"><span id="ucHeader_lbl" style="background-color:Transparent;">Mats Egnell</span></div></p></TD>
		</TR>
		<tr>
			<td><IMG height="1" src="../../images/shim.gif" width="1"></td>
		</tr>
		<tr>
			<td class="HeaderMenuBackground"><img src="../../images/shim.gif" width="0" height="11"></td>
		</tr>
	</TBODY>
</TABLE>
</TD>
				</TR>
				<TR>
					<td colSpan="2"><IMG height="5" src="../../images/shim.gif"></td>
				</TR>
				<TR>
					<TD vAlign="top" width="160">
<table border="0" cellpadding="0" cellspacing="0" width="146">
	<tr>
		<td width="2"><img src="../../images/mTL.gif"></td>
		<td width="142" style="BACKGROUND-IMAGE: url(../../images/mT.gif); BACKGROUND-REPEAT: repeat-x">
			<table border="0" cellpadding="0" cellspacing="0" width="142">
				<tr>
					<td width="120"><p class="MenuHeading">Menu</p>
					</td>
					<td width="22"><img src="../../images/BTIMiniLogo.gif"></td>
				</tr>
			</table>
		</td>
		<td width="2"><img src="../../images/mTR.gif"></td>
	</tr>
</table>
<table class="MenuItemBorder" border="0" cellpadding="0" cellspacing="0" width="146">
	<tr>
		<td colSpan="2">
			<table class="menusub" cellspacing="1" cellpadding="1" id="ucMenu_Menu1-menuItem007-subMenu" bordercolor="#424A52" border="0" style="border-color:#424A52;border-width:1px;border-style:solid;display:none;z-index:1002;">
	<tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem007-subMenu-menuItem000" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditGraphics.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1-menuItem007-subMenu'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this,'');this.className='MenuItemNormal';" style="cursor:pointer;">Images</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem007-subMenu-menuItem001" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditLinksPageSettings.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1-menuItem007-subMenu'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this,'');this.className='MenuItemNormal';" style="cursor:pointer;">Links Page Settings</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem007-subMenu-menuItem002" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditLinksPDF.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1-menuItem007-subMenu'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this,'');this.className='MenuItemNormal';" style="cursor:pointer;">PDF</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem007-subMenu-menuItem003" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditLinksWEB.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1-menuItem007-subMenu'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this,'');this.className='MenuItemNormal';" style="cursor:pointer;">WEB</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem007-subMenu-menuItem004" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditLinksSeq.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1-menuItem007-subMenu'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this,'');this.className='MenuItemNormal';" style="cursor:pointer;">Links Sequence</td>
	</tr>
</table><table class="MenuItemNormal" cellspacing="1" cellpadding="1" id="ucMenu_Menu1" bordercolor="#424A52" border="0" style="border-color:#424A52;border-width:1px;border-style:solid;width:146px;z-index:1000;">
	<tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem000" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='../MAIN/AdminWelcome.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Home</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem001" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditDesign.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Design</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem002" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditLabels.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Labels</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem003" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditIntroPage.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Intro Page</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem004" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditContactPage.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Contact Page</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem005" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditForm.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Form Page</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem006" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditFormFieldSeq.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Field Order</td>
	</tr><tr>
		<td title="Edit pdf or weblinks. Upload images or PDF files." class="MenuItemNormal" valign="bottom" id="ucMenu_Menu1-menuItem007" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';"><img src="../../images/Arrow.gif" align="right" border="0" />Upload Files</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem008" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='../Preview/pIntro.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Preview</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem009" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='../Main/LogOut.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Log out</td>
	</tr>
</table></td>
	</tr>
</table>
</TD>
					<td width="500"><table id="ucEditForm_tblEditForm" cellspacing="1" cellpadding="1" width="600" border="0">
	<tr id="ucEditForm_trError" align="center">
		<td colspan="2">
 
<table width="440" cellpadding="0" cellspacing="0" border="0">
	<tr valign="top">
		<td width="1"></td>
		<td id="ucEditForm_ucError_col1" bgcolor="#ffa525">
			<div headertext="&lt;img src='../../images/warning.gif' hspace=4 vspace=6>&lt;!--" id="ucEditForm_ucError_Validationsummary1" style="color:Red;background-color:#FFA525;display:none;">
 
		</div><!---->
		</td>
		
		<td bgcolor="#ffa525" style="PADDING-BOTTOM: 4px; PADDING-TOP: 4px">
			<div displaymode="List" id="ucEditForm_ucError_Validationsummary2" class="PageText" style="color:Black;background-color:#FFA525;display:none;">
 
		</div>
		</td>
		<td id="ucEditForm_ucError_col3" bgcolor="#ffa525" align="right">
			<div headertext="&lt;img src='../../images/errorcorner.gif'>&lt;!--" id="ucEditForm_ucError_Validationsummary3" style="color:Red;background-color:#FFA525;display:none;">
 
		</div><!---->
		</td>
		
	</tr>
</table>
<script language="javascript">
/*
TestContent()
 
window.onbeforeunload=function(){
	tblError.style.display="none"
}
 
window.onload=function(){
	TestContent()
}
 
function TestContent(){
	if(tdCol2.innerText.length>0){
		trError.bgColor="#FFCC66"
		tblError.style.display="block"
	} else {
		trError.bgColor="#FFFFFF"
		tblError.style.display="none"
	}
}
*/
</script>
<span display="None" id="ucEditForm_cvGeneral" evaluationfunction="CustomValidatorEvaluateIsValid" style="color:Red;display:none;"></span></td>
	</tr>
	<tr>
		<td class="header" colspan="2">Edit Form
		</td>
	</tr>
	<tr>
		<td colspan="2"><IMG height="10" src="../../images/shim.gif"></td>
	</tr>
	<tr>
		<TD class="label" width="200"><span id="ucEditForm_Label1">Choose Control Type:</span></TD>
		<TD class="label" width="400"><select name="ucEditForm:ddlControlType" onchange="javascript:setTimeout('__doPostBack(\'ucEditForm$ddlControlType\',\'\')', 0)" language="javascript" id="ucEditForm_ddlControlType" class="Companylist" style="width:300px;">
			<option selected="selected" value=""></option>
			<option value="TextBox">TextBox</option>
			<option value="Other Info">Other Info</option>
			<option value="Max Length">Max Length</option>
			<option value="Fixed Length">Fixed Length</option>
			<option value="Numeric">Numeric</option>
			<option value="Evaluation Options">Evaluation Options</option>
			<option value="Email">Email</option>
			<option value="DropDown">DropDown</option>
			<option value="Radio">Radio</option>
			<option value="Check">Check</option>
			<option value="CreditCard">CreditCard</option>
			<option value="Allocation">Allocation</option>
			<option value="SingleAllocation">SingleAllocation</option>
			<option value="TextArea">TextArea</option>
			<option value="SectionHeader">SectionHeader</option>
			<option value="SubSectionHeader">SubSectionHeader</option>
			<option value="Link">Link</option>
 
		</select>
        </TD>
	</tr>
	<tr id="ucEditForm_rptlabel">
		<TD class="label" width="200"><span id="ucEditForm_Label5">Enter Control Name:</span></TD>
		<TD class="label" width="400"><input name="ucEditForm:txtCtlName" type="text" maxlength="50" id="ucEditForm_txtCtlName" style="width:300px;" /></TD>
	</tr>
	<tr id="ucEditForm_frmlabel">
		<TD class="label" width="200"><span id="ucEditForm_Label2">Enter Label Text:</span></TD>
		<TD class="label" width="400"><input name="ucEditForm:txtControlLabel" type="text" maxlength="500" id="ucEditForm_txtControlLabel" style="width:300px;" /></TD>
	</tr>
	<tr id="ucEditForm_valrequired">
		<TD class="label" width="200"><span id="ucEditForm_Label3">Is it Required:</span></TD>
		<TD class="label" width="400"><input id="ucEditForm_rbYes" type="radio" name="ucEditForm:grpYesNo" value="rbYes" /><label for="ucEditForm_rbYes">Yes</label><input id="ucEditForm_rbNo" type="radio" name="ucEditForm:grpYesNo" value="rbNo" /><label for="ucEditForm_rbNo">No</label></TD>
	</tr>
	<tr id="ucEditForm_reqErrorText">
		<TD class="label" width="200"><span id="ucEditForm_lblRequiredText">Required Error Text:</span></TD>
		<TD class="label" width="400"><input name="ucEditForm:txtReqError" type="text" maxlength="500" id="ucEditForm_txtReqError" style="width:300px;" /></TD>
	</tr>
	<tr id="ucEditForm_help">
		<TD class="label" valign="top" width="200"><span id="ucEditForm_Label4">Help Text:</span></TD>
		<TD class="label" width="400"><textarea name="ucEditForm:txtHelpText" id="ucEditForm_txtHelpText" style="width:300px;"></textarea></TD>
	</tr>
	<tr>
		<td style="HEIGHT: 5px" colspan="2"><IMG height="5" src="../../images/shim.gif">&nbsp;<input name="ucEditForm:lblList" type="hidden" id="ucEditForm_lblList" /></td>
	</tr>
	<tr>
		<TD align="center" colspan="2"><input type="submit" name="ucEditForm:btnSave" value="Save" onclick="return ValErrorText();WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ucEditForm:btnSave&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))" language="javascript" id="ucEditForm_btnSave" />&nbsp;&nbsp;
			</TD>
	</tr>
	<tr>
		<td colspan="2"><IMG height="15" src="../../images/shim.gif">&nbsp;</td>
	</tr>
	<tr>
		<td class="header" colspan="2">View Results
		</td>
	</tr>
	<tr>
		<td colspan="2"><IMG height="10" src="../../images/shim.gif"></td>
	</tr>
</table>
 
<table id="tblFormResult" cellSpacing="1" cellPadding="1" width="600" border="0">
	<tr>
		<td id="ucEditForm_tdContainer"><table cellspacing="2" cellpadding="2" width="620" border="0">
	<tr>
		<td class="label">Test</td><td><select name="ucEditForm:ddl32182" id="ucEditForm_ddl32182" class="Companylist">
 
		</select></td><td><input type="submit" name="ucEditForm:32182" value="Delete" id="ucEditForm_32182" class="btntrip" /></td><td><input type="submit" name="ucEditForm:E32182" value="Edit" id="ucEditForm_E32182" class="btntrip" /></td>
	</tr>
</table></td>
 
	</tr>
</table>
</td>
				</TR>
				<TR>
					<td colSpan="2"><IMG height="200" src="../../images/shim.gif"></td>
				</TR>
				<TR>
					<TD colSpan="2">
<br>
<br>
<TABLE id="Table6" cellSpacing="0" cellPadding="0" width="760" border="0">
	<tr>
		<td id="ucFooter_trVer" align="right"><p class="FooterText">Ver 3.6.2
			</p>
		</td>
 
	</tr>
</TABLE>
<hr class="SeperatorA">
</TD>
				</TR>
			</TABLE>
		
<script type="text/javascript">
<!--
var skm_subMenuIDs =  new Array('ucMenu_Menu1-menuItem007-subMenu', 'ucMenu_Menu1');
var Page_ValidationSummaries =  new Array(document.getElementById("ucEditForm_ucError_Validationsummary1"), document.getElementById("ucEditForm_ucError_Validationsummary2"), document.getElementById("ucEditForm_ucError_Validationsummary3"));
var Page_Validators =  new Array(document.getElementById("ucEditForm_cvGeneral"));
// -->
</script>
 
<script language="javascript">skm_registerMenu('ucMenu_Menu1',new skm_styleInfo('','','','','','','','','',''),new skm_styleInfo('','','','','','','','','',''),2,false);</script>
<script type="text/javascript">
<!--
var Page_ValidationActive = false;
if (typeof(ValidatorOnLoad) == "function") {
    ValidatorOnLoad();
}
 
function ValidatorOnSubmit() {
    if (Page_ValidationActive) {
        return ValidatorCommonOnSubmit();
    }
    else {
        return true;
    }
}
// -->
</script>
        </form>
	</body>
</HTML>

Open in new window

0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 24364348
I do not see a link to call popListBox in the html you pasted nor a select called ucEditForm_lstDropOption
0
 

Author Comment

by:mattegol
ID: 24364735
here, this is it before submit
<HTML>
	<HEAD>
		<title>Edit Existing Event</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<LINK href="../../Styles.css" type="text/css" rel="stylesheet">
 
		<script language="javascript">
		
function popListBox(){
 
				var lBox = document.getElementById('ucEditForm_lstDropOption');
				//var lBox = document.forms[0].elements['ucEditForm:lstDropOption'];
				var tBox = document.getElementById('ucEditForm_txtDropOption');
				//var tBox = document.forms[0].elements['ucEditForm:txtDropOption'];
				var tValue = tBox.value
				var iIndex = lBox.options.length;
				if (tValue == "") {
				alert("You need to enter a value");
				}
				else
				lBox.options[iIndex]=new Option(tValue,iIndex+1);
				lBox.options[iIndex].value=tValue
				}
				
function popAllocationListBox(){
 
				var lBox=document.getElementById('ucEditForm_lstAllocation');
				var tAllBox = document.getElementById('ucEditForm_txtAllocationItem');
				var tAmtBox = document.getElementById('ucEditForm_txtAllocationAmt');
				var tAllValue = tAllBox.value
				var tAmtValue = tAmtBox.value
				
				
				var iIndex = lBox.options.length;
				if ((tAllValue == "")||(tAmtValue == "")) {
				alert("You need to enter an allocation Item and Amount");
				return false
				}
				else
				var lstValue = tAllBox.value + " " + "(" + tAmtBox.value + ")"
				lBox.options[iIndex]=new Option(lstValue,iIndex+1);
				lBox.options[iIndex].value=lstValue
				}
				
	function SelectAllItems(sList)
				{
		var el = document.getElementById(sList)
		if(el)
		{
		    var intCount=el.options.length;
		    for(i = 0; i < intCount;i++)
		    {
			    el.options(i).selected=true;
		    }
		    }
		}
		
	function DeleteListItem()
		{
				var lBox=document.getElementById('ucEditForm_lstDropOption');
				var iSelIndex =lBox.selectedIndex
				if(iSelIndex ==-1){
				alert("You need to selected an item to delete");
				return false
				}
				else
				lBox.remove(iSelIndex);
		}
		
function ValErrorText()
				{
				var op = document.getElementById("ucEditForm_rbYes")
				var tx = document.getElementById("ucEditForm_txtReqError")
					if(op){
					    if(op.checked==true){
 
						    if (tx.value.length < 1)
							{
							    alert("You must add a validation error message.")
							    return false;
							}
							else
							{
							
							return true;
							}
						}
					}	
				}
		</script>
	</HEAD>
	<body>
		<form name="Form1" method="post" action="EditForm.aspx" language="javascript" onsubmit="javascript:return WebForm_OnSubmit();" id="Form1">
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="__LASTFOCUS" id="__LASTFOCUS" value="" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTE4ODQ4MTEyMzIPZBYCAgEPZBYGAgEPZBYCAgEPZBYCZg8PFgIeBFRleHQFC01hdHMgRWduZWxsZGQCAw9kFgQCAQ8WAh8ABQRNZW51ZAIDDzwrAAUBAxQrAAoQFgYeBkl0ZW1JRAUYdWNNZW51X01lbnUxLW1lbnVJdGVtMDAwHghJdGVtVGV4dAUESG9tZR4HSXRlbVVSTAUZLi4vTUFJTi9BZG1pbldlbGNvbWUuYXNweGRkEBYGHwEFGHVjTWVudV9NZW51MS1tZW51SXRlbTAwMR8CBQZEZXNpZ24fAwUPRWRpdERlc2lnbi5hc3B4ZGQQFgYfAQUYdWNNZW51X01lbnUxLW1lbnVJdGVtMDAyHwIFBkxhYmVscx8DBQ9FZGl0TGFiZWxzLmFzcHhkZBAWBh8BBRh1Y01lbnVfTWVudTEtbWVudUl0ZW0wMDMfAgUKSW50cm8gUGFnZR8DBRJFZGl0SW50cm9QYWdlLmFzcHhkZBAWBh8BBRh1Y01lbnVfTWVudTEtbWVudUl0ZW0wMDQfAgUMQ29udGFjdCBQYWdlHwMFFEVkaXRDb250YWN0UGFnZS5hc3B4ZGQQFgYfAQUYdWNNZW51X01lbnUxLW1lbnVJdGVtMDA1HwIFCUZvcm0gUGFnZR8DBQ1FZGl0Rm9ybS5hc3B4ZGQQFgYfAQUYdWNNZW51X01lbnUxLW1lbnVJdGVtMDA2HwIFC0ZpZWxkIE9yZGVyHwMFFUVkaXRGb3JtRmllbGRTZXEuYXNweGRkEBYMHwEFGHVjTWVudV9NZW51MS1tZW51SXRlbTAwNx8CBQxVcGxvYWQgRmlsZXMeD01lbnVJdGVtVG9vbFRpcAUxRWRpdCBwZGYgb3Igd2VibGlua3MuIFVwbG9hZCBpbWFnZXMgb3IgUERGIGZpbGVzLh4RSXRlb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dGlvbgUQdWNFZGl0Rm9ybTpyYlllcwUQdWNFZGl0Rm9ybTpyYlllcwUPdWNFZGl0Rm9ybTpyYk5vBQ91Y0VkaXRGb3JtOnJiTm8Tl1XC+fCShof4imvTxL8201JAug==" />
 
<script type="text/javascript">
<!--
var theForm = document.forms['Form1'];
if (!theForm) {
    theForm = document.Form1;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
// -->
</script>
 
<script src="/Copy of RegisterForEvent on 10.47.0.15/WebResource.axd?d=TDChIrj_h4rKxVsCDotzxQ2&amp;t=633748835251662040" type="text/javascript"></script>
 
 
<script language='javascript'>
<!--
//Region Global Variables
var skm_SelectedMenuStyleInfos=new Object();
var skm_UnselectedMenuStyleInfos=new Object();
var skm_MenuFadeDelays=new Object();
var skm_clockValue=0;
var skm_ticker;
var skm_highlightTopMenus=new Object();
var skm_images=new Array();
var skm_OpenMenuItems = new Array();
//EndRegion
//Region Methods to hook up a menu to the global variables
function skm_registerMenu(menuID, selectedStyleInfo, unselectedStyleInfo, menuFadeDelay, highlightTopMenu){
	skm_SelectedMenuStyleInfos[menuID]=selectedStyleInfo;
	skm_UnselectedMenuStyleInfos[menuID]=unselectedStyleInfo;
	skm_MenuFadeDelays[menuID]=menuFadeDelay;
	skm_highlightTopMenus[menuID]=highlightTopMenu;
}
//Region The methods and contructor of the skm_styleInfo object.
function skm_applyStyleInfoToElement(element){
	element.style.backgroundColor=this.backgroundColor;
	element.style.borderColor=this.borderColor;
	element.style.borderStyle=this.borderStyle;
	element.style.borderWidth=this.borderWidth;
	element.style.color=this.color;
	if (this.fontFamily!='')
		element.style.fontFamily=this.fontFamily;
	element.style.fontSize=this.fontSize;
	element.style.fontStyle=this.fontStyle;
	element.style.fontWeight=this.fontWeight;
	if (this.className!='')
		element.style.className=this.className;
}
function skm_styleInfo(backgroundColor,borderColor,borderStyle,borderWidth,color,fontFamily,fontSize,fontStyle,fontWeight,className){
	this.backgroundColor=backgroundColor;
	this.borderColor=borderColor;
	this.borderStyle=borderStyle;
	this.borderWidth=borderWidth;
	this.color=color;
	this.fontFamily=fontFamily;
	this.fontSize=fontSize;
	this.fontStyle=fontStyle;
	this.fontWeight=fontWeight;
	this.className=className;
	this.applyToElement=skm_applyStyleInfoToElement;
}
//Region MouseEventHandlers
function skm_mousedOverMenu(menuID,elem,parent,displayedVertically,imageSource){
	skm_stopTick();
	skm_closeSubMenus(elem);
	var childID=elem.id+"-subMenu";  // Display child menu if needed
	if (document.getElementById(childID)!=null){  // make the child menu visible and specify that its position is specified in absolute coordinates
		document.getElementById(childID).style.display='block';
		document.getElementById(childID).style.position='absolute';
		skm_OpenMenuItems = skm_OpenMenuItems.concat(childID);
		if (displayedVertically){ // Set the child menu's left and top attributes according to the menu's offsets
			document.getElementById(childID).style.left=skm_getAscendingLefts(parent)+parent.offsetWidth;
			document.getElementById(childID).style.top=skm_getAscendingTops(elem);
			var visibleWidth=parseInt(window.outerWidth?window.outerWidth-9:document.body.clientWidth,10);
			if ((parseInt(document.getElementById(childID).offsetLeft,10)+parseInt(document.getElementById(childID).offsetWidth,10))>visibleWidth) {
				document.getElementById(childID).style.left=visibleWidth-parseInt(document.getElementById(childID).offsetWidth,10);
			}
		}else{  // Set the child menu's left and top attributes according to the menu's offsets
			document.getElementById(childID).style.left=skm_getAscendingLefts(elem);
			document.getElementById(childID).style.top=skm_getAscendingTops(parent)+parent.offsetHeight;
			if (document.getElementById(childID).offsetWidth<elem.offsetWidth)
				document.getElementById(childID).style.width=elem.offsetWidth;
		}
	}
	if (skm_SelectedMenuStyleInfos[menuID] != null) skm_SelectedMenuStyleInfos[menuID].applyToElement(elem);
	if (skm_highlightTopMenus[menuID]){
		var eId=elem.id+'';
		while (eId.indexOf('-subMenu')>=0){
			eId=eId.substring(0, eId.lastIndexOf('-subMenu'));
			skm_SelectedMenuStyleInfos[menuID].applyToElement(document.getElementById(eId));
		}
	}	
	if (imageSource!=''){
		setimage(elem,imageSource)
	}
}
function skm_mousedOverClickToOpen(menuID,elem,parent,imageSource){
	skm_stopTick();
	if (skm_SelectedMenuStyleInfos[menuID] != null) skm_SelectedMenuStyleInfos[menuID].applyToElement(elem);
	if (skm_highlightTopMenus[menuID]){
		var eId=elem.id+'';
		while (eId.indexOf('-subMenu')>=0){
			eId=eId.substring(0, eId.lastIndexOf('-subMenu'));
			skm_SelectedMenuStyleInfos[menuID].applyToElement(document.getElementById(eId));
		}
	}	
	if (imageSource!=''){
		setimage(elem,imageSource)
	}
}
function skm_mousedOverSpacer(menuID,elem,parent){
	skm_stopTick();
}
function skm_mousedOutMenu(menuID,elem,imageSource){
	skm_doTick(menuID);
	if (skm_UnselectedMenuStyleInfos[menuID] != null) skm_UnselectedMenuStyleInfos[menuID].applyToElement(elem);
	if (skm_highlightTopMenus[menuID]){
		var eId=elem.id+'';
		while (eId.indexOf('-subMenu')>=0){
			eId=eId.substring(0, eId.lastIndexOf('-subMenu'));
			skm_UnselectedMenuStyleInfos[menuID].applyToElement(document.getElementById(eId));
		}
	}
	if (imageSource!=''){
		setimage(elem,imageSource)
	}
}
function skm_mousedOutSpacer(menuID, elem){
	skm_doTick(menuID);
}
//Region Utility Functions
function skm_closeSubMenus(parent){
	if (skm_OpenMenuItems == "undefined") return;
	for (var i=skm_OpenMenuItems.length-1; i>-1;i--) {
		if (parent.id.indexOf(skm_OpenMenuItems[i]) != 0) {
			document.getElementById(skm_OpenMenuItems[i]).style.display = 'none';
			skm_shimSetVisibility(false, skm_OpenMenuItems[i]);			
			skm_OpenMenuItems = new Array().concat(skm_OpenMenuItems.slice(0,i), skm_OpenMenuItems.slice(i+1));
  		} 
	}
}
function skm_shimSetVisibility(makevisible, tableid){
	var tblRef=document.getElementById(tableid);
	var IfrRef=document.getElementById('shim'+tableid);
	if (tblRef!=null && IfrRef!=null){
		if(makevisible){
			IfrRef.style.width=tblRef.offsetWidth;
			IfrRef.style.height=tblRef.offsetHeight;
			IfrRef.style.top=tblRef.style.top;
			IfrRef.style.left=tblRef.style.left;
			IfrRef.style.zIndex=tblRef.style.zIndex-1;
			IfrRef.style.display="block";
		}else{
			IfrRef.style.display="none";
		}
	}
}
function skm_IsSubMenu(id){
	if (skm_subMenuIDs == "undefined") return false;
	for (var i=0;i<skm_subMenuIDs.length;i++)
	  if (id==skm_subMenuIDs[i]) return true;
	return false;
}
function skm_getAscendingLefts(elem){
	if (elem==null)
		return 0;
	else
	{
		if ((elem.style.position=='absolute' || elem.style.position=='relative') && !skm_IsSubMenu(elem.id)) return 0;
		return elem.offsetLeft+skm_getAscendingLefts(elem.offsetParent);
	}
}
function skm_getAscendingTops(elem){
	if (elem==null)
		return 0;
	else {
		if ((elem.style.position=='absolute' || elem.style.position=='relative') && !skm_IsSubMenu(elem.id)) return 0;
		return elem.offsetTop+skm_getAscendingTops(elem.offsetParent);
	}
}
//Region Fade Functions
function skm_doTick(menuID){
	if (skm_clockValue>=skm_MenuFadeDelays[menuID]){
		skm_stopTick();
		skm_closeSubMenus(document.getElementById(menuID));
	} else {
		skm_clockValue++;
		skm_ticker=setTimeout("skm_doTick('"+menuID+"');", 500);
	}
}
function skm_stopTick(){
	skm_clockValue=0;
	clearTimeout(skm_ticker);
}
function preloadimages(){
	for (i=0;i<preloadimages.arguments.length;i++){
		skm_images[i]=new Image();
		skm_images[i].src=preloadimages.arguments[i];
	}
}
function setimage(elem,imageSource){
	var i=elem.getElementsByTagName("img")[0];
	i.src=imageSource;
}
//-->
</script>
		
<script src="/Copy of RegisterForEvent on 10.47.0.15/WebResource.axd?d=15C5cJL3LLlXNd18Rr855uslxYU9TJ8hd3RMUqP5kRs1&amp;t=633748835251662040" type="text/javascript"></script>
<script type="text/javascript">
<!--
function WebForm_OnSubmit() {
if (typeof(ValidatorOnSubmit) == "function" && ValidatorOnSubmit() == false) return false;SelectAllItems('ucEditForm:lstDropOption');
return true;
}
// -->
</script>
 
			<TABLE id="Table1" cellSpacing="1" cellPadding="1" width="760" border="0">
				<TR>
 
					<TD colSpan="2">
<TABLE cellSpacing="0" cellPadding="0" width="760" border="0" ID="Table1">
	<TBODY>
	
		<TR height="70">
			<TD width="760" BACKGROUND="../../images/HRGLogo.jpg"><p class="dateline">
					<div style="z-index:1;" align="right"><span id="ucHeader_lbl" style="background-color:Transparent;">Mats Egnell</span></div></p></TD>
		</TR>
		<tr>
			<td><IMG height="1" src="../../images/shim.gif" width="1"></td>
 
		</tr>
		<tr>
			<td class="HeaderMenuBackground"><img src="../../images/shim.gif" width="0" height="11"></td>
		</tr>
	</TBODY>
</TABLE>
</TD>
				</TR>
				<TR>
					<td colSpan="2"><IMG height="5" src="../../images/shim.gif"></td>
 
				</TR>
				<TR>
					<TD vAlign="top" width="160">
<table border="0" cellpadding="0" cellspacing="0" width="146">
	<tr>
		<td width="2"><img src="../../images/mTL.gif"></td>
		<td width="142" style="BACKGROUND-IMAGE: url(../../images/mT.gif); BACKGROUND-REPEAT: repeat-x">
			<table border="0" cellpadding="0" cellspacing="0" width="142">
				<tr>
 
					<td width="120"><p class="MenuHeading">Menu</p>
					</td>
					<td width="22"><img src="../../images/BTIMiniLogo.gif"></td>
				</tr>
			</table>
		</td>
		<td width="2"><img src="../../images/mTR.gif"></td>
	</tr>
 
</table>
<table class="MenuItemBorder" border="0" cellpadding="0" cellspacing="0" width="146">
	<tr>
		<td colSpan="2">
			<table class="menusub" cellspacing="1" cellpadding="1" id="ucMenu_Menu1-menuItem007-subMenu" bordercolor="#424A52" border="0" style="border-color:#424A52;border-width:1px;border-style:solid;display:none;z-index:1002;">
	<tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem007-subMenu-menuItem000" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditGraphics.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1-menuItem007-subMenu'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this,'');this.className='MenuItemNormal';" style="cursor:pointer;">Images</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem007-subMenu-menuItem001" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditLinksPageSettings.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1-menuItem007-subMenu'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this,'');this.className='MenuItemNormal';" style="cursor:pointer;">Links Page Settings</td>
 
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem007-subMenu-menuItem002" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditLinksPDF.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1-menuItem007-subMenu'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this,'');this.className='MenuItemNormal';" style="cursor:pointer;">PDF</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem007-subMenu-menuItem003" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditLinksWEB.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1-menuItem007-subMenu'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this,'');this.className='MenuItemNormal';" style="cursor:pointer;">WEB</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem007-subMenu-menuItem004" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditLinksSeq.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1-menuItem007-subMenu'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this,'');this.className='MenuItemNormal';" style="cursor:pointer;">Links Sequence</td>
	</tr>
 
</table><table class="MenuItemNormal" cellspacing="1" cellpadding="1" id="ucMenu_Menu1" bordercolor="#424A52" border="0" style="border-color:#424A52;border-width:1px;border-style:solid;width:146px;z-index:1000;">
	<tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem000" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='../MAIN/AdminWelcome.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Home</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem001" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditDesign.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Design</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem002" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditLabels.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Labels</td>
	</tr><tr>
 
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem003" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditIntroPage.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Intro Page</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem004" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditContactPage.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Contact Page</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem005" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditForm.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Form Page</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem006" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditFormFieldSeq.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Field Order</td>
 
	</tr><tr>
		<td title="Edit pdf or weblinks. Upload images or PDF files." class="MenuItemNormal" valign="bottom" id="ucMenu_Menu1-menuItem007" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';"><img src="../../images/Arrow.gif" align="right" border="0" />Upload Files</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem008" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='../Preview/pIntro.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Preview</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem009" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='../Main/LogOut.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Log out</td>
	</tr>
 
</table></td>
	</tr>
</table>
</TD>
					<td width="500"><table id="ucEditForm_tblEditForm" cellspacing="1" cellpadding="1" width="600" border="0">
	<tr id="ucEditForm_trError" align="center">
		<td colspan="2">
 
<table width="440" cellpadding="0" cellspacing="0" border="0">
	<tr valign="top">
		<td width="1"></td>
 
		<td id="ucEditForm_ucError_col1" bgcolor="#ffa525">
			<div headertext="&lt;img src='../../images/warning.gif' hspace=4 vspace=6>&lt;!--" id="ucEditForm_ucError_Validationsummary1" style="color:Red;background-color:#FFA525;display:none;">
 
		</div><!---->
		</td>
		
		<td bgcolor="#ffa525" style="PADDING-BOTTOM: 4px; PADDING-TOP: 4px">
			<div displaymode="List" id="ucEditForm_ucError_Validationsummary2" class="PageText" style="color:Black;background-color:#FFA525;display:none;">
 
		</div>
		</td>
 
		<td id="ucEditForm_ucError_col3" bgcolor="#ffa525" align="right">
			<div headertext="&lt;img src='../../images/errorcorner.gif'>&lt;!--" id="ucEditForm_ucError_Validationsummary3" style="color:Red;background-color:#FFA525;display:none;">
 
		</div><!---->
		</td>
		
	</tr>
</table>
<script language="javascript">
/*
TestContent()
 
window.onbeforeunload=function(){
	tblError.style.display="none"
}
 
window.onload=function(){
	TestContent()
}
 
function TestContent(){
	if(tdCol2.innerText.length>0){
		trError.bgColor="#FFCC66"
		tblError.style.display="block"
	} else {
		trError.bgColor="#FFFFFF"
		tblError.style.display="none"
	}
}
*/
</script>
<span display="None" id="ucEditForm_cvGeneral" evaluationfunction="CustomValidatorEvaluateIsValid" style="color:Red;display:none;"></span></td>
	</tr>
 
	<tr>
		<td class="header" colspan="2">Edit Form
		</td>
	</tr>
	<tr>
		<td colspan="2"><IMG height="10" src="../../images/shim.gif"></td>
	</tr>
	<tr>
		<TD class="label" width="200"><span id="ucEditForm_Label1">Choose Control Type:</span></TD>
 
		<TD class="label" width="400"><select name="ucEditForm:ddlControlType" onchange="javascript:setTimeout('__doPostBack(\'ucEditForm$ddlControlType\',\'\')', 0)" language="javascript" id="ucEditForm_ddlControlType" class="Companylist" style="width:300px;">
			<option value=""></option>
			<option value="TextBox">TextBox</option>
			<option value="Other Info">Other Info</option>
			<option value="Max Length">Max Length</option>
			<option value="Fixed Length">Fixed Length</option>
			<option value="Numeric">Numeric</option>
 
			<option value="Evaluation Options">Evaluation Options</option>
			<option value="Email">Email</option>
			<option selected="selected" value="DropDown">DropDown</option>
			<option value="Radio">Radio</option>
			<option value="Check">Check</option>
			<option value="CreditCard">CreditCard</option>
 
			<option value="Allocation">Allocation</option>
			<option value="SingleAllocation">SingleAllocation</option>
			<option value="TextArea">TextArea</option>
			<option value="SectionHeader">SectionHeader</option>
			<option value="SubSectionHeader">SubSectionHeader</option>
			<option value="Link">Link</option>
 
		</select>
        </TD>
	</tr>
	<tr id="ucEditForm_dropoptions">
		<td class="label" valign="top" width="200"><span id="ucEditForm_Label6">Enter Control Options:</span></td>
		<td width="400">
			<TABLE id="Table2" cellSpacing="1" cellPadding="1" width="400" border="0">
				<TR>
 
					<TD class="label" vAlign="top" width="250"><input name="ucEditForm:txtDropOption" type="text" id="ucEditForm_txtDropOption" />&nbsp;<A onclick="popListBox(); return false" href="#"><IMG src="../../images/plus.gif" border="0"></A>
						&nbsp;<A onclick="DeleteListItem();" href="#"><IMG src="../../images/minus.gif" border="0"></A></TD>
					<TD class="label" width="150"><select size="4" name="ucEditForm:lstDropOption" multiple="multiple" id="ucEditForm_lstDropOption" class="Companylist" style="width:170px;">
 
		</select></TD>
				</TR>
			</TABLE>
		</td>
	</tr>
 
	<tr id="ucEditForm_rptlabel">
		<TD class="label" width="200"><span id="ucEditForm_Label5">Enter Control Name:</span></TD>
		<TD class="label" width="400"><input name="ucEditForm:txtCtlName" type="text" maxlength="50" id="ucEditForm_txtCtlName" style="width:300px;" /></TD>
	</tr>
	<tr id="ucEditForm_frmlabel">
		<TD class="label" width="200"><span id="ucEditForm_Label2">Enter Label Text:</span></TD>
		<TD class="label" width="400"><input name="ucEditForm:txtControlLabel" type="text" maxlength="500" id="ucEditForm_txtControlLabel" style="width:300px;" /></TD>
	</tr>
 
	<tr id="ucEditForm_valrequired">
		<TD class="label" width="200"><span id="ucEditForm_Label3">Is it Required:</span></TD>
		<TD class="label" width="400"><input id="ucEditForm_rbYes" type="radio" name="ucEditForm:grpYesNo" value="rbYes" /><label for="ucEditForm_rbYes">Yes</label><input id="ucEditForm_rbNo" type="radio" name="ucEditForm:grpYesNo" value="rbNo" /><label for="ucEditForm_rbNo">No</label></TD>
	</tr>
	<tr id="ucEditForm_reqErrorText">
		<TD class="label" width="200"><span id="ucEditForm_lblRequiredText">Required Error Text:</span></TD>
		<TD class="label" width="400"><input name="ucEditForm:txtReqError" type="text" maxlength="500" id="ucEditForm_txtReqError" style="width:300px;" /></TD>
 
	</tr>
	<tr id="ucEditForm_help">
		<TD class="label" valign="top" width="200"><span id="ucEditForm_Label4">Help Text:</span></TD>
		<TD class="label" width="400"><textarea name="ucEditForm:txtHelpText" id="ucEditForm_txtHelpText" style="width:300px;"></textarea></TD>
	</tr>
	<tr>
		<td style="HEIGHT: 5px" colspan="2"><IMG height="5" src="../../images/shim.gif">&nbsp;<input name="ucEditForm:lblList" type="hidden" id="ucEditForm_lblList" /></td>
	</tr>
 
	<tr>
		<TD align="center" colspan="2"><input type="submit" name="ucEditForm:btnSave" value="Save" onclick="return ValErrorText();WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ucEditForm:btnSave&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))" language="javascript" id="ucEditForm_btnSave" />&nbsp;&nbsp;
			</TD>
	</tr>
	<tr>
		<td colspan="2"><IMG height="15" src="../../images/shim.gif">&nbsp;</td>
	</tr>
	<tr>
		<td class="header" colspan="2">View Results
		</td>
 
	</tr>
	<tr>
		<td colspan="2"><IMG height="10" src="../../images/shim.gif"></td>
	</tr>
</table>
 
<table id="tblFormResult" cellSpacing="1" cellPadding="1" width="600" border="0">
	<tr>
		<td id="ucEditForm_tdContainer"><table cellspacing="2" cellpadding="2" width="620" border="0">
	<tr>
 
		<td class="label">Test</td><td><select name="ucEditForm:ddl32183" id="ucEditForm_ddl32183" class="Companylist">
 
		</select></td><td><input type="submit" name="ucEditForm:32183" value="Delete" id="ucEditForm_32183" class="btntrip" /></td><td><input type="submit" name="ucEditForm:E32183" value="Edit" id="ucEditForm_E32183" class="btntrip" /></td>
	</tr>
</table></td>
 
	</tr>
</table>
</td>
				</TR>
				<TR>
 
					<td colSpan="2"><IMG height="200" src="../../images/shim.gif"></td>
				</TR>
				<TR>
					<TD colSpan="2">
<br>
<br>
<TABLE id="Table6" cellSpacing="0" cellPadding="0" width="760" border="0">
	<tr>
		<td id="ucFooter_trVer" align="right"><p class="FooterText">Ver 3.6.2
			</p>
		</td>
 
	</tr>
</TABLE>
<hr class="SeperatorA">
</TD>
				</TR>
			</TABLE>
		
<script type="text/javascript">
<!--
var skm_subMenuIDs =  new Array('ucMenu_Menu1-menuItem007-subMenu', 'ucMenu_Menu1');
var Page_ValidationSummaries =  new Array(document.getElementById("ucEditForm_ucError_Validationsummary1"), document.getElementById("ucEditForm_ucError_Validationsummary2"), document.getElementById("ucEditForm_ucError_Validationsummary3"));
var Page_Validators =  new Array(document.getElementById("ucEditForm_cvGeneral"));
// -->
</script>
 
<script language="javascript">skm_registerMenu('ucMenu_Menu1',new skm_styleInfo('','','','','','','','','',''),new skm_styleInfo('','','','','','','','','',''),2,false);</script>
<script type="text/javascript">
<!--
var Page_ValidationActive = false;
if (typeof(ValidatorOnLoad) == "function") {
    ValidatorOnLoad();
}
 
function ValidatorOnSubmit() {
    if (Page_ValidationActive) {
        return ValidatorCommonOnSubmit();
    }
    else {
        return true;
    }
}
// -->
 
</script>
        </form>
	</body>
</HTML>

Open in new window

0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 24364858
This line does not make sense

else lBox.options[iIndex]=new Option(tValue,iIndex+1);
                        lBox.options[iIndex].value=tValue <<<<<<<<<<<<<

you want

  else {
    lBox.options[iIndex]=new Option(tValue,iIndex+1);
    lBox.options[iIndex].selected=true;
  }
 



0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 24364888
And I would do



function popListBox() {  
  var tBox = document.getElementById('ucEditForm_txtDropOption');
  var tValue = tBox.value
  if (tValue == "") {  
    alert("You need to enter a value");
    document.getElementById('ucEditForm_txtDropOption').focus();
    return;
  }
  var lBox = document.getElementById('ucEditForm_lstDropOption');
  var iIndex = lBox.options.length;
  lBox.options[iIndex]=new Option(tValue,iIndex+1);
  lBox.options[iIndex].selected=true;
}

Open in new window

0
 

Author Comment

by:mattegol
ID: 24365199
Ok now i can add options but what happens is if i add lets say Apple, Banana, Orange the result in the dropdown is 1, 2, 3.

0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 24365521
change

new Option(tValue,iIndex+1)

to

new Option(iIndex+1,tValue)

or

new Option(tValue,tValue)

0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 24365525
PS: I am offline until tomorrow (CET).
0
 

Author Comment

by:mattegol
ID: 24365843
Ok, now it works to add the options, but when I edit/add options, only the added options remains the old ones disapppears..

Thanks for your help, I appreciate it.
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 24371748
Are you sure?

In what browser?

This works in FF3 and IE7 on XP

<script>
function popListBox() {  
  var tBox = document.getElementById('ucEditForm_txtDropOption');
  var tValue = tBox.value
  if (tValue == "") {  
    alert("You need to enter a value");
    document.getElementById('ucEditForm_txtDropOption').focus();
    return;
  }
 
  var lBox = document.getElementById('ucEditForm_lstDropOption');
  var iIndex = lBox.options.length;
  lBox.options[iIndex]=new Option(tValue,iIndex+1);
  lBox.options[iIndex].selected=true;
}
</script>
<form>
<select id="ucEditForm_lstDropOption">	
<option>Please select</option>
</select>
<input type="text" name="ucEditForm_txtDropOption" value="">
<input type="button" onClick="popListBox()" value="add">
</form>

Open in new window

0
 

Author Comment

by:mattegol
ID: 24372024
Hi again,

Browsers FF3 and IE6.

The closest for it to work is when I use
lBox.options[iIndex]=new Option(tValue,tValue);

When I try that the alert message doesn't work it saves it directly and a empty dropdownlist appears. I have two buttons besides each control delete and edit, when I try to edit and adding more options only the new option is saved the others disappears. What I can do is to highlight all the options manually then it saves them all.

The alert doesn't work in either case.





<tr id="dropoptions" runat="server">
		<td class="label" vAlign="top" width="200"><asp:label id="Label6" runat="server">Enter Control Options:</asp:label></td>
		<td width="400">
			<TABLE id="Table2" cellSpacing="1" cellPadding="1" width="400" border="0">
				<TR>
					<TD class="label" vAlign="top" width="250"><asp:textbox id="txtDropOption" runat="server"></asp:textbox>&nbsp;<A onclick="popListBox(); return false" href="#"><IMG src="../../images/plus.gif" border="0"></A>
						&nbsp;<A onclick="DeleteListItem();" href="#"><IMG src="../../images/minus.gif" border="0"></A></TD>
					<TD class="label" width="150"><asp:listbox id="lstDropOption" runat="server" Width="170" CssClass="Companylist" SelectionMode="Multiple"></asp:listbox></TD>
				</TR>
			</TABLE>
		</td>
	</tr>
 
 
<TR>
		<TD align="center" colSpan="2"><asp:button id="btnSave" runat="server" Text="Save"></asp:button>&nbsp;&nbsp;
			<asp:literal id="ltlSaveFlag" runat="server" Visible="False"></asp:literal><asp:literal id="ltlControlId" runat="server" Visible="False"></asp:literal></TD>
	</TR>

Open in new window

0
 

Author Comment

by:mattegol
ID: 24372041
In IE the editing works...
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 24372100
I am sorry, I do not understand your comment at all. Did you try the code I gave you just standalone in the browser so you could see it add the options?

Can you post the HTML again and explain exactly what does not do what in what browser when.


1) load page
2) click button x
3) do this
4) do that...
0
 

Author Comment

by:mattegol
ID: 24372162
I tried the code you gave me standalone, It adds the options in IE but says tBox is null in FF

The alert works in IE here
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="TEST2009.aspx.vb" Inherits="TEST2009" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
    <script>
function popListBox() {  
  var tBox = document.getElementById('ucEditForm_txtDropOption');
  var tValue = tBox.value
  if (tValue == "") {  
    alert("You need to enter a value");
    document.getElementById('ucEditForm_txtDropOption').focus();
    return;
  }
 
  var lBox = document.getElementById('ucEditForm_lstDropOption');
  var iIndex = lBox.options.length;
  lBox.options[iIndex]=new Option(tValue,iIndex+1);
  lBox.options[iIndex].selected=true;
}
</script>
 
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <select id="ucEditForm_lstDropOption">	
<option>Please select</option>
</select>
<input type="text" name="ucEditForm_txtDropOption" value="">
<input type="button" onClick="popListBox()" value="add">
 
    </div>
    </form>
</body>
</html>

Open in new window

0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 24372400
Oh, sorry. I just did what I told you not to do :(((

ID not NAME
<input type="text" ID="ucEditForm_txtDropOption" value="">

0
 

Author Comment

by:mattegol
ID: 24372609
The standalone works like a charm, but not mine....

This is code behind for the save button with select case dropdown:
 Private Sub btnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click
 
        '****************
        'saves or updates structure of form to database
        'based on value in ltlFlagSave
        'first the basic type of control is saved then we check if there are extra things like if it is a dropdown then we need to save the dropdown options etc.
        '****************
 
        Dim strControlType, strControlName, strLabelText, strHelpText, strReqErrorText, strValidateError As String
        Dim iRequired, iSummary, iMin, iMax As Integer
        Dim iEventid As Integer
        Dim iIdentity As Integer 'identity number returned for record just registered.
        txtEvalOptions.Text.Trim()
 
        'Creditcard variables
            Dim sCCType, sCCNr, sCCDate, sCCCvc, sNrError, sCvcError As String
 
            'Link variables
            Dim sTextLabel, sLinkText, sLink As String
 
        Dim blnCVC As Boolean
        Try
            iEventid = Session("eventid")
            If ddlControlType.SelectedValue.Length > 0 Then
 
 
                strControlType = ddlControlType.SelectedValue
                strControlName = txtCtlName.Text.Replace(" ", "")
 
                    'when creating a link
                    If txtLinkText.Text.Length > 0 Then
                        strLabelText = "<a href=" & txtLink.Text & " target=_blank>" & txtLinkText.Text & "</a>"
                    Else
                        strLabelText = txtControlLabel.Text
                    End If
 
 
                    'check the eval options are 2 to 7
                    If Not IsNothing(txtEvalOptions) Then
                        If txtEvalOptions.Text.Length = 0 Then
                            txtEvalOptions.Text = 0
                        End If
 
                    End If
 
 
 
                    If txtTextArea.Text.Trim.Length > 2000 Then
                        trError.Visible = True
                        cvGeneral.ErrorMessage = "To much text entered in the text area"
                        cvGeneral.IsValid = False
                        'check the eval options are 2 to 7
                    ElseIf (strControlType.ToUpper = "EVALUATION OPTIONS" And (txtEvalOptions.Text < 2 Or txtEvalOptions.Text > 7)) Then
                        trError.Visible = True
                        cvGeneral.ErrorMessage = "You can only have 2 to 7 Evaluation options"
                        cvGeneral.IsValid = False
                        'check the left and right text are only 10 characters
                    ElseIf (txtEvalVal1Txt.Text.Length > 10 Or txtEvalVal2Txt.Text.Length > 10) Then
                        trError.Visible = True
                        cvGeneral.ErrorMessage = "The Right and Left text can not have more than 10 characters"
                        cvGeneral.IsValid = False
                        'check that if we are setting up an allocation then an amt has been entered
                    ElseIf (strControlType.ToUpper = "ALLOCATION" And txtAllocationAmt.Text = "") Then
                        trError.Visible = True
                        cvGeneral.ErrorMessage = "You need to enter an allocation amount"
                        cvGeneral.IsValid = False
                    ElseIf (strControlType.ToUpper = "SINGLEALLOCATION" And txtAllocationAmt.Text = "") Then
                        trError.Visible = True
                        cvGeneral.ErrorMessage = "You need to enter an allocation amount"
                        cvGeneral.IsValid = False
                    Else
 
                        'when creating a text area I 'borrow' the strLabelText variable
                        If txtLinkText.Text.Length = 0 Then
                            If txtTextArea.Text.Length > 0 Then
                                strLabelText = txtTextArea.Text
                            Else
                                strLabelText = txtControlLabel.Text
                            End If
                        End If
 
                        strHelpText = txtHelpText.Text
                        If rbYes.Checked Then
                            iRequired = 1
                            strReqErrorText = txtReqError.Text
                        Else
                            iRequired = 0
                            strReqErrorText = ""
                        End If
 
                        'we need to check if we are updating an existing control or adding a new one.
                        If ltlSaveFlag.Text = "Update" Then
                            iIdentity = ltlControlId.Text
                            UpdateControlStructure(ltlControlId.Text, strControlType, strControlName, strLabelText, iRequired, strHelpText, strReqErrorText, 0)
                            Select Case strControlType.ToUpper
                                Case "DROPDOWN"
 
                                    DeleteDropOptions(iIdentity, iEventid)
                                    'if a dropdown I collect the list of options split them up and save them in DB
                                    Dim MyCollection As NameValueCollection
                                    MyCollection = Request.Form
                                    Dim MySelectedItems As String = MyCollection.Item("ucEditForm:lstDropOption")
                                    If (MySelectedItems <> "") Then
                                        Dim MyArray As Array = MySelectedItems.Split(",")
                                        Dim arrOptions As New ArrayList
                                        Dim i As Integer
 
                                        For i = 0 To MyArray.Length - 1
                                            arrOptions.Add(MyArray.GetValue(i))
                                        Next
 
                                        SaveDropDownOptions(iEventid, iIdentity, arrOptions)
                                        lstDropOption.Items.Clear()
                                    End If
 
                                                           End Select
 
                        Else
                            iIdentity = SaveControlStructure(iEventid, strControlType, strControlName, strLabelText, iRequired, strHelpText, strReqErrorText, iSummary)
 
                            Select Case strControlType.ToUpper
                                Case "DROPDOWN"
                                    Dim MyCollection As NameValueCollection
                                    MyCollection = Request.Form
                                    Dim MySelectedItems As String = MyCollection.Item("ucEditForm:lstDropOption")
                                    If (MySelectedItems <> "") Then
                                        Dim MyArray As Array = MySelectedItems.Split(",")
                                        Dim arrOptions As New ArrayList
                                        Dim i As Integer
 
                                        For i = 0 To MyArray.Length - 1
                                            arrOptions.Add(MyArray.GetValue(i))
                                        Next
 
                                        SaveDropDownOptions(iEventid, iIdentity, arrOptions)
                                        lstDropOption.Items.Clear()
                                    End If
 
                                
                            End Select
 
                        End If
                        'dropoptions.Attributes.Add("style", "display:none;")
                        dropoptions.Visible = False
                        radiooptions.Visible = False
                        regExpError.Visible = False
                        regExpMinMax.Visible = False
 
                        ClearControls()
                        Response.Redirect("EditForm.aspx")
 
                    End If
                Else
                    'trError.Attributes.Add("style", "display:block;")
                    trError.Visible = True
                        cvGeneral.ErrorMessage = "You need to choose a control type."
                    cvGeneral.IsValid = False
 
                End If
 
            Catch excException As Exception
                If Not TypeOf excException.GetBaseException Is System.Threading.ThreadAbortException Then
 
                    trError.Visible = True
                    Me.cvGeneral.ErrorMessage = Errors.UserFriendlyMessage(excException, "EN")
                    Errors.EmailDiagnostics(excException, "RegisterforEvent Admin Edit Form")
 
                    Me.cvGeneral.IsValid = False
                End If
 
            End Try
 
        'BuildForm(iEventid, tdContainer, True
    End Sub

Open in new window

0
 

Author Comment

by:mattegol
ID: 24372620
And HTML from the user control
<TABLE id="tblEditForm" cellSpacing="1" cellPadding="1" width="600" border="0" runat="server">
	<tr id="trError" align="center" runat="server">
		<td colSpan="2"><uc1:ucerr id="ucError" runat="Server"></uc1:ucerr><asp:customvalidator id="cvGeneral" runat="server" Display="None"></asp:customvalidator></td>
	</tr>
	<tr>
		<td class="header" colSpan="2">Edit Form
		</td>
	</tr>
	<TR>
		<td colSpan="2"><IMG height="10" src="../../images/shim.gif"></td>
	</TR>
	<TR>
		<TD class="label" width="200"><asp:label id="Label1" runat="server">Choose Control Type:</asp:label></TD>
		<TD class="label" width="400"><asp:dropdownlist id="ddlControlType" runat="server" Width="300" AutoPostBack="True" CssClass="Companylist"></asp:dropdownlist>
        </TD>
	</TR>
	<tr id="radiooptions" runat="server">
		<td class="label" vAlign="top" width="200"><asp:label id="Label7" runat="server">Enter Control Options:</asp:label></td>
		<td width="400"><asp:textbox id="txtradvalue1" runat="server"></asp:textbox>&nbsp;&nbsp;
			<asp:textbox id="txtradvalue2" runat="server"></asp:textbox></td>
	</tr>
	<tr id="dropoptions" runat="server">
		<td class="label" vAlign="top" width="200"><asp:label id="Label6" runat="server">Enter Control Options:</asp:label></td>
		<td width="400">
			<TABLE id="Table2" cellSpacing="1" cellPadding="1" width="400" border="0">
				<TR>
				    <TD class="label" vAlign="top" width="250"><asp:textbox id="txtDropOption" runat="server"></asp:textbox>&nbsp;<A onclick="popListBox();" href="#"><IMG src="../../images/plus.gif" border="0"></A>
						&nbsp;<A onclick="DeleteListItem();" href="#"><IMG src="../../images/minus.gif" border="0"></A></TD>
					<TD class="label" width="150"><asp:listbox id="lstDropOption" runat="server" Width="170" CssClass="Companylist" SelectionMode="Multiple"></asp:listbox></TD>
				</TR>
				
			</TABLE>
		</td>
	</tr>
	<tr id="allocation" runat="server">
		<td>Enter Allocation Amt:</td>
		<td><asp:textbox id="txtAllocationAmt" runat="server" Width="50px"></asp:textbox></td>
	</tr>
	<TR id="regExpMinMax" runat="server">
		<TD class="label" vAlign="top" width="200">Enter Min/Max Value:</TD>
		<TD width="400"><asp:textbox id="txtMin" runat="server" Width="50px"></asp:textbox>&nbsp;
			<asp:textbox id="txtMax" runat="server" Width="50px"></asp:textbox></TD> 
	</TR>
	<TR id="regExpError" runat="server">
		<TD class="label" vAlign="top" width="200">Enter Error Text.</TD>
		<TD width="400"><asp:textbox id="txtErrorText" runat="server" Width="300px" MaxLength="500"></asp:textbox></TD>
	</TR>
	<TR id="rptlabel" runat="server">
		<TD class="label" width="200"><asp:label id="Label5" runat="server">Enter Control Name:</asp:label></TD>
		<TD class="label" width="400"><asp:textbox id="txtCtlName" runat="server" Width="300" MaxLength="50"></asp:textbox></TD>
	</TR>
	<TR id="frmlabel" runat="server">
		<TD class="label" width="200"><asp:label id="Label2" runat="server">Enter Label Text:</asp:label></TD>
		<TD class="label" width="400"><asp:textbox id="txtControlLabel" runat="server" Width="300" MaxLength="500"></asp:textbox></TD>
	</TR>
	<!--Evaluation controls-->
	<TR id="frmEvalVal1Txt" runat="server">
		<TD class="label" width="200"><asp:label id="Label8" runat="server">Enter Left Text:</asp:label></TD>
		<TD class="label" width="400"><asp:textbox id="txtEvalVal1Txt" runat="server" Width="300" MaxLength="500"></asp:textbox></TD>
	</TR>
	<TR id="frmEvalVal2Txt" runat="server">
		<TD class="label" width="200"><asp:label id="Label9" runat="server">Enter Right Text:</asp:label></TD>
		<TD class="label" width="400"><asp:textbox id="txtEvalVal2Txt" runat="server" Width="300" MaxLength="500"></asp:textbox></TD>
	</TR>
	<TR id="frmEvalQuestion" runat="server">
		<TD class="label" width="200"><asp:label id="Label10" runat="server">Enter Question:</asp:label></TD>
		<TD class="label" width="400"><asp:textbox id="txtEvalQuestion" runat="server" Width="300" MaxLength="500"></asp:textbox></TD>
	</TR>
	<TR id="frmEvalNrOptions" runat="server">
		<TD class="label" vAlign="top" width="200">How many options?:(2-7):</TD>
		<TD width="400"><asp:textbox id="txtEvalOptions" runat="server" Width="50px"></asp:textbox></TD>
	</TR>
	<!--Credit Card Fields-->
	<tr id="cctypelabel" runat="server">
		<TD class="label" vAlign="top" width="200">Enter Type Label:</TD>
		<TD width="400"><asp:textbox id="txtCCtypeLabel" runat="server" Width="300px" MaxLength="500"></asp:textbox></TD>
	</tr>
	<tr id="ccNrLabel" runat="server">
		<TD class="label" vAlign="top" width="200">Enter Nr Label:</TD>
		<TD width="400"><asp:textbox id="txtCCnrLabel" runat="server" Width="300px" MaxLength="100"></asp:textbox></TD>
	</tr>
	<tr id="ccNrError" runat="server">
		<TD class="label" vAlign="top" width="200">Enter Nr Error:</TD>
		<TD width="400"><asp:textbox id="txtCCNrError" runat="server" Width="300px" MaxLength="100"></asp:textbox></TD>
	</tr>
	<tr id="ccDateLabel" runat="server">
		<TD class="label" vAlign="top" width="200">Enter Date Label:</TD>
		<TD width="400"><asp:textbox id="txtCCDateLabel" runat="server" Width="300px" MaxLength="100"></asp:textbox></TD>
	</tr>
	<tr id="chkShowCvC" runat="server">
		<TD class="label" vAlign="top" width="200">Show CVC?:</TD>
		<TD class="label" width="400"><asp:checkbox id="chkCVC" runat="server"></asp:checkbox></TD>
	</tr>
	<tr id="ccCvcLabel" runat="server">
		<TD class="label" vAlign="top" width="200">Enter CVC Label:</TD>
		<TD width="400"><asp:textbox id="txtCVCLabel" runat="server" Width="300px" MaxLength="100"></asp:textbox></TD>
	</tr>
	<tr id="ccCVCError" runat="server">
		<TD class="label" vAlign="top" width="200">Enter CVC Error:</TD>
		<TD width="400"><asp:textbox id="txtCCCvcError" runat="server" Width="300px" MaxLength="500"></asp:textbox></TD>
	</tr>
	<!--End of CreditCard Fields-->
	
	<!--Link Fields-->
	<tr id="linkTextLabel" runat="server">
		<TD class="label" vAlign="top" width="200">Link text:</TD>
		<TD width="400"><asp:textbox id="txtLinkText" runat="server" Width="300px" MaxLength="500"></asp:textbox></TD>
	</tr>
	<tr id="linkLabel" runat="server">
		<TD class="label" vAlign="top" width="200">Link:</TD>
		<TD width="400">
		    <asp:textbox id="txtLink" runat="server" Width="300px" MaxLength="500"></asp:textbox>
		</TD>
	</tr>
 
	<!--End of Link Fields-->
	
	<TR id="valrequired" runat="server">
		<TD class="label" width="200"><asp:label id="Label3" runat="server">Is it Required:</asp:label></TD>
		<TD class="label" width="400"><asp:radiobutton id="rbYes" runat="server" GroupName="grpYesNo" Text="Yes"></asp:radiobutton><asp:radiobutton id="rbNo" runat="server" GroupName="grpYesNo" Text="No"></asp:radiobutton></TD>
	</TR>
	<TR id="reqErrorText" runat="server">
		<TD class="label" width="200"><asp:label id="lblRequiredText" runat="server">Required Error Text:</asp:label></TD>
		<TD class="label" width="400"><asp:textbox id="txtReqError" runat="server" Width="300" MaxLength="500"></asp:textbox></TD>
	</TR>
	<TR id="help" runat="server">
		<TD class="label" vAlign="top" width="200"><asp:label id="Label4" runat="server">Help Text:</asp:label></TD>
		<TD class="label" width="400"><asp:textbox id="txtHelpText" runat="server" Width="300" MaxLength="100" TextMode="MultiLine"></asp:textbox></TD>
	</TR>
	<tr id="txtarealabel" runat="server">
		<td class="label" colSpan="2"><asp:label id="lblTxtArea" Runat="server">Text:</asp:label></td>
	</tr>
	<tr id="TextArea" runat="server">
		<td class="label" colSpan="2"><asp:textbox id="txtTextArea" runat="server" Width="500" MaxLength="2000" TextMode="MultiLine"
				height="85"></asp:textbox></td>
	</tr>
	<TR>
		<td style="HEIGHT: 5px" colSpan="2"><IMG height="5" src="../../images/shim.gif">&nbsp;<INPUT id="lblList" type="hidden" runat="server"></td>
	</TR>
	<TR>
		<TD align="center" colSpan="2"><asp:button id="btnSave" runat="server" Text="Save"></asp:button>&nbsp;&nbsp;
			<asp:literal id="ltlSaveFlag" runat="server" Visible="False"></asp:literal><asp:literal id="ltlControlId" runat="server" Visible="False"></asp:literal></TD>
	</TR>
	<TR>
		<td colSpan="2"><IMG height="15" src="../../images/shim.gif">&nbsp;</td>
	</TR>
	<tr>
		<td class="header" colSpan="2">View Results
		</td>
	</tr>
	<TR>
		<td colSpan="2"><IMG height="10" src="../../images/shim.gif"></td>
	</TR>
</TABLE>
<table id="tblFormResult" cellSpacing="1" cellPadding="1" width="600" border="0">
	<tr>
		<td id="tdContainer" runat="server"></td>
	</tr>
</table>

Open in new window

0
 

Author Comment

by:mattegol
ID: 24372629
aspx page
<script language="javascript">
		
                function popListBox() {  
                  var tBox = document.getElementById('ucEditForm_txtDropOption');
                  var tValue = tBox.value
                  if (tValue == "") {  
                    alert("You need to enter a value");
                    document.getElementById('ucEditForm_txtDropOption').focus();
                    return;
                  }
                 
                  var lBox = document.getElementById('ucEditForm_lstDropOption');
                  var iIndex = lBox.options.length;
                  lBox.options[iIndex]=new Option(tValue,tValue);
                  lBox.options[iIndex].selected=true;
                }
 
 
				//var lBox = document.getElementById('ucEditForm_lstDropOption');
				//var tBox = document.getElementById('ucEditForm_txtDropOption');
				//var tValue = tBox.value
				//var iIndex = lBox.options.length;
				//if (tValue == "") {
				//alert("You need to enter a value");
				//}
				//else
				//lBox.options[iIndex]=new Option(tValue,iIndex+1);
				//lBox.options[iIndex].selected = true;
				//lBox.options[iIndex].value=tValue
				//}
				
function popAllocationListBox(){
 
				var lBox=document.getElementById('ucEditForm_lstAllocation');
				var tAllBox = document.getElementById('ucEditForm_txtAllocationItem');
				var tAmtBox = document.getElementById('ucEditForm_txtAllocationAmt');
				var tAllValue = tAllBox.value
				var tAmtValue = tAmtBox.value
				
				
				var iIndex = lBox.options.length;
				if ((tAllValue == "")||(tAmtValue == "")) {
				alert("You need to enter an allocation Item and Amount");
				return false
				}
				else
				var lstValue = tAllBox.value + " " + "(" + tAmtBox.value + ")"
				lBox.options[iIndex]=new Option(lstValue,iIndex+1);
				lBox.options[iIndex].value=lstValue
				}
				
	function SelectAllItems(sList)
				{
		var el = document.getElementById(sList)
		if(el)
		{
		    var intCount=el.options.length;
		    for(i = 0; i < intCount;i++)
		    {
			    el.options(i).selected=true;
		    }
		    }
		}
		
	function DeleteListItem()
		{
				var lBox=document.getElementById('ucEditForm_lstDropOption');
				var iSelIndex =lBox.selectedIndex
				if(iSelIndex ==-1){
				alert("You need to selected an item to delete");
				return false
				}
				else
				lBox.remove(iSelIndex);
		}
		
function ValErrorText()
				{
				var op = document.getElementById("ucEditForm_rbYes")
				var tx = document.getElementById("ucEditForm_txtReqError")
					if(op){
					    if(op.checked==true){
 
						    if (tx.value.length < 1)
							{
							    alert("You must add a validation error message.")
							    return false;
							}
							else
							{
							
							return true;
							}
						}
					}	
				}
		</script>
	</HEAD>
	<body>
		<form id="Form1" method="post" onsubmit="SelectAllItems('ucEditForm:lstDropOption');" runat="server">
			<TABLE id="Table1" cellSpacing="1" cellPadding="1" width="760" border="0">
				<TR>
					<TD colSpan="2"><uc1:ucheader id="ucHeader" runat="server"></uc1:ucheader></TD>
				</TR>
				<TR>
					<td colSpan="2"><IMG height="5" src="../../images/shim.gif"></td>
				</TR>
				<TR>
					<TD vAlign="top" width="160"><uc1:ucmenu id="ucMenu" runat="server"></uc1:ucmenu></TD>
					<td width="500"><uc1:uceditform id="ucEditForm" runat="server"></uc1:uceditform></td>
				</TR>
				<TR>
					<td colSpan="2"><IMG height="200" src="../../images/shim.gif"></td>
				</TR>
				<TR>
					<TD colSpan="2"><uc1:ucfooter id="ucFooter" runat="server"></uc1:ucfooter></TD>
				</TR>
			</TABLE>
		</form>
	</body>
</HTML>

Open in new window

0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 24372716
I cannot test aspX

Show me the VIEW-SOURCE of the page. PLEASE
0
 

Author Comment

by:mattegol
ID: 24372722
This is how it looks in edit mode before submit
<HTML>
	<HEAD>
		<title>Edit Existing Event</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<LINK href="../../Styles.css" type="text/css" rel="stylesheet">
 
		<script language="javascript">
		
                function popListBox() {  
                 /*
                  var tBox = document.getElementById('ucEditForm_txtDropOption');
                  var tValue = tBox.value
                  if (tValue == "") {  
                    alert("You need to enter a value");
                    document.getElementById('ucEditForm_txtDropOption').focus();
                    return;
                  }
                 
                  var lBox = document.getElementById('ucEditForm_lstDropOption');
                  var iIndex = lBox.options.length;
                  lBox.options[iIndex]=new Option(tValue,tValue);
                  lBox.options[iIndex].selected=true;
                }
                */
 
				var lBox = document.getElementById('ucEditForm_lstDropOption');
				var tBox = document.getElementById('ucEditForm_txtDropOption');
				var tValue = tBox.value
				var iIndex = lBox.options.length;
				if (tValue == "") {
				alert("You need to enter a value");
				}
				else
				lBox.options[iIndex]=new Option(tValue,iIndex+1);
				lBox.options[iIndex].selected = true;
				lBox.options[iIndex].value=tValue
				}
				
function popAllocationListBox(){
 
				var lBox=document.getElementById('ucEditForm_lstAllocation');
				var tAllBox = document.getElementById('ucEditForm_txtAllocationItem');
				var tAmtBox = document.getElementById('ucEditForm_txtAllocationAmt');
				var tAllValue = tAllBox.value
				var tAmtValue = tAmtBox.value
				
				
				var iIndex = lBox.options.length;
				if ((tAllValue == "")||(tAmtValue == "")) {
				alert("You need to enter an allocation Item and Amount");
				return false
				}
				else
				var lstValue = tAllBox.value + " " + "(" + tAmtBox.value + ")"
				lBox.options[iIndex]=new Option(lstValue,iIndex+1);
				lBox.options[iIndex].value=lstValue
				}
				
	function SelectAllItems(sList)
				{
		var el = document.getElementById(sList)
		if(el)
		{
		    var intCount=el.options.length;
		    for(i = 0; i < intCount;i++)
		    {
			    el.options(i).selected=true;
		    }
		    }
		}
		
	function DeleteListItem()
		{
				var lBox=document.getElementById('ucEditForm_lstDropOption');
				var iSelIndex =lBox.selectedIndex
				if(iSelIndex ==-1){
				alert("You need to selected an item to delete");
				return false
				}
				else
				lBox.remove(iSelIndex);
		}
		
function ValErrorText()
				{
				var op = document.getElementById("ucEditForm_rbYes")
				var tx = document.getElementById("ucEditForm_txtReqError")
					if(op){
					    if(op.checked==true){
 
						    if (tx.value.length < 1)
							{
							    alert("You must add a validation error message.")
							    return false;
							}
							else
							{
							
							return true;
							}
						}
					}	
				}
		</script>
	</HEAD>
	<body>
		<form name="Form1" method="post" action="EditForm.aspx?CID=32221" id="Form1" onsubmit="SelectAllItems('ucEditForm:lstDropOption');">
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value=""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QFGHVjRWRpdEZvcm06bHN0RHJvcE9wdGlvbgUQdWNFZGl0Rm9ybTpyYlllcwUQdWNFZGl0Rm9ybTpyYlllcwUPdWNFZGl0Rm9ybTpyYk5v/1xlpgON8jpGnl4tH3nPBgx7uS0=" />
 
<script type="text/javascript">
<!--
var theForm = document.forms['Form1'];
if (!theForm) {
    theForm = document.Form1;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
// -->
</script>
 
 
<script src="/Copy of RegisterForEvent on 10.47.0.15/WebResource.axd?d=TDChIrj_h4rKxVsCDotzxQ2&amp;t=633748835251662040" type="text/javascript"></script>
 
 
<script language='javascript'>
<!--
//Region Global Variables
var skm_SelectedMenuStyleInfos=new Object();
var skm_UnselectedMenuStyleInfos=new Object();
var skm_MenuFadeDelays=new Object();
var skm_clockValue=0;
var skm_ticker;
var skm_highlightTopMenus=new Object();
var skm_images=new Array();
var skm_OpenMenuItems = new Array();
//EndRegion
//Region Methods to hook up a menu to the global variables
function skm_registerMenu(menuID, selectedStyleInfo, unselectedStyleInfo, menuFadeDelay, highlightTopMenu){
	skm_SelectedMenuStyleInfos[menuID]=selectedStyleInfo;
	skm_UnselectedMenuStyleInfos[menuID]=unselectedStyleInfo;
	skm_MenuFadeDelays[menuID]=menuFadeDelay;
	skm_highlightTopMenus[menuID]=highlightTopMenu;
}
//Region The methods and contructor of the skm_styleInfo object.
function skm_applyStyleInfoToElement(element){
	element.style.backgroundColor=this.backgroundColor;
	element.style.borderColor=this.borderColor;
	element.style.borderStyle=this.borderStyle;
	element.style.borderWidth=this.borderWidth;
	element.style.color=this.color;
	if (this.fontFamily!='')
		element.style.fontFamily=this.fontFamily;
	element.style.fontSize=this.fontSize;
	element.style.fontStyle=this.fontStyle;
	element.style.fontWeight=this.fontWeight;
	if (this.className!='')
		element.style.className=this.className;
}
function skm_styleInfo(backgroundColor,borderColor,borderStyle,borderWidth,color,fontFamily,fontSize,fontStyle,fontWeight,className){
	this.backgroundColor=backgroundColor;
	this.borderColor=borderColor;
	this.borderStyle=borderStyle;
	this.borderWidth=borderWidth;
	this.color=color;
	this.fontFamily=fontFamily;
	this.fontSize=fontSize;
	this.fontStyle=fontStyle;
	this.fontWeight=fontWeight;
	this.className=className;
	this.applyToElement=skm_applyStyleInfoToElement;
}
//Region MouseEventHandlers
function skm_mousedOverMenu(menuID,elem,parent,displayedVertically,imageSource){
	skm_stopTick();
	skm_closeSubMenus(elem);
	var childID=elem.id+"-subMenu";  // Display child menu if needed
	if (document.getElementById(childID)!=null){  // make the child menu visible and specify that its position is specified in absolute coordinates
		document.getElementById(childID).style.display='block';
		document.getElementById(childID).style.position='absolute';
		skm_OpenMenuItems = skm_OpenMenuItems.concat(childID);
		if (displayedVertically){ // Set the child menu's left and top attributes according to the menu's offsets
			document.getElementById(childID).style.left=skm_getAscendingLefts(parent)+parent.offsetWidth;
			document.getElementById(childID).style.top=skm_getAscendingTops(elem);
			var visibleWidth=parseInt(window.outerWidth?window.outerWidth-9:document.body.clientWidth,10);
			if ((parseInt(document.getElementById(childID).offsetLeft,10)+parseInt(document.getElementById(childID).offsetWidth,10))>visibleWidth) {
				document.getElementById(childID).style.left=visibleWidth-parseInt(document.getElementById(childID).offsetWidth,10);
			}
		}else{  // Set the child menu's left and top attributes according to the menu's offsets
			document.getElementById(childID).style.left=skm_getAscendingLefts(elem);
			document.getElementById(childID).style.top=skm_getAscendingTops(parent)+parent.offsetHeight;
			if (document.getElementById(childID).offsetWidth<elem.offsetWidth)
				document.getElementById(childID).style.width=elem.offsetWidth;
		}
	}
	if (skm_SelectedMenuStyleInfos[menuID] != null) skm_SelectedMenuStyleInfos[menuID].applyToElement(elem);
	if (skm_highlightTopMenus[menuID]){
		var eId=elem.id+'';
		while (eId.indexOf('-subMenu')>=0){
			eId=eId.substring(0, eId.lastIndexOf('-subMenu'));
			skm_SelectedMenuStyleInfos[menuID].applyToElement(document.getElementById(eId));
		}
	}	
	if (imageSource!=''){
		setimage(elem,imageSource)
	}
}
function skm_mousedOverClickToOpen(menuID,elem,parent,imageSource){
	skm_stopTick();
	if (skm_SelectedMenuStyleInfos[menuID] != null) skm_SelectedMenuStyleInfos[menuID].applyToElement(elem);
	if (skm_highlightTopMenus[menuID]){
		var eId=elem.id+'';
		while (eId.indexOf('-subMenu')>=0){
			eId=eId.substring(0, eId.lastIndexOf('-subMenu'));
			skm_SelectedMenuStyleInfos[menuID].applyToElement(document.getElementById(eId));
		}
	}	
	if (imageSource!=''){
		setimage(elem,imageSource)
	}
}
function skm_mousedOverSpacer(menuID,elem,parent){
	skm_stopTick();
}
function skm_mousedOutMenu(menuID,elem,imageSource){
	skm_doTick(menuID);
	if (skm_UnselectedMenuStyleInfos[menuID] != null) skm_UnselectedMenuStyleInfos[menuID].applyToElement(elem);
	if (skm_highlightTopMenus[menuID]){
		var eId=elem.id+'';
		while (eId.indexOf('-subMenu')>=0){
			eId=eId.substring(0, eId.lastIndexOf('-subMenu'));
			skm_UnselectedMenuStyleInfos[menuID].applyToElement(document.getElementById(eId));
		}
	}
	if (imageSource!=''){
		setimage(elem,imageSource)
	}
}
function skm_mousedOutSpacer(menuID, elem){
	skm_doTick(menuID);
}
//Region Utility Functions
function skm_closeSubMenus(parent){
	if (skm_OpenMenuItems == "undefined") return;
	for (var i=skm_OpenMenuItems.length-1; i>-1;i--) {
		if (parent.id.indexOf(skm_OpenMenuItems[i]) != 0) {
			document.getElementById(skm_OpenMenuItems[i]).style.display = 'none';
			skm_shimSetVisibility(false, skm_OpenMenuItems[i]);			
			skm_OpenMenuItems = new Array().concat(skm_OpenMenuItems.slice(0,i), skm_OpenMenuItems.slice(i+1));
  		} 
	}
}
function skm_shimSetVisibility(makevisible, tableid){
	var tblRef=document.getElementById(tableid);
	var IfrRef=document.getElementById('shim'+tableid);
	if (tblRef!=null && IfrRef!=null){
		if(makevisible){
			IfrRef.style.width=tblRef.offsetWidth;
			IfrRef.style.height=tblRef.offsetHeight;
			IfrRef.style.top=tblRef.style.top;
			IfrRef.style.left=tblRef.style.left;
			IfrRef.style.zIndex=tblRef.style.zIndex-1;
			IfrRef.style.display="block";
		}else{
			IfrRef.style.display="none";
		}
	}
}
function skm_IsSubMenu(id){
	if (skm_subMenuIDs == "undefined") return false;
	for (var i=0;i<skm_subMenuIDs.length;i++)
	  if (id==skm_subMenuIDs[i]) return true;
	return false;
}
function skm_getAscendingLefts(elem){
	if (elem==null)
		return 0;
	else
	{
		if ((elem.style.position=='absolute' || elem.style.position=='relative') && !skm_IsSubMenu(elem.id)) return 0;
		return elem.offsetLeft+skm_getAscendingLefts(elem.offsetParent);
	}
}
function skm_getAscendingTops(elem){
	if (elem==null)
		return 0;
	else {
		if ((elem.style.position=='absolute' || elem.style.position=='relative') && !skm_IsSubMenu(elem.id)) return 0;
		return elem.offsetTop+skm_getAscendingTops(elem.offsetParent);
	}
}
//Region Fade Functions
function skm_doTick(menuID){
	if (skm_clockValue>=skm_MenuFadeDelays[menuID]){
		skm_stopTick();
		skm_closeSubMenus(document.getElementById(menuID));
	} else {
		skm_clockValue++;
		skm_ticker=setTimeout("skm_doTick('"+menuID+"');", 500);
	}
}
function skm_stopTick(){
	skm_clockValue=0;
	clearTimeout(skm_ticker);
}
function preloadimages(){
	for (i=0;i<preloadimages.arguments.length;i++){
		skm_images[i]=new Image();
		skm_images[i].src=preloadimages.arguments[i];
	}
}
function setimage(elem,imageSource){
	var i=elem.getElementsByTagName("img")[0];
	i.src=imageSource;
}
//-->
</script>
		
			<TABLE id="Table1" cellSpacing="1" cellPadding="1" width="760" border="0">
				<TR>
					<TD colSpan="2">
<TABLE cellSpacing="0" cellPadding="0" width="760" border="0" ID="Table1">
	<TBODY>
	
		<TR height="70">
 
			<TD width="760" BACKGROUND="../../images/HRGLogo.jpg"><p class="dateline">
					<div style="z-index:1;" align="right"><span id="ucHeader_lbl" style="background-color:Transparent;">Mats Egnell</span></div></p></TD>
		</TR>
		<tr>
			<td><IMG height="1" src="../../images/shim.gif" width="1"></td>
		</tr>
		<tr>
			<td class="HeaderMenuBackground"><img src="../../images/shim.gif" width="0" height="11"></td>
 
		</tr>
	</TBODY>
</TABLE>
</TD>
				</TR>
				<TR>
					<td colSpan="2"><IMG height="5" src="../../images/shim.gif"></td>
				</TR>
				<TR>
					<TD vAlign="top" width="160">
 
<table border="0" cellpadding="0" cellspacing="0" width="146">
	<tr>
		<td width="2"><img src="../../images/mTL.gif"></td>
		<td width="142" style="BACKGROUND-IMAGE: url(../../images/mT.gif); BACKGROUND-REPEAT: repeat-x">
			<table border="0" cellpadding="0" cellspacing="0" width="142">
				<tr>
					<td width="120"><p class="MenuHeading">Menu</p>
					</td>
					<td width="22"><img src="../../images/BTIMiniLogo.gif"></td>
 
				</tr>
			</table>
		</td>
		<td width="2"><img src="../../images/mTR.gif"></td>
	</tr>
</table>
<table class="MenuItemBorder" border="0" cellpadding="0" cellspacing="0" width="146">
	<tr>
		<td colSpan="2">
			<table class="menusub" cellspacing="1" cellpadding="1" id="ucMenu_Menu1-menuItem007-subMenu" bordercolor="#424A52" border="0" style="border-color:#424A52;border-width:1px;border-style:solid;display:none;z-index:1002;">
 
	<tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem007-subMenu-menuItem000" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditGraphics.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1-menuItem007-subMenu'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this,'');this.className='MenuItemNormal';" style="cursor:pointer;">Images</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem007-subMenu-menuItem001" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditLinksPageSettings.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1-menuItem007-subMenu'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this,'');this.className='MenuItemNormal';" style="cursor:pointer;">Links Page Settings</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem007-subMenu-menuItem002" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditLinksPDF.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1-menuItem007-subMenu'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this,'');this.className='MenuItemNormal';" style="cursor:pointer;">PDF</td>
	</tr><tr>
 
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem007-subMenu-menuItem003" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditLinksWEB.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1-menuItem007-subMenu'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this,'');this.className='MenuItemNormal';" style="cursor:pointer;">WEB</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem007-subMenu-menuItem004" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditLinksSeq.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1-menuItem007-subMenu'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this,'');this.className='MenuItemNormal';" style="cursor:pointer;">Links Sequence</td>
	</tr>
</table><table class="MenuItemNormal" cellspacing="1" cellpadding="1" id="ucMenu_Menu1" bordercolor="#424A52" border="0" style="border-color:#424A52;border-width:1px;border-style:solid;width:146px;z-index:1000;">
	<tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem000" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='../MAIN/AdminWelcome.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Home</td>
	</tr><tr>
 
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem001" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditDesign.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Design</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem002" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditLabels.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Labels</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem003" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditIntroPage.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Intro Page</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem004" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditContactPage.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Contact Page</td>
 
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem005" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditForm.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Form Page</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem006" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditFormFieldSeq.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Field Order</td>
	</tr><tr>
		<td title="Edit pdf or weblinks. Upload images or PDF files." class="MenuItemNormal" valign="bottom" id="ucMenu_Menu1-menuItem007" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';"><img src="../../images/Arrow.gif" align="right" border="0" />Upload Files</td>
	</tr><tr>
 
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem008" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='../Preview/pIntro.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Preview</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem009" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='../Main/LogOut.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Log out</td>
	</tr>
</table></td>
	</tr>
</table>
</TD>
					<td width="500"><table id="ucEditForm_tblEditForm" cellspacing="1" cellpadding="1" width="600" border="0">
 
	<tr>
		<td class="header" colspan="2">Edit Form
		</td>
	</tr>
	<tr>
		<td colspan="2"><IMG height="10" src="../../images/shim.gif"></td>
	</tr>
	<tr>
		<TD class="label" width="200"><span id="ucEditForm_Label1">Choose Control Type:</span></TD>
 
		<TD class="label" width="400"><select name="ucEditForm:ddlControlType" onchange="javascript:setTimeout('__doPostBack(\'ucEditForm$ddlControlType\',\'\')', 0)" language="javascript" id="ucEditForm_ddlControlType" disabled="disabled" class="Companylist" style="width:300px;">
			<option value=""></option>
			<option value="TextBox">TextBox</option>
			<option value="Other Info">Other Info</option>
			<option value="Max Length">Max Length</option>
			<option value="Fixed Length">Fixed Length</option>
			<option value="Numeric">Numeric</option>
 
			<option value="Evaluation Options">Evaluation Options</option>
			<option value="Email">Email</option>
			<option selected="selected" value="DropDown">DropDown</option>
			<option value="Radio">Radio</option>
			<option value="Check">Check</option>
			<option value="CreditCard">CreditCard</option>
 
			<option value="Allocation">Allocation</option>
			<option value="SingleAllocation">SingleAllocation</option>
			<option value="TextArea">TextArea</option>
			<option value="SectionHeader">SectionHeader</option>
			<option value="SubSectionHeader">SubSectionHeader</option>
			<option value="Link">Link</option>
 
		</select>
        </TD>
	</tr>
	<tr id="ucEditForm_dropoptions">
		<td class="label" valign="top" width="200"><span id="ucEditForm_Label6">Enter Control Options:</span></td>
		<td width="400">
			<TABLE id="Table2" cellSpacing="1" cellPadding="1" width="400" border="0">
				<TR>
 
				    <TD class="label" vAlign="top" width="250"><input name="ucEditForm:txtDropOption" type="text" id="ucEditForm_txtDropOption" />&nbsp;<A onclick="popListBox();" href="#"><IMG src="../../images/plus.gif" border="0"></A>
						&nbsp;<A onclick="DeleteListItem();" href="#"><IMG src="../../images/minus.gif" border="0"></A></TD>
					<TD class="label" width="150"><select size="4" name="ucEditForm:lstDropOption" multiple="multiple" id="ucEditForm_lstDropOption" class="Companylist" style="width:170px;">
			<option value="aaaa">aaaa</option>
			<option value="ffff">ffff</option>
			<option value="nnnn">nnnn</option>
 
		</select></TD>
 
				</TR>
				
			</TABLE>
		</td>
	</tr>
	<tr id="ucEditForm_rptlabel">
		<TD class="label" width="200"><span id="ucEditForm_Label5">Enter Control Name:</span></TD>
		<TD class="label" width="400"><input name="ucEditForm:txtCtlName" type="text" maxlength="50" id="ucEditForm_txtCtlName" style="width:300px;" /></TD>
	</tr>
 
	<tr id="ucEditForm_frmlabel">
		<TD class="label" width="200"><span id="ucEditForm_Label2">Enter Label Text:</span></TD>
		<TD class="label" width="400"><input name="ucEditForm:txtControlLabel" type="text" maxlength="500" id="ucEditForm_txtControlLabel" style="width:300px;" /></TD>
	</tr>
	<tr id="ucEditForm_valrequired">
		<TD class="label" width="200"><span id="ucEditForm_Label3">Is it Required:</span></TD>
		<TD class="label" width="400"><input id="ucEditForm_rbYes" type="radio" name="ucEditForm:grpYesNo" value="rbYes" /><label for="ucEditForm_rbYes">Yes</label><input id="ucEditForm_rbNo" type="radio" name="ucEditForm:grpYesNo" value="rbNo" checked="checked" /><label for="ucEditForm_rbNo">No</label></TD>
 
	</tr>
	<tr id="ucEditForm_reqErrorText">
		<TD class="label" width="200"><span id="ucEditForm_lblRequiredText">Required Error Text:</span></TD>
		<TD class="label" width="400"><input name="ucEditForm:txtReqError" type="text" maxlength="500" id="ucEditForm_txtReqError" style="width:300px;" /></TD>
	</tr>
	<tr id="ucEditForm_help">
		<TD class="label" valign="top" width="200"><span id="ucEditForm_Label4">Help Text:</span></TD>
		<TD class="label" width="400"><textarea name="ucEditForm:txtHelpText" id="ucEditForm_txtHelpText" style="width:300px;"></textarea></TD>
 
	</tr>
	<tr>
		<td style="HEIGHT: 5px" colspan="2"><IMG height="5" src="../../images/shim.gif">&nbsp;<input name="ucEditForm:lblList" type="hidden" id="ucEditForm_lblList" /></td>
	</tr>
	<tr>
		<TD align="center" colspan="2"><input type="submit" name="ucEditForm:btnSave" value="Save" onclick="return ValErrorText();WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ucEditForm:btnSave&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))" language="javascript" id="ucEditForm_btnSave" />&nbsp;&nbsp;
			</TD>
	</tr>
	<tr>
 
		<td colspan="2"><IMG height="15" src="../../images/shim.gif">&nbsp;</td>
	</tr>
	<tr>
		<td class="header" colspan="2">View Results
		</td>
	</tr>
	<tr>
		<td colspan="2"><IMG height="10" src="../../images/shim.gif"></td>
	</tr>
 
</table>
 
<table id="tblFormResult" cellSpacing="1" cellPadding="1" width="600" border="0">
	<tr>
		<td id="ucEditForm_tdContainer"><table cellspacing="2" cellpadding="2" width="620" border="0">
	<tr>
		<td class="label"></td><td><select name="ucEditForm:ddl32221" id="ucEditForm_ddl32221" class="Companylist">
			<option value="aaaa">aaaa</option>
			<option value="ffff">ffff</option>
 
			<option value="nnnn">nnnn</option>
 
		</select></td><td><input type="submit" name="ucEditForm:32221" value="Delete" id="ucEditForm_32221" class="btntrip" /></td><td><input type="submit" name="ucEditForm:E32221" value="Edit" id="ucEditForm_E32221" class="btntrip" /></td>
	</tr>
</table></td>
 
	</tr>
</table>
</td>
				</TR>
				<TR>
 
					<td colSpan="2"><IMG height="200" src="../../images/shim.gif"></td>
				</TR>
				<TR>
					<TD colSpan="2">
<br>
<br>
<TABLE id="Table6" cellSpacing="0" cellPadding="0" width="760" border="0">
	<tr>
		<td id="ucFooter_trVer" align="right"><p class="FooterText">Ver 3.6.2
			</p>
		</td>
 
	</tr>
</TABLE>
<hr class="SeperatorA">
</TD>
				</TR>
			</TABLE>
		
<script type="text/javascript">
<!--
var skm_subMenuIDs =  new Array('ucMenu_Menu1-menuItem007-subMenu', 'ucMenu_Menu1');
// -->
</script>
 
<script language="javascript">skm_registerMenu('ucMenu_Menu1',new skm_styleInfo('','','','','','','','','',''),new skm_styleInfo('','','','','','','','','',''),2,false);</script></form>
	</body>
 
</HTML>

Open in new window

0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 24372737
And what exactly does not work?

I can add just fine in FF3

You might want to not SELECT the added option since it selects each added option
0
 

Author Comment

by:mattegol
ID: 24372747
And after I submit with a added option
<HTML>
	<HEAD>
		<title>Edit Existing Event</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<LINK href="../../Styles.css" type="text/css" rel="stylesheet">
 
		<script language="javascript">
		
                function popListBox() {  
                 /*
                  var tBox = document.getElementById('ucEditForm_txtDropOption');
                  var tValue = tBox.value
                  if (tValue == "") {  
                    alert("You need to enter a value");
                    document.getElementById('ucEditForm_txtDropOption').focus();
                    return;
                  }
                 
                  var lBox = document.getElementById('ucEditForm_lstDropOption');
                  var iIndex = lBox.options.length;
                  lBox.options[iIndex]=new Option(tValue,tValue);
                  lBox.options[iIndex].selected=true;
                }
                */
 
				var lBox = document.getElementById('ucEditForm_lstDropOption');
				var tBox = document.getElementById('ucEditForm_txtDropOption');
				var tValue = tBox.value
				var iIndex = lBox.options.length;
				if (tValue == "") {
				alert("You need to enter a value");
				}
				else
				lBox.options[iIndex]=new Option(tValue,iIndex+1);
				lBox.options[iIndex].selected = true;
				lBox.options[iIndex].value=tValue
				}
				
function popAllocationListBox(){
 
				var lBox=document.getElementById('ucEditForm_lstAllocation');
				var tAllBox = document.getElementById('ucEditForm_txtAllocationItem');
				var tAmtBox = document.getElementById('ucEditForm_txtAllocationAmt');
				var tAllValue = tAllBox.value
				var tAmtValue = tAmtBox.value
				
				
				var iIndex = lBox.options.length;
				if ((tAllValue == "")||(tAmtValue == "")) {
				alert("You need to enter an allocation Item and Amount");
				return false
				}
				else
				var lstValue = tAllBox.value + " " + "(" + tAmtBox.value + ")"
				lBox.options[iIndex]=new Option(lstValue,iIndex+1);
				lBox.options[iIndex].value=lstValue
				}
				
	function SelectAllItems(sList)
				{
		var el = document.getElementById(sList)
		if(el)
		{
		    var intCount=el.options.length;
		    for(i = 0; i < intCount;i++)
		    {
			    el.options(i).selected=true;
		    }
		    }
		}
		
	function DeleteListItem()
		{
				var lBox=document.getElementById('ucEditForm_lstDropOption');
				var iSelIndex =lBox.selectedIndex
				if(iSelIndex ==-1){
				alert("You need to selected an item to delete");
				return false
				}
				else
				lBox.remove(iSelIndex);
		}
		
function ValErrorText()
				{
				var op = document.getElementById("ucEditForm_rbYes")
				var tx = document.getElementById("ucEditForm_txtReqError")
					if(op){
					    if(op.checked==true){
 
						    if (tx.value.length < 1)
							{
							    alert("You must add a validation error message.")
							    return false;
							}
							else
							{
							
							return true;
							}
						}
					}	
				}
		</script>
	</HEAD>
	<body>
		<form name="Form1" method="post" action="EditForm.aspx" id="Form1" onsubmit="SelectAllItems('ucEditForm:lstDropOption');">
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="__LASTFOCUS" id="__LASTFOCUS" value="" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTE4ODQ4MTEyMzIPZBYCAgEPZBYGAgEPZBYCA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RpdENhcmQKQWxsb2NhdGlvbhBTaW5nbGVBbGxvY2F0aW9uCFRleHRBcmVhDVNlY3Rpb25IZWFkZXIQU3ViU2VjdGlvbkhlYWRlcgRMaW5rFRIAB1RleHRCb3gKT3RoZXIgSW5mbwpNYXggTGVuZ3RoDEZpeGVkIExlbmd0aAdOdW1lcmljEkV2YWx1YXRpb24gT3B0aW9ucwVFbWFpbAhEcm9wRG93bgVSYWRpbwVDaGVjawpDcmVkaXRDYXJkCkFsbG9jYXRpb24QU2luZ2xlQWxsb2NhdGlvbghUZXh0QXJlYQ1TZWN0aW9uSGVhZGVyEFN1YlNlY3Rpb25IZWFkZXIETGluaxQrAxJnZ2dnZ2dnZ2dnZ2dnZ2dnZ2cWAWZkAgQPFgIfCGhkAgUPFgIfCGgWAgIBD2QWAgIDDxBkZBYAZAIGDxYCHwhoZAIHDxYCHwhoZAIIDxYCHwhoZAILDxYCHwhoZAIMDxYCHwhoZAINDxYCHwhoZAIODxYCHwhoZAIPDxYCHwhoZAIQDxYCHwhoZAIRDxYCHwhoZAISDxYCHwhoZAITDxYCHwhoZAIUDxYCHwhoZAIVDxYCHwhoZAIWDxYCHwhoZAIXDxYCHwhoZAIbDxYCHwhoZAIcDxYCHwhoZAIeD2QWAmYPZBYCZg8PZBYCHgdvbmNsaWNrBRZyZXR1cm4gVmFsRXJyb3JUZXh0KCk7ZBgBBR5fX0NvbnRyb2xzUmVxdWlyZVBvc3RCYWNrS2V5X18WBAUQdWNFZGl0Rm9ybTpyYlllcwUQdWNFZGl0Rm9ybTpyYlllcwUPdWNFZGl0Rm9ybTpyYk5vBQ91Y0VkaXRGb3JtOnJiTm8OcT7a+bXnyhd2Am1tcqQvy3LYkQ==" />
 
<script type="text/javascript">
<!--
var theForm = document.forms['Form1'];
if (!theForm) {
    theForm = document.Form1;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
// -->
</script>
 
<script src="/Copy of RegisterForEvent on 10.47.0.15/WebResource.axd?d=TDChIrj_h4rKxVsCDotzxQ2&amp;t=633748835251662040" type="text/javascript"></script>
 
 
<script language='javascript'>
<!--
//Region Global Variables
var skm_SelectedMenuStyleInfos=new Object();
var skm_UnselectedMenuStyleInfos=new Object();
var skm_MenuFadeDelays=new Object();
var skm_clockValue=0;
var skm_ticker;
var skm_highlightTopMenus=new Object();
var skm_images=new Array();
var skm_OpenMenuItems = new Array();
//EndRegion
//Region Methods to hook up a menu to the global variables
function skm_registerMenu(menuID, selectedStyleInfo, unselectedStyleInfo, menuFadeDelay, highlightTopMenu){
	skm_SelectedMenuStyleInfos[menuID]=selectedStyleInfo;
	skm_UnselectedMenuStyleInfos[menuID]=unselectedStyleInfo;
	skm_MenuFadeDelays[menuID]=menuFadeDelay;
	skm_highlightTopMenus[menuID]=highlightTopMenu;
}
//Region The methods and contructor of the skm_styleInfo object.
function skm_applyStyleInfoToElement(element){
	element.style.backgroundColor=this.backgroundColor;
	element.style.borderColor=this.borderColor;
	element.style.borderStyle=this.borderStyle;
	element.style.borderWidth=this.borderWidth;
	element.style.color=this.color;
	if (this.fontFamily!='')
		element.style.fontFamily=this.fontFamily;
	element.style.fontSize=this.fontSize;
	element.style.fontStyle=this.fontStyle;
	element.style.fontWeight=this.fontWeight;
	if (this.className!='')
		element.style.className=this.className;
}
function skm_styleInfo(backgroundColor,borderColor,borderStyle,borderWidth,color,fontFamily,fontSize,fontStyle,fontWeight,className){
	this.backgroundColor=backgroundColor;
	this.borderColor=borderColor;
	this.borderStyle=borderStyle;
	this.borderWidth=borderWidth;
	this.color=color;
	this.fontFamily=fontFamily;
	this.fontSize=fontSize;
	this.fontStyle=fontStyle;
	this.fontWeight=fontWeight;
	this.className=className;
	this.applyToElement=skm_applyStyleInfoToElement;
}
//Region MouseEventHandlers
function skm_mousedOverMenu(menuID,elem,parent,displayedVertically,imageSource){
	skm_stopTick();
	skm_closeSubMenus(elem);
	var childID=elem.id+"-subMenu";  // Display child menu if needed
	if (document.getElementById(childID)!=null){  // make the child menu visible and specify that its position is specified in absolute coordinates
		document.getElementById(childID).style.display='block';
		document.getElementById(childID).style.position='absolute';
		skm_OpenMenuItems = skm_OpenMenuItems.concat(childID);
		if (displayedVertically){ // Set the child menu's left and top attributes according to the menu's offsets
			document.getElementById(childID).style.left=skm_getAscendingLefts(parent)+parent.offsetWidth;
			document.getElementById(childID).style.top=skm_getAscendingTops(elem);
			var visibleWidth=parseInt(window.outerWidth?window.outerWidth-9:document.body.clientWidth,10);
			if ((parseInt(document.getElementById(childID).offsetLeft,10)+parseInt(document.getElementById(childID).offsetWidth,10))>visibleWidth) {
				document.getElementById(childID).style.left=visibleWidth-parseInt(document.getElementById(childID).offsetWidth,10);
			}
		}else{  // Set the child menu's left and top attributes according to the menu's offsets
			document.getElementById(childID).style.left=skm_getAscendingLefts(elem);
			document.getElementById(childID).style.top=skm_getAscendingTops(parent)+parent.offsetHeight;
			if (document.getElementById(childID).offsetWidth<elem.offsetWidth)
				document.getElementById(childID).style.width=elem.offsetWidth;
		}
	}
	if (skm_SelectedMenuStyleInfos[menuID] != null) skm_SelectedMenuStyleInfos[menuID].applyToElement(elem);
	if (skm_highlightTopMenus[menuID]){
		var eId=elem.id+'';
		while (eId.indexOf('-subMenu')>=0){
			eId=eId.substring(0, eId.lastIndexOf('-subMenu'));
			skm_SelectedMenuStyleInfos[menuID].applyToElement(document.getElementById(eId));
		}
	}	
	if (imageSource!=''){
		setimage(elem,imageSource)
	}
}
function skm_mousedOverClickToOpen(menuID,elem,parent,imageSource){
	skm_stopTick();
	if (skm_SelectedMenuStyleInfos[menuID] != null) skm_SelectedMenuStyleInfos[menuID].applyToElement(elem);
	if (skm_highlightTopMenus[menuID]){
		var eId=elem.id+'';
		while (eId.indexOf('-subMenu')>=0){
			eId=eId.substring(0, eId.lastIndexOf('-subMenu'));
			skm_SelectedMenuStyleInfos[menuID].applyToElement(document.getElementById(eId));
		}
	}	
	if (imageSource!=''){
		setimage(elem,imageSource)
	}
}
function skm_mousedOverSpacer(menuID,elem,parent){
	skm_stopTick();
}
function skm_mousedOutMenu(menuID,elem,imageSource){
	skm_doTick(menuID);
	if (skm_UnselectedMenuStyleInfos[menuID] != null) skm_UnselectedMenuStyleInfos[menuID].applyToElement(elem);
	if (skm_highlightTopMenus[menuID]){
		var eId=elem.id+'';
		while (eId.indexOf('-subMenu')>=0){
			eId=eId.substring(0, eId.lastIndexOf('-subMenu'));
			skm_UnselectedMenuStyleInfos[menuID].applyToElement(document.getElementById(eId));
		}
	}
	if (imageSource!=''){
		setimage(elem,imageSource)
	}
}
function skm_mousedOutSpacer(menuID, elem){
	skm_doTick(menuID);
}
//Region Utility Functions
function skm_closeSubMenus(parent){
	if (skm_OpenMenuItems == "undefined") return;
	for (var i=skm_OpenMenuItems.length-1; i>-1;i--) {
		if (parent.id.indexOf(skm_OpenMenuItems[i]) != 0) {
			document.getElementById(skm_OpenMenuItems[i]).style.display = 'none';
			skm_shimSetVisibility(false, skm_OpenMenuItems[i]);			
			skm_OpenMenuItems = new Array().concat(skm_OpenMenuItems.slice(0,i), skm_OpenMenuItems.slice(i+1));
  		} 
	}
}
function skm_shimSetVisibility(makevisible, tableid){
	var tblRef=document.getElementById(tableid);
	var IfrRef=document.getElementById('shim'+tableid);
	if (tblRef!=null && IfrRef!=null){
		if(makevisible){
			IfrRef.style.width=tblRef.offsetWidth;
			IfrRef.style.height=tblRef.offsetHeight;
			IfrRef.style.top=tblRef.style.top;
			IfrRef.style.left=tblRef.style.left;
			IfrRef.style.zIndex=tblRef.style.zIndex-1;
			IfrRef.style.display="block";
		}else{
			IfrRef.style.display="none";
		}
	}
}
function skm_IsSubMenu(id){
	if (skm_subMenuIDs == "undefined") return false;
	for (var i=0;i<skm_subMenuIDs.length;i++)
	  if (id==skm_subMenuIDs[i]) return true;
	return false;
}
function skm_getAscendingLefts(elem){
	if (elem==null)
		return 0;
	else
	{
		if ((elem.style.position=='absolute' || elem.style.position=='relative') && !skm_IsSubMenu(elem.id)) return 0;
		return elem.offsetLeft+skm_getAscendingLefts(elem.offsetParent);
	}
}
function skm_getAscendingTops(elem){
	if (elem==null)
		return 0;
	else {
		if ((elem.style.position=='absolute' || elem.style.position=='relative') && !skm_IsSubMenu(elem.id)) return 0;
		return elem.offsetTop+skm_getAscendingTops(elem.offsetParent);
	}
}
//Region Fade Functions
function skm_doTick(menuID){
	if (skm_clockValue>=skm_MenuFadeDelays[menuID]){
		skm_stopTick();
		skm_closeSubMenus(document.getElementById(menuID));
	} else {
		skm_clockValue++;
		skm_ticker=setTimeout("skm_doTick('"+menuID+"');", 500);
	}
}
function skm_stopTick(){
	skm_clockValue=0;
	clearTimeout(skm_ticker);
}
function preloadimages(){
	for (i=0;i<preloadimages.arguments.length;i++){
		skm_images[i]=new Image();
		skm_images[i].src=preloadimages.arguments[i];
	}
}
function setimage(elem,imageSource){
	var i=elem.getElementsByTagName("img")[0];
	i.src=imageSource;
}
//-->
</script>
		
			<TABLE id="Table1" cellSpacing="1" cellPadding="1" width="760" border="0">
				<TR>
					<TD colSpan="2">
<TABLE cellSpacing="0" cellPadding="0" width="760" border="0" ID="Table1">
	<TBODY>
	
		<TR height="70">
 
			<TD width="760" BACKGROUND="../../images/HRGLogo.jpg"><p class="dateline">
					<div style="z-index:1;" align="right"><span id="ucHeader_lbl" style="background-color:Transparent;">Mats Egnell</span></div></p></TD>
		</TR>
		<tr>
			<td><IMG height="1" src="../../images/shim.gif" width="1"></td>
		</tr>
		<tr>
			<td class="HeaderMenuBackground"><img src="../../images/shim.gif" width="0" height="11"></td>
 
		</tr>
	</TBODY>
</TABLE>
</TD>
				</TR>
				<TR>
					<td colSpan="2"><IMG height="5" src="../../images/shim.gif"></td>
				</TR>
				<TR>
					<TD vAlign="top" width="160">
 
<table border="0" cellpadding="0" cellspacing="0" width="146">
	<tr>
		<td width="2"><img src="../../images/mTL.gif"></td>
		<td width="142" style="BACKGROUND-IMAGE: url(../../images/mT.gif); BACKGROUND-REPEAT: repeat-x">
			<table border="0" cellpadding="0" cellspacing="0" width="142">
				<tr>
					<td width="120"><p class="MenuHeading">Menu</p>
					</td>
					<td width="22"><img src="../../images/BTIMiniLogo.gif"></td>
 
				</tr>
			</table>
		</td>
		<td width="2"><img src="../../images/mTR.gif"></td>
	</tr>
</table>
<table class="MenuItemBorder" border="0" cellpadding="0" cellspacing="0" width="146">
	<tr>
		<td colSpan="2">
			<table class="menusub" cellspacing="1" cellpadding="1" id="ucMenu_Menu1-menuItem007-subMenu" bordercolor="#424A52" border="0" style="border-color:#424A52;border-width:1px;border-style:solid;display:none;z-index:1002;">
 
	<tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem007-subMenu-menuItem000" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditGraphics.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1-menuItem007-subMenu'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this,'');this.className='MenuItemNormal';" style="cursor:pointer;">Images</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem007-subMenu-menuItem001" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditLinksPageSettings.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1-menuItem007-subMenu'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this,'');this.className='MenuItemNormal';" style="cursor:pointer;">Links Page Settings</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem007-subMenu-menuItem002" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditLinksPDF.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1-menuItem007-subMenu'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this,'');this.className='MenuItemNormal';" style="cursor:pointer;">PDF</td>
	</tr><tr>
 
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem007-subMenu-menuItem003" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditLinksWEB.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1-menuItem007-subMenu'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this,'');this.className='MenuItemNormal';" style="cursor:pointer;">WEB</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem007-subMenu-menuItem004" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditLinksSeq.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1-menuItem007-subMenu'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this,'');this.className='MenuItemNormal';" style="cursor:pointer;">Links Sequence</td>
	</tr>
</table><table class="MenuItemNormal" cellspacing="1" cellpadding="1" id="ucMenu_Menu1" bordercolor="#424A52" border="0" style="border-color:#424A52;border-width:1px;border-style:solid;width:146px;z-index:1000;">
	<tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem000" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='../MAIN/AdminWelcome.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Home</td>
	</tr><tr>
 
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem001" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditDesign.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Design</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem002" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditLabels.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Labels</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem003" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditIntroPage.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Intro Page</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem004" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditContactPage.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Contact Page</td>
 
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem005" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditForm.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Form Page</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem006" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditFormFieldSeq.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Field Order</td>
	</tr><tr>
		<td title="Edit pdf or weblinks. Upload images or PDF files." class="MenuItemNormal" valign="bottom" id="ucMenu_Menu1-menuItem007" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';"><img src="../../images/Arrow.gif" align="right" border="0" />Upload Files</td>
	</tr><tr>
 
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem008" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='../Preview/pIntro.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Preview</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem009" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='../Main/LogOut.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Log out</td>
	</tr>
</table></td>
	</tr>
</table>
</TD>
					<td width="500"><table id="ucEditForm_tblEditForm" cellspacing="1" cellpadding="1" width="600" border="0">
 
	<tr>
		<td class="header" colspan="2">Edit Form
		</td>
	</tr>
	<tr>
		<td colspan="2"><IMG height="10" src="../../images/shim.gif"></td>
	</tr>
	<tr>
		<TD class="label" width="200"><span id="ucEditForm_Label1">Choose Control Type:</span></TD>
 
		<TD class="label" width="400"><select name="ucEditForm:ddlControlType" onchange="javascript:setTimeout('__doPostBack(\'ucEditForm$ddlControlType\',\'\')', 0)" language="javascript" id="ucEditForm_ddlControlType" class="Companylist" style="width:300px;">
			<option selected="selected" value=""></option>
			<option value="TextBox">TextBox</option>
			<option value="Other Info">Other Info</option>
			<option value="Max Length">Max Length</option>
			<option value="Fixed Length">Fixed Length</option>
			<option value="Numeric">Numeric</option>
 
			<option value="Evaluation Options">Evaluation Options</option>
			<option value="Email">Email</option>
			<option value="DropDown">DropDown</option>
			<option value="Radio">Radio</option>
			<option value="Check">Check</option>
			<option value="CreditCard">CreditCard</option>
 
			<option value="Allocation">Allocation</option>
			<option value="SingleAllocation">SingleAllocation</option>
			<option value="TextArea">TextArea</option>
			<option value="SectionHeader">SectionHeader</option>
			<option value="SubSectionHeader">SubSectionHeader</option>
			<option value="Link">Link</option>
 
		</select>
        </TD>
	</tr>
	<tr id="ucEditForm_rptlabel">
		<TD class="label" width="200"><span id="ucEditForm_Label5">Enter Control Name:</span></TD>
		<TD class="label" width="400"><input name="ucEditForm:txtCtlName" type="text" maxlength="50" id="ucEditForm_txtCtlName" style="width:300px;" /></TD>
	</tr>
	<tr id="ucEditForm_frmlabel">
 
		<TD class="label" width="200"><span id="ucEditForm_Label2">Enter Label Text:</span></TD>
		<TD class="label" width="400"><input name="ucEditForm:txtControlLabel" type="text" maxlength="500" id="ucEditForm_txtControlLabel" style="width:300px;" /></TD>
	</tr>
	<tr id="ucEditForm_valrequired">
		<TD class="label" width="200"><span id="ucEditForm_Label3">Is it Required:</span></TD>
		<TD class="label" width="400"><input id="ucEditForm_rbYes" type="radio" name="ucEditForm:grpYesNo" value="rbYes" /><label for="ucEditForm_rbYes">Yes</label><input id="ucEditForm_rbNo" type="radio" name="ucEditForm:grpYesNo" value="rbNo" /><label for="ucEditForm_rbNo">No</label></TD>
	</tr>
 
	<tr id="ucEditForm_reqErrorText">
		<TD class="label" width="200"><span id="ucEditForm_lblRequiredText">Required Error Text:</span></TD>
		<TD class="label" width="400"><input name="ucEditForm:txtReqError" type="text" maxlength="500" id="ucEditForm_txtReqError" style="width:300px;" /></TD>
	</tr>
	<tr id="ucEditForm_help">
		<TD class="label" valign="top" width="200"><span id="ucEditForm_Label4">Help Text:</span></TD>
		<TD class="label" width="400"><textarea name="ucEditForm:txtHelpText" id="ucEditForm_txtHelpText" style="width:300px;"></textarea></TD>
 
	</tr>
	<tr>
		<td style="HEIGHT: 5px" colspan="2"><IMG height="5" src="../../images/shim.gif">&nbsp;<input name="ucEditForm:lblList" type="hidden" id="ucEditForm_lblList" /></td>
	</tr>
	<tr>
		<TD align="center" colspan="2"><input type="submit" name="ucEditForm:btnSave" value="Save" onclick="return ValErrorText();WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ucEditForm:btnSave&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))" language="javascript" id="ucEditForm_btnSave" />&nbsp;&nbsp;
			</TD>
	</tr>
	<tr>
 
		<td colspan="2"><IMG height="15" src="../../images/shim.gif">&nbsp;</td>
	</tr>
	<tr>
		<td class="header" colspan="2">View Results
		</td>
	</tr>
	<tr>
		<td colspan="2"><IMG height="10" src="../../images/shim.gif"></td>
	</tr>
 
</table>
 
<table id="tblFormResult" cellSpacing="1" cellPadding="1" width="600" border="0">
	<tr>
		<td id="ucEditForm_tdContainer"><table cellspacing="2" cellpadding="2" width="620" border="0">
	<tr>
		<td class="label"></td><td><select name="ucEditForm:ddl32221" id="ucEditForm_ddl32221" class="Companylist">
			<option value="afterupdating">afterupdating</option>
 
		</select></td><td><input type="submit" name="ucEditForm:32221" value="Delete" id="ucEditForm_32221" class="btntrip" /></td><td><input type="submit" name="ucEditForm:E32221" value="Edit" id="ucEditForm_E32221" class="btntrip" /></td>
 
	</tr>
</table></td>
 
	</tr>
</table>
</td>
				</TR>
				<TR>
					<td colSpan="2"><IMG height="200" src="../../images/shim.gif"></td>
				</TR>
				<TR>
 
					<TD colSpan="2">
<br>
<br>
<TABLE id="Table6" cellSpacing="0" cellPadding="0" width="760" border="0">
	<tr>
		<td id="ucFooter_trVer" align="right"><p class="FooterText">Ver 3.6.2
			</p>
		</td>
 
	</tr>
</TABLE>
<hr class="SeperatorA">
 
</TD>
				</TR>
			</TABLE>
		
<script type="text/javascript">
<!--
var skm_subMenuIDs =  new Array('ucMenu_Menu1-menuItem007-subMenu', 'ucMenu_Menu1');
// -->
</script>
 
<script language="javascript">skm_registerMenu('ucMenu_Menu1',new skm_styleInfo('','','','','','','','','',''),new skm_styleInfo('','','','','','','','','',''),2,false);</script></form>
	</body>
</HTML>

Open in new window

0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 24372748
And why did you leave in
                lBox.options[iIndex].value=tValue


I do not see what it does
0
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 500 total points
ID: 24372764
It even works if I comment out your old code and remove the comments from
function popListBox() {  
                  var tBox = document.getElementById('ucEditForm_txtDropOption');
                  var tValue = tBox.value
                  if (tValue == "") {  
                    alert("You need to enter a value");
                    document.getElementById('ucEditForm_txtDropOption').focus();
                    return;
                  }
                 
                  var lBox = document.getElementById('ucEditForm_lstDropOption');
                  var iIndex = lBox.options.length;
                  lBox.options[iIndex]=new Option(tValue,tValue);
                  lBox.options[iIndex].selected=true;
                }

0
 

Author Comment

by:mattegol
ID: 24372882
I just tested the old lBox.options[iIndex].value=tValue and forgot to change it back again, but with the new popListBox() it still does not trigger alert and when I add new options it just takes the new ones and skips the old ones if I dont highlight them all myself manually in the listbox. If I use lBox.options[iIndex].selected=false; it does not put any options i the dropdown when submitting..
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 24372893
I give up

The javascript code works
0
 

Author Comment

by:mattegol
ID: 24373888
Yes it do work, the only thing is when I have saved the options and come back to it and adds an option to the list box like the picture I've attached, The original options were Mike, Chris, Tom. Later I add Peter and click save, the only name added in the dropdown is Peter it skips the old ones that is not selected in the listbox. ( I can select them manually and then all of them adds to the dropdown. )

I hope you understand what I mean, English is not my best language.

You have helped me alot and I will give you your points anyhow...
listbox.bmp
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 24373948
Change
onsubmit="SelectAllItems('ucEditForm:lstDropOption')
to
onsubmit="SelectAllItems('ucEditForm_lstDropOption')

0
 

Author Comment

by:mattegol
ID: 24374085
That didn't do it either, I give up too if they have to add an option they have to select all manually or add them all again.

Thanks for your help, you solved the main question.
0
 

Author Closing Comment

by:mattegol
ID: 31580122
Thanks
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 24374182
But it SHOULD work!!!

Look:

<HTML>
	<HEAD>
		<title>Edit Existing Event</title>
<script>
function popListBox() {  
  var tBox = document.getElementById('ucEditForm_txtDropOption');
  var tValue = tBox.value
  if (tValue == "") {  
    alert("You need to enter a value");
    document.getElementById('ucEditForm_txtDropOption').focus();
    return;
  }
 
  var lBox = document.getElementById('ucEditForm_lstDropOption');
  var iIndex = lBox.options.length;
  lBox.options[iIndex]=new Option(tValue,tValue);
  lBox.options[iIndex].selected=true;
}
				
function SelectAllItems(sList) {
	var el = document.getElementById(sList)
	if(el) {
    var intCount=el.options.length;
    for(i = 0; i < intCount;i++) {
      el.options(i).selected=true;
    }
  }
}
 
		</script>
	</HEAD>
	<body>
		<form name="Form1" method="post" action="" id="Form1" onsubmit="SelectAllItems('ucEditForm:lstDropOption'); alert('I WOULD have submitted all now'); return false">
 
<table id="ucEditForm_tblEditForm" cellspacing="1" cellpadding="1" width="600" border="0">
	<tr id="ucEditForm_dropoptions">
		<td class="label" valign="top" width="200"><span id="ucEditForm_Label6">Enter Control Options:</span></td>
		<td width="400">
			<TABLE id="Table2" cellSpacing="1" cellPadding="1" width="400" border="0">
				<TR>
 
				    <TD class="label" vAlign="top" width="250"><input name="ucEditForm:txtDropOption" type="text" id="ucEditForm_txtDropOption" />&nbsp;<A onclick="popListBox();" href="#"><IMG src="../../images/plus.gif" border="0"></A>
						&nbsp;<A onclick="DeleteListItem();" href="#"><IMG src="../../images/minus.gif" border="0"></A></TD>
					<TD class="label" width="150"><select size="4" name="ucEditForm:lstDropOption" multiple="multiple" 
          id="ucEditForm_lstDropOption" class="Companylist" style="width:170px;">
			<option value="aaaa">aaaa</option>
			<option value="ffff">ffff</option>
			<option value="nnnn">nnnn</option>
 
		</select></TD>
 
				</TR>
</tr>    
  <tr>  <td><input type="submit" name="ucEditForm:32221" value="Delete" id="ucEditForm_32221" class="btntrip" /></td>
  <td><input type="submit" name="ucEditForm:E32221" value="Edit" id="ucEditForm_E32221" class="btntrip" /></td>
	</tr>
</table>

Open in new window

0
 

Author Comment

by:mattegol
ID: 24374551
In IE the Alert triggers as many times as there is options but in FF it only triggers 1 time...
0
 

Author Comment

by:mattegol
ID: 24374577
Isn't there a way to automaticly select all options in the listbox?
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 24374705
But that is what the script DOES in FF and IE !
I do not understand your issue.

Try the last stand alone code in IE and FF and see all options are selected
0
 

Author Comment

by:mattegol
ID: 24375562
I changed:
el.options(i).selected=true;
to
el.options[i].selected=true;

and now it works!


                  
               
0
 

Author Comment

by:mattegol
ID: 24375569
in function SelectAllItems(sList)
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 24375602
EUUW.

FF3 seems to allow this - other browsers of course not - the options is an array and not a collection
Sorry I did not notice that
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Find out what you should include to make the best professional email signature for your organization.
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question