Javascript error

Im trying to run my ASP.NET app in IE 11 but I get an error when running a javascript  and trying to set focus to a control. With the error happening I cant even get the focus on any textboxes on the form? The function is being called from the body tag "onload sf()" and is running the following

 Dim StrScript As String
        If rbtnNameSearch.Checked = True Then

            StrScript = "function sf()" _
            & " { " _
           & " document.Form1.txtName.focus(); " _
            & " }"

        Else
            StrScript = "function sf()" _
            & " { " _
            & " document.Form1.txtFileNumber.focus(); " _
            & " } " _
            & "function validateRange(source,Args){" _
            & "if (Args.Value > 999 && Args.Value < 9999999)" _
            & "  Args.IsValid = true;" _
            & "else" _
            & "  Args.IsValid = false;" _
            & " return;" _
            & "}"

This is an update project from .NET 1.1 to .NET 4.0

Can anyone help me out here. Im new to javascript so if you need any info let me know.

Thanks
JK
jknj72Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ryan ChongCommented:
is these codes are in the page_load event?

do you check the IsPostBack in your codes?

how do you return the variable StrScript into the page?

what's the output generated from above?
0
Julian HansenCommented:
Can you show us what this looks like in the browser - either post a link - and if that is not possible post the html source of the page.
0
jknj72Author Commented:
It actually calls an Event OnLoad which sets the resolution but on the Render of the page is when this function is called. Sorry its not on the Page_Load.
The code below is when it is called and from where

#Region "HELPERS"
    '************************************************************************************************
    'method GetDefaultMarkup
    'return the default markup for the page
    Private Function GetDefaultMarkup() As String
        'capture the default output of the page
        Dim writer As New StringWriter
        Dim buffer As HtmlTextWriter = New HtmlTextWriter(writer)
        MyBase.Render(buffer)
        Return writer.ToString()
    End Function
    '***********************************************************************************************
    'method FixMarkup
    'insert missing tags in the default markup
    Private Function FixMarkup(ByVal gridMarkup As String) As String
        'local variables

        Dim StrScript As String
        If rbtnNameSearch.Checked = True Then

            StrScript = "function sf()" _
            & " { " _
            & " document.Form1.txtName.focus(); " _
            & " }"

        Else
            StrScript = "function sf()" _
            & " { " _
            & " document.Form1.txtFileNumber.focus(); " _
            & " } " _
            & "function validateRange(source,Args){" _
            & "if (Args.Value > 999 && Args.Value < 9999999)" _
            & "  Args.IsValid = true;" _
            & "else" _
            & "  Args.IsValid = false;" _
            & " return;" _
            & "}"

        End If
        ' find the 1st occurrence of <head> and insert <link href="MainCss.css" type="text/css" rel="stylesheet">
        Dim insertpoint As Integer
        insertpoint = gridMarkup.IndexOf("language=""javascript"">") + ("language=""javascript"">").Length
        gridMarkup = gridMarkup.Insert(insertpoint, StrScript)

        Return gridMarkup

    End Function
#End Region
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

jknj72Author Commented:
its being called from the body tag
<body bgColor="#ffffff" background="./images/testbg.gif" style="margin-top:0" onload="sf()">
0
jknj72Author Commented:
also, this works in firefox but not IE
0
Julian HansenCommented:
Can you show us what this looks like in the browser
Posting your server side code is not really going to help at this stage - we need to see how this renders in the browser.

Can you do a view source of your page and post the HTML source.
0
jknj72Author Commented:
i took the code above out and trying to use update panels to trigger events to fire. I have 2 radio buttons that when clicked call the same procedure. Any way to do this. Im failing when I run it...
Here is what I have

<asp:UpdatePanel ID="updRadioButtons" runat="server">
<ContentTemplate>
<asp:radiobutton id="rbtnNameSearch" style="Z-INDEX: 97; POSITION: relative; TOP: 0px; LEFT: 130px" tabIndex="1" runat="server" CssClass="Pcov1Labels" AutoPostBack="True" GroupName="WhichSearch" Checked="True" Text="Name Search">
 </asp:radiobutton>
 <asp:label id="lblSeparator" style="Z-INDEX: 98; POSITION: relative; LEFT: 355px" runat="server" CssClass="Pcov1LabelInfo">OR</asp:label>
 <asp:radiobutton id="rbtnFileSearch" style="Z-INDEX: 99; POSITION: relative; TOP: 0px; LEFT: 550px"
      tabIndex="2" runat="server" CssClass="Pcov1Labels" AutoPostBack="True" GroupName="WhichSearch" Text="Coverage ID Search">
        </asp:radiobutton>
        </ContentTemplate>
        <Triggers>
        <asp:AsyncPostBackTrigger ControlID="rbtnNameSearch" EventName="CheckedChanged" />
     </Triggers>
</asp:UpdatePanel>
0
Julian HansenCommented:
HTML Source?
0
jknj72Author Commented:
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="PcovA.aspx.vb" Inherits="PCOV.PcovA" EnableViewState="True" %>
<%@ Register TagPrefix="uc1" TagName="FileUploadDate" Src="UserControls/FileUploadDate.ascx" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<HTML>
	<HEAD id="HEAD1" runat="server" >
        
		<title>Proof Of Coverage</title>
		<LINK href="MainCss.css" type="text/css" rel="stylesheet">
       <!--<meta content="False" name="vs_showGrid">
		<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">-->

        <script type="text/javascript" language="javascript">      

            function showkey()                
	        {
		        if (event.keyCode == 13)
		        {
			        switch(document.activeElement.id)
			        {
				        // txtname
				        case 'txtName': document.Form1.btnBeginSearch.focus(); break;
				        // txtDate
				        case 'txtDate' : document.Form1.btnBeginSearch.focus(); break;
				        // txtCity
				        case 'txtCity' : document.Form1.btnBeginSearch.focus(); break;
				        // txtState
				        case 'txtState' : document.Form1.btnBeginSearch.focus(); break;
				        // txtState
				        case 'txtFileNumber' : document.Form1.btnBeginSearch.focus(); break;
				        // txtState
				        case 'txtFAccidentDate' : document.Form1.btnBeginSearch.focus(); break;
				        // btnBeginSearch
				        case 'btnBeginSearch' : document.Form1.btnBeginSearch.focus(); break;
			        }
		        }	
	        }
	        document.onkeydown=showkey;
        </script>
       
        <LINK runat="server" rel="shortcut icon" href="favicon.ico" type="image/x-icon" ID="Link1" />
			<!--NAME="Link1">-->
		<LINK runat="server" rel="icon" href="favicon.ico" type="image/ico" ID="Link2" />
            <!--NAME="Link2">-->

		<script type="text/javascript" language="javascript">
		    var _gaq = _gaq || [];
		    _gaq.push(['_setAccount', 'UA-9077260-5']);
		    _gaq.push(['_trackPageview']);

		    (function () {
		        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
		        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
		        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
		    })();

		</script>
	    
	    <style type="text/css">
            #Form1 {
                margin-top: 0px;
            }
        </style>
	    
	</HEAD>
	<body bgColor="#ffffff" background="./images/testbg.gif" style="margin-top:0" >
		<form id="Form1" method="post" runat="server"  defaultbutton="btnBeginSearch" 
            defaultfocus="txtName">
            
            <table id="Table2" align="left" style="background-position: left; height: 500px; vertical-align: top; text-align:left" 
                cellspacing="0" cellpadding="0" width="900px" border="0" >
				<tr>
					<td width="3%" height="1"></td>
					<td width="8%" height="1"></td>
					<td width="86%" height="1"></td>
					<td width="3%" height="1" ></td>
				</tr>
				<tr>
					<td width="3%">&nbsp;</td>
					<td vAlign="middle" align="left" width="8%" height="73" rowSpan="3">
						<!--***************************************Test Image*********************************-->
                        <a style="BORDER-BOTTOM-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-TOP-STYLE: none; BORDER-LEFT-STYLE: none"
							href="http://www.njcrib.com"> 
							<!--<IMG height="113" src="nj3.gif" width="65" border="0">-->
                            <!--<IMG height="113" src="./images/nj3.gif" width="65" border="0">-->
                            <asp:Image ID="Image1" runat="server" style="height:113px;width:65px;" ImageUrl="~/images/nj3.gif" BorderStyle="None" />
                        </a>

					</td>
                    
					<td vAlign="middle" align="left" colSpan="2" height="73">
						<!--***************************************Test Image*********************************-->
                        <a style="BORDER-BOTTOM-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-TOP-STYLE: none; BORDER-LEFT-STYLE: none"
							href="http://www.njcrib.com"> 
							<!--<IMG height="50" src="logo.gif" width="180" border="0">-->
                            <!--<IMG height="50" src="./images/logo.gif" width="180" border="0">-->
                            <asp:Image ID="Image2" runat="server" style="height:50px;width:180px;border:0" ImageUrl="~/images/logo.gif" />             					
                        </a>

					</td>
                           
				</tr>
				<tr>
					<td width="100%" colSpan="4" height="10"></td>
				</tr>
				<tr>
					<td width="100%" colSpan="4" height="10"></td>
				</tr>
				<tr>
					<td colspan="4">
						<table width="100%" border="0" cellspacing="0" cellpadding="0" ID="Table3">
							<tr align="left">
								<td width="1%">
                                    <asp:Image ID="Image4" runat="server" ImageUrl="~/images/testl.gif"/>
								</td>
								<td width="5%" bgcolor="#ffffff"></td>
								<td width="88%" bgColor="#ffffff">&nbsp;</td>
								<td width="5%" bgcolor="#ffffff"></td>
								<td align="right" width="1%">
                                    <asp:Image ID="Image3" runat="server" ImageUrl="~/images/testr.gif" />
                                </td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td vAlign="top" align="center" colSpan="4">
						<table id="Table5" cellSpacing="0" cellPadding="0" width="100%" align="center" bgColor="#ffffff"
							border="0" style="vertical-align:top">  
							<tr vAlign="top">
								<td width="3%">&nbsp;</td>
								<td align="center" width="94%" colspan="2">
                                    <span class="Where">
										<P>
                                            <br>											
											POLICY COVERAGE SEARCH
                                            <br>
										</P>
                                        <hr width="90%" noshade="noshade" size="3" />
									</span>
									<table id="divTable" width="100%" border="0">
										<tr>
											<td width="10%">&nbsp;</td>
											<td width="80%" align="center">
                                                <uc1:fileuploaddate id="FileUploadDate1" runat="server"></uc1:fileuploaddate>
											</td>
											<td width="10%">&nbsp;</td>
										</tr>
										<tr>
											<td width="10%">&nbsp;</td>
											<td width="80%">
                                                <div align="center"><br>
													<asp:label id="lbldescript1" runat="server" CssClass="Pcov1TopLabel">NOTE: Policy coverage information reflects only policies with effective dates within the last 72 months.</asp:label>
													<HR style="width: 98.53%; height: 4px" width="98.53%" noShade="noshade" size="3">
												</div>
											</td>
											<td width="10%">&nbsp;</td>
										</tr>
										<tr>
											<td width="10%">&nbsp;</td>
											<td width="80%">
                                                <div align="center">
                                                    <asp:label id="lblDescript3" runat="server" CssClass="Pcov1LabelInfo"></asp:label>
											    </div>
											</td>
											<td width="10%">&nbsp;</td>
										</tr>
									</table>
								</td>
								<td width="3%">&nbsp;</td>
							</tr>
							<tr>
								<td width="3%">&nbsp;</td>
								<td align="center" width="94%"></td>
								<td width="3%">&nbsp;</td>
							</tr>
                            
							<tr>
                                
								<td width="3%">&nbsp;</td>
								<td vAlign="top" align="center" width="94%" colSpan="2">

								<table style="WIDTH: 966px; HEIGHT: 241px" >
                                    
									<tr>

										<td style="HEIGHT: 23px" colSpan="3">

                                            <asp:radiobutton id="rbtnNameSearch" style="Z-INDEX: 97; POSITION: relative; TOP: 0px; LEFT: 130px"
												tabIndex="1" runat="server" CssClass="Pcov1Labels" AutoPostBack="True" GroupName="WhichSearch" Checked="True" Text="Name Search">
                                            </asp:radiobutton>
                                            <asp:label id="lblSeparator" style="Z-INDEX: 98; POSITION: relative; LEFT: 355px" runat="server" CssClass="Pcov1LabelInfo">OR</asp:label>
                                            <asp:radiobutton id="rbtnFileSearch" style="Z-INDEX: 99; POSITION: relative; TOP: 0px; LEFT: 550px"
												tabIndex="2" runat="server" CssClass="Pcov1Labels" AutoPostBack="True" GroupName="WhichSearch" Text="Coverage ID Search">
                                            </asp:radiobutton>
                                                                                   
                                        </td>
                                    </tr>
                                        
									<tr>										
                                            
										<td>
                                                
											<fieldset style="POSITION: relative; WIDTH: 421px; HEIGHT: 192px; text-align: right">
                                                    
                                                <P>
                                                    <asp:Label ID="lblEmployerName" Style="Z-INDEX: 101; POSITION: absolute; TOP: 16px;
                                                        left: 2px;text-align:left" runat="server" Width="108px" CssClass="Pcov1Labels" Height="24px">Employer Name</asp:Label>

                                                </P>
                                                <P>  
                                                    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager> 
                                                    <asp:TextBox ID="txtName" Style="Z-INDEX: 113; POSITION: absolute; TOP: 16px; LEFT: 123px; width: 245px;"
                                                        TabIndex="3" runat="server" MaxLength="60" >
                                                    </asp:TextBox>
                                                    <asp:Label ID="lblDateOfAccident" Style="Z-INDEX: 107; POSITION: absolute; TOP: 56px;LEFT: 2px; right: 314px; text-align:left" 
                                                        runat="server" CssClass="Pcov1Labels">Date of Accident</asp:Label>

                                                       
                                                    <asp:TextBox ID="txtDate" Style="Z-INDEX: 106; POSITION: absolute; TOP: 56px; LEFT: 123px;
                                                        width: 98px;" TabIndex="5" runat="server" MaxLength="10" Width="100px" ></asp:TextBox>
                                                        
                                                    <asp:ImageButton ID="imgCalendar" runat="server" CausesValidation="false" 
                                                        Style="z-index: 107; left: 230px; POSITION: absolute; TOP: 56px; height: 26px;"
                                                        TabIndex="5" ImageUrl="~\Images\Calendar.png" Width="25" ImageAlign="Top" />

                                                    <cc1:CalendarExtender ID="calDate" runat="server" Format="MM/dd/yyyy" PopupButtonID="imgCalendar"
                                                        PopupPosition="TopRight" TargetControlID="txtDate" />


                                                    <asp:Label ID="lblCity" Style="Z-INDEX: 105; POSITION: absolute; TOP: 96px; LEFT: 2px;text-align:left"
                                                        runat="server" Width="104px" CssClass="Pcov1Labels">City (Optional)</asp:Label>
                                                    <asp:TextBox ID="txtCity" 
                                                        Style="Z-INDEX: 108; POSITION: absolute; TOP: 96px; LEFT: 123px; text-align:left; width: 215px;" TabIndex="6"
                                                        runat="server" MaxLength="20"></asp:TextBox>

                                                    <asp:Label ID="lblState" Style="Z-INDEX: 103; POSITION: absolute; TOP: 136px; LEFT: 2px;text-align:left"
                                                        runat="server" Width="107px" CssClass="Pcov1Labels">State (Optional)</asp:Label>
                                                    <asp:TextBox ID="txtState" Style="Z-INDEX: 104; POSITION: absolute; TOP: 136px; LEFT: 123px"
                                                        TabIndex="7" runat="server" Width="48px" MaxLength="2"></asp:TextBox>

                                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</P>
												<P><asp:placeholder id="plhEName" runat="server"></asp:placeholder></P>
												<P><asp:placeholder id="plhDARequired" runat="server"></asp:placeholder>
                                                    <asp:placeholder id="plhDARegDate" runat="server"></asp:placeholder></P>
												<P><asp:placeholder id="plhDARegFormat" runat="server"></asp:placeholder></P>
												<P><asp:placeholder id="plhCityRegFormat" runat="server"></asp:placeholder><asp:placeholder id="plhStateRegFormat" runat="server"></asp:placeholder></P>
												
                                            </fieldset>
                                                
										</td>
                                          
										<td>
                                            <asp:button id="btnBeginSearch" runat="server" tabIndex="11" Width="90px" 
                                                Text="Begin Search" Height="26px" BackColor="LightSteelBlue" ></asp:button>

										</td>
                                                                        
										<td>
											<fieldset style="POSITION: relative; WIDTH: 428px; HEIGHT: 192px;text-align:left">
												<P><br>
													<asp:label id="lblFileNumber" style="Z-INDEX: 112; POSITION: relative; TOP: 0px; LEFT: 80px"
														runat="server" CssClass="Pcov1Labels" Height="8px">Coverage ID</asp:label>
                                                    <asp:textbox id="txtFileNumber" style="Z-INDEX: 113; POSITION: relative; TOP: 0px; LEFT: 98px"
														tabIndex="8" runat="server" MaxLength="7"></asp:textbox><asp:placeholder id="plhFileNum" runat="server"></asp:placeholder><asp:placeholder id="plhFileNumFormat" runat="server"></asp:placeholder></P>
												<P><br>
													<asp:label id="lblFileAccidentDate" style="Z-INDEX: 114; POSITION: relative; TOP: 0px; LEFT: 0px"
														runat="server" CssClass="Pcov1Labels">Date of Accident(Optional)</asp:label>
                                                        
                                                    <asp:textbox id="txtFAccidentDate" style="Z-INDEX: 115; POSITION: relative; TOP: 0px; LEFT: 5px; height: 22px;"
														tabIndex="9" runat="server" Width="98px" MaxLength="10" CssClass="Pcov1Labels"></asp:textbox>
                                                        
                                                        <asp:ImageButton ID="imgCalendar1" runat="server" CausesValidation="false"  
                                                        style="left:3px; POSITION: relative; TOP: 0px; height: 26px;" TabIndex="10" 
                                                        ImageUrl="~\Images\Calendar.png" Width="25" ImageAlign="Top" />        

                                                    <cc1:CalendarExtender ID="calDate1" runat="server" Format="MM/dd/yyyy" PopupButtonID="imgCalendar1" PopupPosition="TopRight" TargetControlID="txtFAccidentDate" />


                                                    <asp:placeholder id="plhAccDateValid" runat="server"></asp:placeholder>
                                                    <asp:placeholder id="plhAccDateFormat" runat="server"></asp:placeholder>

												</P>
			                                </fieldset>
										</td>

                                    </tr>                                   										
                                       
								</table>

                                    

								</td>
								<td align="center" width="3%"></td>
							</tr>

							<tr>
								<td align="center" colSpan="3">
									<hr noShade="noshade" SIZE="1">
								</td>
                            </tr>
							
                            <tr>    
                                                     
								<td align="center" width="20%"></td>
                                
								<td align="center" width="60%" colSpan="2">
									<asp:validationsummary id="vldSummary" runat="server" Width="958px" HeaderText="Please fix the following errors:"
									 cssclass="vldSummary"></asp:validationsummary>
								</td>
								<td align="center" width="20%"></td>
                                
							</tr>
                           
						</table>
					</td>
				</tr>
			</table>
		</form>
	</body>
</HTML>

Open in new window

0
Julian HansenCommented:
The source you posted is your servers side ASP source. What I am referring to is this

1. Open your browser
2. Browse to the page you are working with
3. Right click the page and say View Source
4. Cut and past the HTML from the source window here

Please use code tags to paste your source. You can do this by highlighting the code in the editor and clicking the Code button in the menu above.
0
jknj72Author Commented:
ok I have the code below. I have 2 different fieldsets and 2 radio buttons. When I click on one radio button I want the 1 fieldset enabled and focus on the first field and the other fieldset disabled and vice versa. I am using update panels and want to trigger the same event to run and use the logic in the code behind. It works when it loads and then I can click the other radio button and it works correctly but then if I try to click back to the original radio button nothing happens(In firefox). This doesnt work in IE at all. It doesnt set focus and I cant click in the text box. If I use the Emulator tool it works in IE 8 but nothing higher. . Sorry, I know Im all over the place here but I took out the javascript that was running and added the update panels around each of the fieldsets. Is this the right approach or should I just have 1 update panel because I want it to call the same event because I have the radio buttons in a group. Below is the View Source code run in IE and I have attached the markup.
Thanks for your patience

Private Sub RadioBtn_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles rbtnNameSearch.CheckedChanged, rbtnFileSearch.CheckedChanged
        CheckRadioBtn()
    End Sub

Anyway I have attached the markup and then I attached the View Source


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<HTML>
	<HEAD id="HEAD1"><title>
	Proof Of Coverage
</title><link href="MainCss.css" type="text/css" rel="stylesheet" />
       <!--<meta content="False" name="vs_showGrid" /><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 id="Link1" rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
			<!--NAME="Link1">-->
		<link id="Link2" rel="icon" href="favicon.ico" type="image/ico" />
            <!--NAME="Link2">-->

		<script type="text/javascript" language="javascript">
		    var _gaq = _gaq || [];
		    _gaq.push(['_setAccount', 'UA-9077260-5']);
		    _gaq.push(['_trackPageview']);

		    (function () {
		        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
		        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
		        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
		    })();

		</script>	    
	    
	<link href="/WebResource.axd?d=Cg7vFR8z7AOpJNkNzNQRWEAjIC7FIJOFjU45b_8gGQOXHadQSSN-1_BSaMDhFramCE1EGO16myg358xiThwVjcWyP4LqWldBR-R6uI6-yNu0xppcqnUMibNzKaryX4iNIGiY9DT403YZR0kZ5zaPXtKNid14V61Ah3XtMy00dzU1&amp;t=635730008181229390" type="text/css" rel="stylesheet" /><link href="/WebResource.axd?d=U-IiEkmYbAILvUzKwIUw3yxH2ecqqWDYuej3O0CiWvnfgdtHUD9qxM3GN4XgacaUfc92tnKyVUtAHPid9zWglvdnvHWFx_aGDcjecPCMIOQVQzR6R6VE_SYx0uLdfGUVVJshTBr9i15Zj3DPGFUvlERMr_Z2PRdZc067a5Tsmg81&amp;t=635730008181229390" type="text/css" rel="stylesheet" /></HEAD>
	<body bgColor="#ffffff" background="./images/testbg.gif" style="margin-top:0" >
		<form method="post" action="PcovA.aspx" onsubmit="javascript:return WebForm_OnSubmit();" onkeypress="javascript:return WebForm_FireDefaultButton(event, 'btnBeginSearch')" id="Form1">
<div class="aspNetHidden">
<input type="hidden" name="__LASTFOCUS" id="__LASTFOCUS" value="" />
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMTk3OTgwMTE0OQ8WAh4JU2NyZWVuUmVzBQkxOTIweDEwODAWAgIDD2QWCAILD2QWAgIBDw8WAh4EVGV4dAUXOC8xMy8yMDE1IGF0IDQ6MTM6MjIgUE1kZAIPDw8WAh8BBasBWW91IG1heSBlbnRlciBhbnkgd29yZChzKSBvciBwYXJ0IG9mIGEgd29yZCB0aGF0IGFwcGVhciBpbiB0aGUgY29tbWVyY2lhbCBuYW1lIG9yIGluZGl2aWR1YWwgbmFtZSBvZiB0aGUgZW1wbG95ZXIgZm9yIHdoaWNoIHlvdSBhcmUgcmVxdWVzdGluZyBwb2xpY3kgY292ZXJhZ2UgaW5mb3JtYXRpb24uZGQCFw9kFgJmD2QWAgILDxYCHgdFbmFibGVkZ2QCGw9kFgJmD2QWCAIDDw8WBB8BZR8CaGRkAgkPDxYEHwFlHwJoZGQCCw8PFgIfAmhkZAINDxYCHwJoZBgBBR5fX0NvbnRyb2xzUmVxdWlyZVBvc3RCYWNrS2V5X18WBQUOcmJ0bk5hbWVTZWFyY2gFDnJidG5GaWxlU2VhcmNoBQ5yYnRuRmlsZVNlYXJjaAULaW1nQ2FsZW5kYXIFDGltZ0NhbGVuZGFyMbl/euu4gbJmi2kW9u6oEG1fZx71uU12g25dBlnXhyjZ" />
</div>

<script type="text/javascript">
//<![CDATA[
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="/WebResource.axd?d=h4C5n5BNQFEtu4daHknxXXUE1CR_fEYR87hc5O5QExHTpWEtA_5FltHjrBCxbPg2mJ1PSrJ1wmxjoT1PSudzZGlBiI4OLK9tzu_0_LHTgQk1&amp;t=635586505120000000" type="text/javascript"></script>


<script src="/ScriptResource.axd?d=EimagEJIctPnWlnLDUz2lPybSHNJMhKcUELnI59o37w8oj0etctGnNqv6Gbb8p5SAYTJGpGAVCMeXPaCIqkg_pabo1dyFf_ag4w9R4Zv0zi7j-bFJvs6ooanZrHmAxEo57EVEk5TLmZqj_L_z7vYycl06lUFDN55D7BBGy4R1FE1&amp;t=5303ace5" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=Q3c8cEBM3CYbZ4lwdGiF0LbsHauMV5QwPgcV8HoxIXcIZlPXSVOpGXAZY2X1aEJAKLwpyelP5qIyjz8C3N7r37G2Mp_a--lV_dFJrqZacaXXp4kYfKy5QKYjvW2Mqh0GWRtANI57yj-LHR5GcOu15-zmuvlS65gliLjimpPI-sIApiJYhMedv5Zzq98htess0&amp;t=7b689585" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
if (typeof(Sys) === 'undefined') throw new Error('ASP.NET Ajax client-side framework failed to load.');
//]]>
</script>

<script src="/ScriptResource.axd?d=pTBTgtO9C3i3nR4mrCnZwwzgugFv6YuY30W3Za9s73WgPBSU3fTI_6ti3GSDFNt2pSDsHpk-nXzMaSWc1IUMZnKPcUwruCC_T00gPf5knFKuBzgm8vJk_JjCApttPSxjDGBAZanTrefCcMAmZF60vP3Vsz5eJnv9aG6aShzaf-nyYPmu6uf-UE98q0SKC27_0&amp;t=7b689585" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=tcgSOhTTLZNMQDGp_jY1Cl0cf84z2VWAjeOimtfpI3Pin-YydIVDYCGFkpG02bXS5b2W9lmuZhoNDRq0GiIvgY-Q2de4yD82uUY6Vuo8ZvpLCPwDj-8fKc8cj_Cp0jHn514JM4V0auVPxzUU3b795Q2&amp;t=5d547c40" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=3ZW7I0kzAXLK10hQiqhS6z_oHYqzeQm5UA0gbMvkAp0jix-ZilIk94CatOjPbvXjFUDYJ_egGeVzoaxdM6zkQLWXL94SOQH6eOSH1DwDdrdIMY15IDF_3Xr8pVI3NJHC8xkpyxJhAKGxRmNW3eyxtQ2&amp;t=5d547c40" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=fbnaGEbRqq50nh19eF9aJYsxID_AZQdKNXXmeTNyBzwJh74GIZLUPnEBBwchOscIii9An-h8iY13-hyXrB-cMuR1eMHu9TwcoePA2IpWLErdqKHQ1GvtW-4d6JnAPw7S0&amp;t=5d547c40" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=nQUO1w-xNJ2BfFLusSXeexitB7ldO4j2q4IOJwVj001r_VZiGZ_uBeWx9-UI0fr7wh18FI6MOXTk_39n7E7wPs5hrQUVDCuygf97gRXQ5raoOfePS-tm5yeX-ZQ2d5H1BFx2ax36ZS3kPIv5OOxW0g2&amp;t=5d547c40" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=kARMw5iLLStRj0GQo7LCtW95RIfNbSGGPYjCE77y6xgVTC5aRWvAf6YnXJ3DWxLP6aCfhCuyGjg5Ah5Srw-JLhzT_Gft6NPAFLU-KECQEZ5xCqb5xUwbtbs3LapBMlcFoVcCkrIxi1ffrpYJUVeFbg2&amp;t=5d547c40" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=D_SFuBGnhWl1FSGO7uAT9tLpO-VweG63l9fyQiuGWQgkM3yS3u_Bvr7vWRoaRtgb7AIJ88Pb_ZuFDaHlPKEv42S5BN1N5zPVycrw08i5a-mM-ckfA5AnP42rmVEJzMv9gLMmVCSGvgD77eKGBWkjFA2&amp;t=5d547c40" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=w4Mm3uHduQ2JCeXxgHbZFbqUHqRMV0jyP5mvSr-5PfW9JyUORdd75N9_MYGMNQKeEWUN-GJasjTniceGfMqWKiq9-mw40MHLlMnuLY68E39MtL-ONOv0m42evFaDNkDaYTM-Md7vn9Omg9Uc-x2udw2&amp;t=5d547c40" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=kmv5ib9Z8fHGo4Mf_rYvRspuD8LW0LnG9VBQoiBTfWNouJhfhS6vKUplPIAo_6WZV3J0BhqI-g2ttAw32bIpm9JZRJY4iurgpXE2v_pnSg2Qp5wDOxmGaoEFe964c7Ji0&amp;t=5d547c40" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=JCOP5nX55lBe4MSYeVY9CBcHCDMWIaqb15fHQSYFiKS2HdYR3YaOf5IE0NQUgngz6cSU2s9uI_0kL8mUEwPYnVQbNkRZhm8h6iasvKe6JoeikNuzMDkpDUevHXzw9eN-0&amp;t=5d547c40" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=4Q5c4XIBqx6gvkseHl0zKAUDYoWcszZdRIporROAvvCgiJ5_TBYl5WQxdg9yuYIT0zA5hLCkjeLOw5510MwjAadqxDBiMgIWl7uZRq7uekDYB3DW5vcS0Wyfm8S_C82KmOoXwnJT809ln_4gwVpnmw2&amp;t=5d547c40" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=tdjW2r5lYgCMUb2DlkyeGMvY-FmvyZqmGtx9v6jqMfPY5-fxP98H5PhtUmcn7o7gHVW3dntU-qHxHkylCZ0YH9va0pWMpHq2-K6mcOIOg-u3DGcFuyuw_4sE7FdQZmN00&amp;t=5d547c40" type="text/javascript"></script>
<script src="/WebResource.axd?d=Tre_MeIKqnXkRhp9-JMPzKuhS0-8o0CHVuTd64iy3i9iBhNfrSMWpps_Au3A12G8JW-vcGNW1HJlHcxh4HrbFzIQOMmfYGFTFGjxoOTeb481&amp;t=635586505120000000" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
function WebForm_OnSubmit() {
if (typeof(ValidatorOnSubmit) == "function" && ValidatorOnSubmit() == false) return false;
return true;
}
//]]>
</script>

            <script type="text/javascript">
//<![CDATA[
Sys.WebForms.PageRequestManager._initialize('ScriptManager1', 'Form1', ['tupName','upName','tupFileName','upFileName'], ['rbtnNameSearch','rbtnNameSearch','rbtnFileSearch','rbtnFileSearch'], [], 90, '');
//]]>
</script>
   

            <table id="Table2" align="left" style="background-position: left; height: 500px; vertical-align: top; text-align:left" 
                cellspacing="0" cellpadding="0" width="900px" border="0" >
				<tr>
					<td width="3%" height="1"></td>
					<td width="8%" height="1"></td>
					<td width="86%" height="1"></td>
					<td width="3%" height="1" ></td>
				</tr>
				<tr>
					<td width="3%">&nbsp;</td>
					<td vAlign="middle" align="left" width="8%" height="73" rowSpan="3">
						<!--***************************************Test Image*********************************-->
                        <a style="BORDER-BOTTOM-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-TOP-STYLE: none; BORDER-LEFT-STYLE: none"
							href="http://www.njcrib.com"> 
							<!--<IMG height="113" src="nj3.gif" width="65" border="0">-->
                            <!--<IMG height="113" src="./images/nj3.gif" width="65" border="0">-->
                            <img id="Image1" src="images/nj3.gif" style="border-style:None;height:113px;width:65px;" />
                        </a>

					</td>
                    
					<td vAlign="middle" align="left" colSpan="2" height="73">
						<!--***************************************Test Image*********************************-->
                        <a style="BORDER-BOTTOM-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-TOP-STYLE: none; BORDER-LEFT-STYLE: none"
							href="http://www.njcrib.com"> 
							<!--<IMG height="50" src="logo.gif" width="180" border="0">-->
                            <!--<IMG height="50" src="./images/logo.gif" width="180" border="0">-->
                            <img id="Image2" src="images/logo.gif" style="height:50px;width:180px;border:0" />             					
                        </a>

					</td>
                           
				</tr>
				<tr>
					<td width="100%" colSpan="4" height="10"></td>
				</tr>
				<tr>
					<td width="100%" colSpan="4" height="10"></td>
				</tr>
				<tr>
					<td colspan="4">
						<table width="100%" border="0" cellspacing="0" cellpadding="0" ID="Table3">
							<tr align="left">
								<td width="1%">
                                    <img id="Image4" src="images/testl.gif" />
								</td>
								<td width="5%" bgcolor="#ffffff"></td>
								<td width="88%" bgColor="#ffffff">&nbsp;</td>
								<td width="5%" bgcolor="#ffffff"></td>
								<td align="right" width="1%">
                                    <img id="Image3" src="images/testr.gif" />
                                </td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td vAlign="top" align="center" colSpan="4">
						<table id="Table5" cellSpacing="0" cellPadding="0" width="100%" align="center" bgColor="#ffffff"
							border="0" style="vertical-align:top">  
							<tr vAlign="top">
								<td width="3%">&nbsp;</td>
								<td align="center" width="94%" colspan="2">
                                    <span class="Where">
										<P>
                                            <br>											
											POLICY COVERAGE SEARCH
                                            <br>
										</P>
                                        <hr width="90%" noshade="noshade" size="3" />
									</span>
									<table id="divTable" width="100%" border="0">
										<tr>
											<td width="10%">&nbsp;</td>
											<td width="80%" align="center">
                                                 

<table id="Table1" style="width: 400px; height: 34px" cellspacing="1" cellpadding="1"
    width="400" border="0">
    <tr>
        <td class="DateAsOf" align="center">Data Current as of:&nbsp;&nbsp;
            <span id="FileUploadDate1_lblDateAsOf" style="display:inline-block;font-weight:bold;width:150px;">8/13/2015 at 4:13:22 PM</span>
            <br />
            <!--<span><font style="color:Red" ><b>**The Search Data is Currently Under Development and will be Released Soon.** </b></font></span>		-->

        </td>
    </tr>
</table>

											</td>
											<td width="10%">&nbsp;</td>
										</tr>
										<tr>
											<td width="10%">&nbsp;</td>
											<td width="80%">
                                                <div align="center"><br>
													<span id="lbldescript1" class="Pcov1TopLabel">NOTE: Policy coverage information reflects only policies with effective dates within the last 72 months.</span>
													<HR style="width: 98.53%; height: 4px" width="98.53%" noShade="noshade" size="3">
												</div>
											</td>
											<td width="10%">&nbsp;</td>
										</tr>
										<tr>
											<td width="10%">&nbsp;</td>
											<td width="80%">
                                                <div align="center">
                                                    <span id="lblDescript3" class="Pcov1LabelInfo">You may enter any word(s) or part of a word that appear in the commercial name or individual name of the employer for which you are requesting policy coverage information.</span>
											    </div>
											</td>
											<td width="10%">&nbsp;</td>
										</tr>
									</table>
								</td>
								<td width="3%">&nbsp;</td>
							</tr>
							<tr>
								<td width="3%">&nbsp;</td>
								<td align="center" width="94%"></td>
								<td width="3%">&nbsp;</td>
							</tr>
                            
							<tr>
                                
								<td width="3%">&nbsp;</td>
								<td vAlign="top" align="center" width="94%" colSpan="2">

								<table style="WIDTH: 966px; HEIGHT: 241px" >
                                    
									<tr>

										<td style="HEIGHT: 23px" colSpan="3">

                                            <span class="Pcov1Labels" style="Z-INDEX: 97; POSITION: relative; TOP: 0px; LEFT: 130px"><input id="rbtnNameSearch" type="radio" name="WhichSearch" value="rbtnNameSearch" checked="checked" tabindex="1" /><label for="rbtnNameSearch">Name Search</label></span>
                                            <span id="lblSeparator" class="Pcov1LabelInfo" style="Z-INDEX: 98; POSITION: relative; LEFT: 355px">OR</span>
                                            <span class="Pcov1Labels" style="Z-INDEX: 99; POSITION: relative; TOP: 0px; LEFT: 550px"><input id="rbtnFileSearch" type="radio" name="WhichSearch" value="rbtnFileSearch" onclick="javascript:setTimeout(&#39;__doPostBack(\&#39;rbtnFileSearch\&#39;,\&#39;\&#39;)&#39;, 0)" tabindex="2" /><label for="rbtnFileSearch">Coverage ID Search</label></span>
                                                                                   
                                        </td>
                                    </tr>
                                       
									<tr>										
                                            
										<td>
                                            <div id="upName">
	
                                                    <fieldset style="POSITION: relative; WIDTH: 421px; HEIGHT: 192px; text-align: right">

                                                        <p>
                                                            <span id="lblEmployerName" class="Pcov1Labels" style="display:inline-block;height:24px;width:108px;Z-INDEX: 101; POSITION: absolute; TOP: 16px;
                                                                left: 2px; text-align: left">Employer Name</span>

                                                        </p>
                                                        <p>
                                                         
                                                            <input name="txtName" type="text" maxlength="60" id="txtName" tabindex="3" style="Z-INDEX: 113; POSITION: absolute; TOP: 16px; LEFT: 123px;
                                                                width: 245px;" />
                                                            <span id="lblDateOfAccident" class="Pcov1Labels" style="Z-INDEX: 107; POSITION: absolute; TOP: 56px;
                                                                LEFT: 2px; right: 314px; text-align: left">Date of Accident</span>

                                                            <input name="txtDate" type="text" maxlength="10" id="txtDate" tabindex="5" style="width:100px;Z-INDEX: 106; POSITION: absolute; TOP: 56px; LEFT: 123px;
                                                                width: 98px;" />

                                                            <input type="image" name="imgCalendar" id="imgCalendar" tabindex="5" src="Images/Calendar.png" align="top" style="width:25px;z-index: 107; left: 230px; POSITION: absolute; TOP: 56px; height: 26px;" />

                                                            

                                                            <span id="lblCity" class="Pcov1Labels" style="display:inline-block;width:104px;Z-INDEX: 105; POSITION: absolute; TOP: 96px; LEFT: 2px;
                                                                text-align: left">City (Optional)</span>
                                                            <input name="txtCity" type="text" maxlength="20" id="txtCity" tabindex="6" style="Z-INDEX: 108; POSITION: absolute; TOP: 96px; LEFT: 123px; text-align: left;
                                                                width: 215px;" />

                                                            <span id="lblState" class="Pcov1Labels" style="display:inline-block;width:107px;Z-INDEX: 103; POSITION: absolute; TOP: 136px; LEFT: 2px;
                                                                text-align: left">State (Optional)</span>
                                                            <input name="txtState" type="text" maxlength="2" id="txtState" tabindex="7" style="width:48px;Z-INDEX: 104; POSITION: absolute; TOP: 136px; LEFT: 123px" />

                                                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                        </p>
                                                        <p>
                                                            <span id="rqdName" style="display:none;">*</span>
                                                        </p>
                                                        <p>
                                                            <span id="rqdDate" style="display:none;">*</span>
                                                            <span id="rglrEffDate" style="display:none;">*</span>
                                                        </p>
                                                        <p>
                                                            <span id="rglrDate" style="display:none;">*</span>
                                                        </p>
                                                        <p>
                                                            <span id="rglrCity" style="display:none;">*</span>
                                                            <span id="rglrState" style="display:none;">*</span>
                                                        </p>

                                                    </fieldset>

                                                
</div>
										</td>
                                          
										<td>
                                            <input type="submit" name="btnBeginSearch" value="Begin Search" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;btnBeginSearch&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))" id="btnBeginSearch" tabindex="11" style="background-color:LightSteelBlue;height:26px;width:90px;" />

										</td>
                                                                        
										<td>
                                            <div id="upFileName">
	
											       <fieldset style="POSITION: relative; WIDTH: 428px; HEIGHT: 192px;text-align:left">
												    <P><br>
													    <span id="lblFileNumber" class="Pcov1Labels" style="display:inline-block;height:8px;Z-INDEX: 112; POSITION: relative; TOP: 0px; LEFT: 80px">Coverage ID</span>
                                                        <input name="txtFileNumber" type="text" maxlength="7" id="txtFileNumber" disabled="disabled" tabindex="8" class="aspNetDisabled" style="Z-INDEX: 113; POSITION: relative; TOP: 0px; LEFT: 98px" /></P>
												    <P><br>
													    <span id="lblFileAccidentDate" class="Pcov1Labels" style="Z-INDEX: 114; POSITION: relative; TOP: 0px; LEFT: 0px">Date of Accident(Optional)</span>
                                                        
                                                        <input name="txtFAccidentDate" type="text" maxlength="10" id="txtFAccidentDate" disabled="disabled" tabindex="9" class="aspNetDisabled Pcov1Labels" style="width:98px;Z-INDEX: 115; POSITION: relative; TOP: 0px; LEFT: 5px; height: 22px;" />
                                                        
                                                            <input type="image" name="imgCalendar1" id="imgCalendar1" disabled="disabled" tabindex="10" class="aspNetDisabled" src="Images/Calendar.png" align="top" style="width:25px;left:3px; POSITION: relative; TOP: 0px; height: 26px;" />        

                                                        


                                                        
                                                        

												    </P>
			                                        </fieldset>
                                                
                                                  
</div>
										</td>

                                    </tr>                                   										
                                       
								</table>

                                    

								</td>
								<td align="center" width="3%"></td>
							</tr>

							<tr>
								<td align="center" colSpan="3">
									<hr noShade="noshade" SIZE="1">
								</td>
                            </tr>
							
                            <tr>    
                                                     
								<td align="center" width="20%"></td>
                                
								<td align="center" width="60%" colSpan="2">
									<div id="vldSummary" class="vldSummary" style="width:958px;display:none;">

</div>
								</td>
								<td align="center" width="20%"></td>
                                
							</tr>
                           
							<tr>
								<td  valign="top" align="center" style="width:100%" colSpan="4" >
                                    
									<a style="BORDER-BOTTOM-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-TOP-STYLE:none; BORDER-LEFT-STYLE: none"
										href="http://www.njcrib.com">Home</a>
                                                               
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		
<script type="text/javascript">
//<![CDATA[
var Page_ValidationSummaries =  new Array(document.getElementById("vldSummary"));
var Page_Validators =  new Array(document.getElementById("rqdName"), document.getElementById("rqdDate"), document.getElementById("rglrEffDate"), document.getElementById("rglrDate"), document.getElementById("rglrCity"), document.getElementById("rglrState"));
//]]>
</script>

<script type="text/javascript">
//<![CDATA[
var rqdName = document.all ? document.all["rqdName"] : document.getElementById("rqdName");
rqdName.controltovalidate = "txtName";
rqdName.errormessage = "An Employer Name must be entered!";
rqdName.display = "Dynamic";
rqdName.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
rqdName.initialvalue = "";
var rqdDate = document.all ? document.all["rqdDate"] : document.getElementById("rqdDate");
rqdDate.controltovalidate = "txtDate";
rqdDate.errormessage = "An Accident Date must be entered!";
rqdDate.display = "Dynamic";
rqdDate.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
rqdDate.initialvalue = "";
var rglrEffDate = document.all ? document.all["rglrEffDate"] : document.getElementById("rglrEffDate");
rglrEffDate.controltovalidate = "txtDate";
rglrEffDate.errormessage = "The Date of Accident is Invalid, Please re-enter!";
rglrEffDate.display = "Dynamic";
rglrEffDate.evaluationfunction = "RegularExpressionValidatorEvaluateIsValid";
rglrEffDate.validationexpression = "^(?=\\d)(?:(?:(?:(?:(?:0?[13578]|1[02])(\\/|-|\\.)31)\\1|(?:(?:0?[1,3-9]|1[0-2])(\\/|-|\\.)(?:29|30)\\2))(?:(?:1[6-9]|[2-9]\\d)?\\d{2})|(?:0?2(\\/|-|\\.)29\\3(?:(?:(?:1[6-9]|[2-9]\\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))|(?:(?:0?[1-9])|(?:1[0-2]))(\\/|-|\\.)(?:0?[1-9]|1\\d|2[0-8])\\4(?:(?:1[6-9]|[2-9]\\d)?\\d{2}))($|\\ (?=\\d)))";
var rglrDate = document.all ? document.all["rglrDate"] : document.getElementById("rglrDate");
rglrDate.controltovalidate = "txtDate";
rglrDate.errormessage = "Accident Date must be in MM/DD/YYYY format!";
rglrDate.display = "Dynamic";
rglrDate.evaluationfunction = "RegularExpressionValidatorEvaluateIsValid";
rglrDate.validationexpression = "(\\d\\d)/(\\d\\d)/(\\d\\d\\d\\d)";
var rglrCity = document.all ? document.all["rglrCity"] : document.getElementById("rglrCity");
rglrCity.controltovalidate = "txtCity";
rglrCity.errormessage = "City must be Alphabetic Only!";
rglrCity.display = "Dynamic";
rglrCity.evaluationfunction = "RegularExpressionValidatorEvaluateIsValid";
rglrCity.validationexpression = "^([a-zA-z\\s]{3,20})$";
var rglrState = document.all ? document.all["rglrState"] : document.getElementById("rglrState");
rglrState.controltovalidate = "txtState";
rglrState.errormessage = "Must use a State abbreviation only!";
rglrState.display = "Dynamic";
rglrState.evaluationfunction = "RegularExpressionValidatorEvaluateIsValid";
rglrState.validationexpression = "^[a-zA-Z]+$";
var vldSummary = document.all ? document.all["vldSummary"] : document.getElementById("vldSummary");
vldSummary.headertext = "Please fix the following errors:";
//]]>
</script>

<div class="aspNetHidden">

	<input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="46886D68" />
	<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEdAAxR8eWjrkIlJnrKzYiH13IzVqMQhVUjmnalLoGe3KU4UptmKlDFcrlw6oSQUDslVbGjOglmm5fGSk5UkpFsfK4eQmTnPkxgOAq63YiVY5iwppYZRpDocmMDJ11EmXZJzAgrmtCHLRrNXCrKIKqPA4/Y0e8jaXD6bGe5WWlHrre4g8nFgSocznphOAJIZmk9+LQvYxE9WjteRYZnZ6vmmGUR+3vJtv+vtDVQ/SlRjHmZOMEkg3Thyaawpa0mXg7o55DZSjVyc1KGzQ3QD5biJ3BCIijkJCykdkUPGhmqryZbdA==" />
</div>

<script type="text/javascript">
//<![CDATA[

var Page_ValidationActive = false;
if (typeof(ValidatorOnLoad) == "function") {
    ValidatorOnLoad();
}

function ValidatorOnSubmit() {
    if (Page_ValidationActive) {
        return ValidatorCommonOnSubmit();
    }
    else {
        return true;
    }
}
        
(function(id) {
    var e = document.getElementById(id);
    if (e) {
        e.dispose = function() {
            Array.remove(Page_ValidationSummaries, document.getElementById(id));
        }
        e = null;
    }
})('vldSummary');
WebForm_AutoFocus('txtName');Sys.Application.add_init(function() {
    $create(Sys.Extended.UI.CalendarBehavior, {"button":$get("imgCalendar"),"format":"MM/dd/yyyy","id":"calDate","popupPosition":3}, null, null, $get("txtDate"));
});

document.getElementById('rqdName').dispose = function() {
    Array.remove(Page_Validators, document.getElementById('rqdName'));
}

document.getElementById('rqdDate').dispose = function() {
    Array.remove(Page_Validators, document.getElementById('rqdDate'));
}

document.getElementById('rglrEffDate').dispose = function() {
    Array.remove(Page_Validators, document.getElementById('rglrEffDate'));
}

document.getElementById('rglrDate').dispose = function() {
    Array.remove(Page_Validators, document.getElementById('rglrDate'));
}

document.getElementById('rglrCity').dispose = function() {
    Array.remove(Page_Validators, document.getElementById('rglrCity'));
}

document.getElementById('rglrState').dispose = function() {
    Array.remove(Page_Validators, document.getElementById('rglrState'));
}
//]]>
</script>
</form>
	</body>
</HTML>

Open in new window

Markup.txt
0
Ryan ChongCommented:
I can't see “onload” in your output above

<body bgColor="#ffffff" background="./images/testbg.gif" style="margin-top:0" onload="sf()">

can you repost with the one with "onload" embedded in your HTML codes?
0
Julian HansenCommented:
I can't see any stf function in that code.

Are you sure it is being created?
0
jknj72Author Commented:
I took that code out and was trying to use update panels instead. But I just put it back in and it works fine in FF but trying to run in IE I get the following error. When I click continue here is the View Source

Thanks

Error in IE


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<HTML>
	<HEAD id="HEAD1"><title>
	Proof Of Coverage
</title><link href="MainCss.css" type="text/css" rel="stylesheet" />
       <!--<meta content="False" name="vs_showGrid" /><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" />-->

        <script type="text/javascript" language="javascript">      

            function showkey()                
	        {
		        if (event.keyCode == 13)
		        {
			        switch(document.activeElement.id)
			        {
				        // txtname
				        case 'txtName': document.Form1.btnBeginSearch.focus(); break;
				        // txtDate
				        case 'txtDate' : document.Form1.btnBeginSearch.focus(); break;
				        // txtCity
				        case 'txtCity' : document.Form1.btnBeginSearch.focus(); break;
				        // txtState
				        case 'txtState' : document.Form1.btnBeginSearch.focus(); break;
				        // txtState
				        case 'txtFileNumber' : document.Form1.btnBeginSearch.focus(); break;
				        // txtState
				        case 'txtFAccidentDate' : document.Form1.btnBeginSearch.focus(); break;
				        // btnBeginSearch
				        case 'btnBeginSearch' : document.Form1.btnBeginSearch.focus(); break;
			        }
		        }	
	        }
	        document.onkeydown=showkey;
        </script>
       
        <link id="Link1" rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
			<!--NAME="Link1">-->
		<link id="Link2" rel="icon" href="favicon.ico" type="image/ico" />
            <!--NAME="Link2">-->

		<script type="text/javascript" language="javascript">
		    var _gaq = _gaq || [];
		    _gaq.push(['_setAccount', 'UA-9077260-5']);
		    _gaq.push(['_trackPageview']);

		    (function () {
		        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
		        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
		        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
		    })();

		</script>	    
	    
	<link href="/WebResource.axd?d=Cg7vFR8z7AOpJNkNzNQRWEAjIC7FIJOFjU45b_8gGQOXHadQSSN-1_BSaMDhFramCE1EGO16myg358xiThwVjcWyP4LqWldBR-R6uI6-yNu0xppcqnUMibNzKaryX4iNIGiY9DT403YZR0kZ5zaPXtKNid14V61Ah3XtMy00dzU1&amp;t=635730008181229390" type="text/css" rel="stylesheet" /><link href="/WebResource.axd?d=U-IiEkmYbAILvUzKwIUw3yxH2ecqqWDYuej3O0CiWvnfgdtHUD9qxM3GN4XgacaUfc92tnKyVUtAHPid9zWglvdnvHWFx_aGDcjecPCMIOQVQzR6R6VE_SYx0uLdfGUVVJshTBr9i15Zj3DPGFUvlERMr_Z2PRdZc067a5Tsmg81&amp;t=635730008181229390" type="text/css" rel="stylesheet" /></HEAD>
	<body bgColor="#ffffff" background="./images/testbg.gif" style="margin-top:0" onload="sf()">
		<form method="post" action="PcovA.aspx" onsubmit="javascript:return WebForm_OnSubmit();" onkeypress="javascript:return WebForm_FireDefaultButton(event, 'btnBeginSearch')" id="Form1">
<div class="aspNetHidden">
<input type="hidden" name="__LASTFOCUS" id="__LASTFOCUS" value="" />
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTExMjgyOTg5OTgPFgIeCVNjcmVlblJlcwUJMTkyMHgxMDgwFgICAw9kFg4CCw9kFgICAQ8PFgIeBFRleHQFFzgvMTMvMjAxNSBhdCA0OjEzOjIyIFBNZGQCDw8PFgIfAQWrAVlvdSBtYXkgZW50ZXIgYW55IHdvcmQocykgb3IgcGFydCBvZiBhIHdvcmQgdGhhdCBhcHBlYXIgaW4gdGhlIGNvbW1lcmNpYWwgbmFtZSBvciBpbmRpdmlkdWFsIG5hbWUgb2YgdGhlIGVtcGxveWVyIGZvciB3aGljaCB5b3UgYXJlIHJlcXVlc3RpbmcgcG9saWN5IGNvdmVyYWdlIGluZm9ybWF0aW9uLmRkAhkPZBYCAgkPFgIeB0VuYWJsZWRnZAIrDw8WBB8BZR8CaGRkAjEPDxYEHwFlHwJoZGQCMw8PFgIfAmhkZAI1DxYCHwJoZBgBBR5fX0NvbnRyb2xzUmVxdWlyZVBvc3RCYWNrS2V5X18WBQUOcmJ0bk5hbWVTZWFyY2gFDnJidG5GaWxlU2VhcmNoBQ5yYnRuRmlsZVNlYXJjaAULaW1nQ2FsZW5kYXIFDGltZ0NhbGVuZGFyMSF022fGkitU0ARsQ9RL/YV3Ppb6oGvf0TuRAscAgTRp" />
</div>

<script type="text/javascript">
//<![CDATA[
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="/WebResource.axd?d=h4C5n5BNQFEtu4daHknxXXUE1CR_fEYR87hc5O5QExHTpWEtA_5FltHjrBCxbPg2mJ1PSrJ1wmxjoT1PSudzZGlBiI4OLK9tzu_0_LHTgQk1&amp;t=635586505120000000" type="text/javascript"></script>


<script src="/ScriptResource.axd?d=EimagEJIctPnWlnLDUz2lPybSHNJMhKcUELnI59o37w8oj0etctGnNqv6Gbb8p5SAYTJGpGAVCMeXPaCIqkg_pabo1dyFf_ag4w9R4Zv0zi7j-bFJvs6ooanZrHmAxEo57EVEk5TLmZqj_L_z7vYycl06lUFDN55D7BBGy4R1FE1&amp;t=5303ace5" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=Q3c8cEBM3CYbZ4lwdGiF0LbsHauMV5QwPgcV8HoxIXcIZlPXSVOpGXAZY2X1aEJAKLwpyelP5qIyjz8C3N7r37G2Mp_a--lV_dFJrqZacaXXp4kYfKy5QKYjvW2Mqh0GWRtANI57yj-LHR5GcOu15-zmuvlS65gliLjimpPI-sIApiJYhMedv5Zzq98htess0&amp;t=7b689585" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
if (typeof(Sys) === 'undefined') throw new Error('ASP.NET Ajax client-side framework failed to load.');
//]]>
</script>

<script src="/ScriptResource.axd?d=pTBTgtO9C3i3nR4mrCnZwwzgugFv6YuY30W3Za9s73WgPBSU3fTI_6ti3GSDFNt2pSDsHpk-nXzMaSWc1IUMZnKPcUwruCC_T00gPf5knFKuBzgm8vJk_JjCApttPSxjDGBAZanTrefCcMAmZF60vP3Vsz5eJnv9aG6aShzaf-nyYPmu6uf-UE98q0SKC27_0&amp;t=7b689585" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=tcgSOhTTLZNMQDGp_jY1Cl0cf84z2VWAjeOimtfpI3Pin-YydIVDYCGFkpG02bXS5b2W9lmuZhoNDRq0GiIvgY-Q2de4yD82uUY6Vuo8ZvpLCPwDj-8fKc8cj_Cp0jHn514JM4V0auVPxzUU3b795Q2&amp;t=5d547c40" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=3ZW7I0kzAXLK10hQiqhS6z_oHYqzeQm5UA0gbMvkAp0jix-ZilIk94CatOjPbvXjFUDYJ_egGeVzoaxdM6zkQLWXL94SOQH6eOSH1DwDdrdIMY15IDF_3Xr8pVI3NJHC8xkpyxJhAKGxRmNW3eyxtQ2&amp;t=5d547c40" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=fbnaGEbRqq50nh19eF9aJYsxID_AZQdKNXXmeTNyBzwJh74GIZLUPnEBBwchOscIii9An-h8iY13-hyXrB-cMuR1eMHu9TwcoePA2IpWLErdqKHQ1GvtW-4d6JnAPw7S0&amp;t=5d547c40" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=nQUO1w-xNJ2BfFLusSXeexitB7ldO4j2q4IOJwVj001r_VZiGZ_uBeWx9-UI0fr7wh18FI6MOXTk_39n7E7wPs5hrQUVDCuygf97gRXQ5raoOfePS-tm5yeX-ZQ2d5H1BFx2ax36ZS3kPIv5OOxW0g2&amp;t=5d547c40" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=kARMw5iLLStRj0GQo7LCtW95RIfNbSGGPYjCE77y6xgVTC5aRWvAf6YnXJ3DWxLP6aCfhCuyGjg5Ah5Srw-JLhzT_Gft6NPAFLU-KECQEZ5xCqb5xUwbtbs3LapBMlcFoVcCkrIxi1ffrpYJUVeFbg2&amp;t=5d547c40" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=D_SFuBGnhWl1FSGO7uAT9tLpO-VweG63l9fyQiuGWQgkM3yS3u_Bvr7vWRoaRtgb7AIJ88Pb_ZuFDaHlPKEv42S5BN1N5zPVycrw08i5a-mM-ckfA5AnP42rmVEJzMv9gLMmVCSGvgD77eKGBWkjFA2&amp;t=5d547c40" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=w4Mm3uHduQ2JCeXxgHbZFbqUHqRMV0jyP5mvSr-5PfW9JyUORdd75N9_MYGMNQKeEWUN-GJasjTniceGfMqWKiq9-mw40MHLlMnuLY68E39MtL-ONOv0m42evFaDNkDaYTM-Md7vn9Omg9Uc-x2udw2&amp;t=5d547c40" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=kmv5ib9Z8fHGo4Mf_rYvRspuD8LW0LnG9VBQoiBTfWNouJhfhS6vKUplPIAo_6WZV3J0BhqI-g2ttAw32bIpm9JZRJY4iurgpXE2v_pnSg2Qp5wDOxmGaoEFe964c7Ji0&amp;t=5d547c40" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=JCOP5nX55lBe4MSYeVY9CBcHCDMWIaqb15fHQSYFiKS2HdYR3YaOf5IE0NQUgngz6cSU2s9uI_0kL8mUEwPYnVQbNkRZhm8h6iasvKe6JoeikNuzMDkpDUevHXzw9eN-0&amp;t=5d547c40" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=4Q5c4XIBqx6gvkseHl0zKAUDYoWcszZdRIporROAvvCgiJ5_TBYl5WQxdg9yuYIT0zA5hLCkjeLOw5510MwjAadqxDBiMgIWl7uZRq7uekDYB3DW5vcS0Wyfm8S_C82KmOoXwnJT809ln_4gwVpnmw2&amp;t=5d547c40" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=tdjW2r5lYgCMUb2DlkyeGMvY-FmvyZqmGtx9v6jqMfPY5-fxP98H5PhtUmcn7o7gHVW3dntU-qHxHkylCZ0YH9va0pWMpHq2-K6mcOIOg-u3DGcFuyuw_4sE7FdQZmN00&amp;t=5d547c40" type="text/javascript"></script>
<script src="/WebResource.axd?d=Tre_MeIKqnXkRhp9-JMPzKuhS0-8o0CHVuTd64iy3i9iBhNfrSMWpps_Au3A12G8JW-vcGNW1HJlHcxh4HrbFzIQOMmfYGFTFGjxoOTeb481&amp;t=635586505120000000" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
function WebForm_OnSubmit() {
if (typeof(ValidatorOnSubmit) == "function" && ValidatorOnSubmit() == false) return false;
return true;
}
//]]>
</script>

            <script type="text/javascript">
//<![CDATA[
Sys.WebForms.PageRequestManager._initialize('ScriptManager1', 'Form1', [], [], [], 90, '');
//]]>
</script>
   

            <table id="Table2" align="left" style="background-position: left; height: 500px; vertical-align: top; text-align:left" 
                cellspacing="0" cellpadding="0" width="900px" border="0" >
				<tr>
					<td width="3%" height="1"></td>
					<td width="8%" height="1"></td>
					<td width="86%" height="1"></td>
					<td width="3%" height="1" ></td>
				</tr>
				<tr>
					<td width="3%">&nbsp;</td>
					<td vAlign="middle" align="left" width="8%" height="73" rowSpan="3">
						<!--***************************************Test Image*********************************-->
                        <a style="BORDER-BOTTOM-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-TOP-STYLE: none; BORDER-LEFT-STYLE: none"
							href="http://www.njcrib.com"> 
							<!--<IMG height="113" src="nj3.gif" width="65" border="0">-->
                            <!--<IMG height="113" src="./images/nj3.gif" width="65" border="0">-->
                            <img id="Image1" src="images/nj3.gif" style="border-style:None;height:113px;width:65px;" />
                        </a>

					</td>
                    
					<td vAlign="middle" align="left" colSpan="2" height="73">
						<!--***************************************Test Image*********************************-->
                        <a style="BORDER-BOTTOM-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-TOP-STYLE: none; BORDER-LEFT-STYLE: none"
							href="http://www.njcrib.com"> 
							<!--<IMG height="50" src="logo.gif" width="180" border="0">-->
                            <!--<IMG height="50" src="./images/logo.gif" width="180" border="0">-->
                            <img id="Image2" src="images/logo.gif" style="height:50px;width:180px;border:0" />             					
                        </a>

					</td>
                           
				</tr>
				<tr>
					<td width="100%" colSpan="4" height="10"></td>
				</tr>
				<tr>
					<td width="100%" colSpan="4" height="10"></td>
				</tr>
				<tr>
					<td colspan="4">
						<table width="100%" border="0" cellspacing="0" cellpadding="0" ID="Table3">
							<tr align="left">
								<td width="1%">
                                    <img id="Image4" src="images/testl.gif" />
								</td>
								<td width="5%" bgcolor="#ffffff"></td>
								<td width="88%" bgColor="#ffffff">&nbsp;</td>
								<td width="5%" bgcolor="#ffffff"></td>
								<td align="right" width="1%">
                                    <img id="Image3" src="images/testr.gif" />
                                </td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td vAlign="top" align="center" colSpan="4">
						<table id="Table5" cellSpacing="0" cellPadding="0" width="100%" align="center" bgColor="#ffffff"
							border="0" style="vertical-align:top">  
							<tr vAlign="top">
								<td width="3%">&nbsp;</td>
								<td align="center" width="94%" colspan="2">
                                    <span class="Where">
										<P>
                                            <br>											
											POLICY COVERAGE SEARCH
                                            <br>
										</P>
                                        <hr width="90%" noshade="noshade" size="3" />
									</span>
									<table id="divTable" width="100%" border="0">
										<tr>
											<td width="10%">&nbsp;</td>
											<td width="80%" align="center">
                                                 

<table id="Table1" style="width: 400px; height: 34px" cellspacing="1" cellpadding="1"
    width="400" border="0">
    <tr>
        <td class="DateAsOf" align="center">Data Current as of:&nbsp;&nbsp;
            <span id="FileUploadDate1_lblDateAsOf" style="display:inline-block;font-weight:bold;width:150px;">8/13/2015 at 4:13:22 PM</span>
            <br />
            <!--<span><font style="color:Red" ><b>**The Search Data is Currently Under Development and will be Released Soon.** </b></font></span>		-->

        </td>
    </tr>
</table>

											</td>
											<td width="10%">&nbsp;</td>
										</tr>
										<tr>
											<td width="10%">&nbsp;</td>
											<td width="80%">
                                                <div align="center"><br>
													<span id="lbldescript1" class="Pcov1TopLabel">NOTE: Policy coverage information reflects only policies with effective dates within the last 72 months.</span>
													<HR style="width: 98.53%; height: 4px" width="98.53%" noShade="noshade" size="3">
												</div>
											</td>
											<td width="10%">&nbsp;</td>
										</tr>
										<tr>
											<td width="10%">&nbsp;</td>
											<td width="80%">
                                                <div align="center">
                                                    <span id="lblDescript3" class="Pcov1LabelInfo">You may enter any word(s) or part of a word that appear in the commercial name or individual name of the employer for which you are requesting policy coverage information.</span>
											    </div>
											</td>
											<td width="10%">&nbsp;</td>
										</tr>
									</table>
								</td>
								<td width="3%">&nbsp;</td>
							</tr>
							<tr>
								<td width="3%">&nbsp;</td>
								<td align="center" width="94%"></td>
								<td width="3%">&nbsp;</td>
							</tr>
                            
							<tr>
                                
								<td width="3%">&nbsp;</td>
								<td vAlign="top" align="center" width="94%" colSpan="2">

								<table style="WIDTH: 966px; HEIGHT: 241px" >
                                    
									<tr>

										<td style="HEIGHT: 23px" colSpan="3">

                                            <span class="Pcov1Labels" style="Z-INDEX: 97; POSITION: relative; TOP: 0px; LEFT: 130px"><input id="rbtnNameSearch" type="radio" name="WhichSearch" value="rbtnNameSearch" checked="checked" tabindex="1" /><label for="rbtnNameSearch">Name Search</label></span>
                                            <span id="lblSeparator" class="Pcov1LabelInfo" style="Z-INDEX: 98; POSITION: relative; LEFT: 355px">OR</span>
                                            <span class="Pcov1Labels" style="Z-INDEX: 99; POSITION: relative; TOP: 0px; LEFT: 550px"><input id="rbtnFileSearch" type="radio" name="WhichSearch" value="rbtnFileSearch" onclick="javascript:setTimeout(&#39;__doPostBack(\&#39;rbtnFileSearch\&#39;,\&#39;\&#39;)&#39;, 0)" tabindex="2" /><label for="rbtnFileSearch">Coverage ID Search</label></span>
                                                                                   
                                        </td>
                                    </tr>
                                       
									<tr>										
                                            
										<td>

                                                    <fieldset style="POSITION: relative; WIDTH: 421px; HEIGHT: 192px; text-align: right">

                                                        <p>
                                                            <span id="lblEmployerName" class="Pcov1Labels" style="display:inline-block;height:24px;width:108px;Z-INDEX: 101; POSITION: absolute; TOP: 16px;
                                                                left: 2px; text-align: left">Employer Name</span>

                                                        </p>
                                                        <p>
                                                         <div id="pnlSearch" onkeypress="javascript:return WebForm_FireDefaultButton(event, &#39;btnBeginSearch&#39;)">
	
                                                            <input name="txtName" type="text" maxlength="60" id="txtName" tabindex="3" style="Z-INDEX: 113; POSITION: absolute; TOP: 16px; LEFT: 123px;
                                                                width: 245px;" />
                                                            <span id="lblDateOfAccident" class="Pcov1Labels" style="Z-INDEX: 107; POSITION: absolute; TOP: 56px;
                                                                LEFT: 2px; right: 314px; text-align: left">Date of Accident</span>

                                                            <input name="txtDate" type="text" maxlength="10" id="txtDate" tabindex="5" style="width:100px;Z-INDEX: 106; POSITION: absolute; TOP: 56px; LEFT: 123px;
                                                                width: 98px;" />

                                                            <input type="image" name="imgCalendar" id="imgCalendar" tabindex="5" src="Images/Calendar.png" align="top" style="width:25px;z-index: 107; left: 230px; POSITION: absolute; TOP: 56px; height: 26px;" />

                                                            

                                                            <span id="lblCity" class="Pcov1Labels" style="display:inline-block;width:104px;Z-INDEX: 105; POSITION: absolute; TOP: 96px; LEFT: 2px;
                                                                text-align: left">City (Optional)</span>
                                                            <input name="txtCity" type="text" maxlength="20" id="txtCity" tabindex="6" style="Z-INDEX: 108; POSITION: absolute; TOP: 96px; LEFT: 123px; text-align: left;
                                                                width: 215px;" />

                                                            <span id="lblState" class="Pcov1Labels" style="display:inline-block;width:107px;Z-INDEX: 103; POSITION: absolute; TOP: 136px; LEFT: 2px;
                                                                text-align: left">State (Optional)</span>
                                                            <input name="txtState" type="text" maxlength="2" id="txtState" tabindex="7" style="width:48px;Z-INDEX: 104; POSITION: absolute; TOP: 136px; LEFT: 123px" />
                                                        
</div>
                                                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                        </p>
                                                        <p>
                                                            <span id="rqdName" style="display:none;">*</span>
                                                        </p>
                                                        <p>
                                                            <span id="rqdDate" style="display:none;">*</span>
                                                            <span id="rglrEffDate" style="display:none;">*</span>
                                                        </p>
                                                        <p>
                                                            <span id="rglrDate" style="display:none;">*</span>
                                                        </p>
                                                        <p>
                                                            <span id="rglrCity" style="display:none;">*</span>
                                                            <span id="rglrState" style="display:none;">*</span>
                                                        </p>

                                                    </fieldset>


										</td>
                                          
										<td>
                                            <input type="submit" name="btnBeginSearch" value="Begin Search" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;btnBeginSearch&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))" id="btnBeginSearch" tabindex="11" style="background-color:LightSteelBlue;height:26px;width:90px;" />

										</td>
                                                                        
										<td>

											       <fieldset style="POSITION: relative; WIDTH: 428px; HEIGHT: 192px;text-align:left">
												    <P><br>
													    <span id="lblFileNumber" class="Pcov1Labels" style="display:inline-block;height:8px;Z-INDEX: 112; POSITION: relative; TOP: 0px; LEFT: 80px">Coverage ID</span>
                                                        <input name="txtFileNumber" type="text" maxlength="7" id="txtFileNumber" disabled="disabled" tabindex="8" class="aspNetDisabled" style="Z-INDEX: 113; POSITION: relative; TOP: 0px; LEFT: 98px" /></P>
												    <P><br>
													    <span id="lblFileAccidentDate" class="Pcov1Labels" style="Z-INDEX: 114; POSITION: relative; TOP: 0px; LEFT: 0px">Date of Accident(Optional)</span>
                                                        
                                                        <input name="txtFAccidentDate" type="text" maxlength="10" id="txtFAccidentDate" disabled="disabled" tabindex="9" class="aspNetDisabled Pcov1Labels" style="width:98px;Z-INDEX: 115; POSITION: relative; TOP: 0px; LEFT: 5px; height: 22px;" />
                                                        
                                                            <input type="image" name="imgCalendar1" id="imgCalendar1" disabled="disabled" tabindex="10" class="aspNetDisabled" src="Images/Calendar.png" align="top" style="width:25px;left:3px; POSITION: relative; TOP: 0px; height: 26px;" />        

                                                        


                                                        
                                                        

												    </P>
			                                        </fieldset>

										</td>

                                    </tr>                                   										
                                       
								</table>

                                    

								</td>
								<td align="center" width="3%"></td>
							</tr>

							<tr>
								<td align="center" colSpan="3">
									<hr noShade="noshade" SIZE="1">
								</td>
                            </tr>
							
                            <tr>    
                                                     
								<td align="center" width="20%"></td>
                                
								<td align="center" width="60%" colSpan="2">
									<div id="vldSummary" class="vldSummary" style="width:958px;display:none;">

</div>
								</td>
								<td align="center" width="20%"></td>
                                
							</tr>
                           
							<tr>
								<td  valign="top" align="center" style="width:100%" colSpan="4" >                                    
									<hr />
									<a style="BORDER-BOTTOM-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-TOP-STYLE: none; BORDER-LEFT-STYLE: none"
										href="http://www.njcrib.com">Home</a>
									<hr />
									<font face="Arial" size="1">
										<br>
										<br>
										<br>
										Copyright ? 1997 - 2008 by NJCRIB<br>
										All Rights Reserved
										<br>
										<br>
									</font>
                                                               
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		
<script type="text/javascript">
//<![CDATA[
var Page_ValidationSummaries =  new Array(document.getElementById("vldSummary"));
var Page_Validators =  new Array(document.getElementById("rqdName"), document.getElementById("rqdDate"), document.getElementById("rglrEffDate"), document.getElementById("rglrDate"), document.getElementById("rglrCity"), document.getElementById("rglrState"));
//]]>
</script>

<script type="text/javascript">
//<![CDATA[
var rqdName = document.all ? document.all["rqdName"] : document.getElementById("rqdName");
rqdName.controltovalidate = "txtName";
rqdName.errormessage = "An Employer Name must be entered!";
rqdName.display = "Dynamic";
rqdName.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
rqdName.initialvalue = "";
var rqdDate = document.all ? document.all["rqdDate"] : document.getElementById("rqdDate");
rqdDate.controltovalidate = "txtDate";
rqdDate.errormessage = "An Accident Date must be entered!";
rqdDate.display = "Dynamic";
rqdDate.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
rqdDate.initialvalue = "";
var rglrEffDate = document.all ? document.all["rglrEffDate"] : document.getElementById("rglrEffDate");
rglrEffDate.controltovalidate = "txtDate";
rglrEffDate.errormessage = "The Date of Accident is Invalid, Please re-enter!";
rglrEffDate.display = "Dynamic";
rglrEffDate.evaluationfunction = "RegularExpressionValidatorEvaluateIsValid";
rglrEffDate.validationexpression = "^(?=\\d)(?:(?:(?:(?:(?:0?[13578]|1[02])(\\/|-|\\.)31)\\1|(?:(?:0?[1,3-9]|1[0-2])(\\/|-|\\.)(?:29|30)\\2))(?:(?:1[6-9]|[2-9]\\d)?\\d{2})|(?:0?2(\\/|-|\\.)29\\3(?:(?:(?:1[6-9]|[2-9]\\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))|(?:(?:0?[1-9])|(?:1[0-2]))(\\/|-|\\.)(?:0?[1-9]|1\\d|2[0-8])\\4(?:(?:1[6-9]|[2-9]\\d)?\\d{2}))($|\\ (?=\\d)))";
var rglrDate = document.all ? document.all["rglrDate"] : document.getElementById("rglrDate");
rglrDate.controltovalidate = "txtDate";
rglrDate.errormessage = "Accident Date must be in MM/DD/YYYY format!";
rglrDate.display = "Dynamic";
rglrDate.evaluationfunction = "RegularExpressionValidatorEvaluateIsValid";
rglrDate.validationexpression = "(\\d\\d)/(\\d\\d)/(\\d\\d\\d\\d)";
var rglrCity = document.all ? document.all["rglrCity"] : document.getElementById("rglrCity");
rglrCity.controltovalidate = "txtCity";
rglrCity.errormessage = "City must be Alphabetic Only!";
rglrCity.display = "Dynamic";
rglrCity.evaluationfunction = "RegularExpressionValidatorEvaluateIsValid";
rglrCity.validationexpression = "^([a-zA-z\\s]{3,20})$";
var rglrState = document.all ? document.all["rglrState"] : document.getElementById("rglrState");
rglrState.controltovalidate = "txtState";
rglrState.errormessage = "Must use a State abbreviation only!";
rglrState.display = "Dynamic";
rglrState.evaluationfunction = "RegularExpressionValidatorEvaluateIsValid";
rglrState.validationexpression = "^[a-zA-Z]+$";
var vldSummary = document.all ? document.all["vldSummary"] : document.getElementById("vldSummary");
vldSummary.headertext = "Please fix the following errors:";
//]]>
</script>

<div class="aspNetHidden">

	<input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="46886D68" />
	<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEdAAzN9mmE3r/EhNbRVFI5OSaIVqMQhVUjmnalLoGe3KU4UptmKlDFcrlw6oSQUDslVbGjOglmm5fGSk5UkpFsfK4eQmTnPkxgOAq63YiVY5iwppYZRpDocmMDJ11EmXZJzAgrmtCHLRrNXCrKIKqPA4/Y0e8jaXD6bGe5WWlHrre4g8nFgSocznphOAJIZmk9+LQvYxE9WjteRYZnZ6vmmGUR+3vJtv+vtDVQ/SlRjHmZOMEkg3Thyaawpa0mXg7o55AF04q+Bc+lGH9g1hl8oRtpgN84A81AeDALWOzYGWFXBQ==" />
</div>

<script type="text/javascript">
//<![CDATA[

var Page_ValidationActive = false;
if (typeof(ValidatorOnLoad) == "function") {
    ValidatorOnLoad();
}

function ValidatorOnSubmit() {
    if (Page_ValidationActive) {
        return ValidatorCommonOnSubmit();
    }
    else {
        return true;
    }
}
        
(function(id) {
    var e = document.getElementById(id);
    if (e) {
        e.dispose = function() {
            Array.remove(Page_ValidationSummaries, document.getElementById(id));
        }
        e = null;
    }
})('vldSummary');
WebForm_AutoFocus('txtName');Sys.Application.add_init(function() {
    $create(Sys.Extended.UI.CalendarBehavior, {"button":$get("imgCalendar"),"format":"MM/dd/yyyy","id":"calDate","popupPosition":3}, null, null, $get("txtDate"));
});

document.getElementById('rqdName').dispose = function() {
    Array.remove(Page_Validators, document.getElementById('rqdName'));
}

document.getElementById('rqdDate').dispose = function() {
    Array.remove(Page_Validators, document.getElementById('rqdDate'));
}

document.getElementById('rglrEffDate').dispose = function() {
    Array.remove(Page_Validators, document.getElementById('rglrEffDate'));
}

document.getElementById('rglrDate').dispose = function() {
    Array.remove(Page_Validators, document.getElementById('rglrDate'));
}

document.getElementById('rglrCity').dispose = function() {
    Array.remove(Page_Validators, document.getElementById('rglrCity'));
}

document.getElementById('rglrState').dispose = function() {
    Array.remove(Page_Validators, document.getElementById('rglrState'));
}
//]]>
</script>
</form>
	</body>
</HTML>

Open in new window

0
Ryan ChongCommented:
ok, but from your scripts, it seems that function sf() are not generated in your output, which causing the javascript error showing above.

it seems that VB.NET function FixMarkup was not being called at server side postback?
0
jknj72Author Commented:
I would like to take out the function and put in Update panels that would do a few different things. I want to click the radio button and enable or disable depending on which radio button is clicked. I also want to be able to hit the enter button and run the btnBeginSearch click event. This will fire the validation that I need to have done. Im ok with scrapping the javascript and using the Update Panels, what do you think? How would you do it?
0
jknj72Author Commented:
The sf() gets called in the code behind when the form renders there is a routine where it inserts the sf() function but it errors out in IE everytime?
0
jknj72Author Commented:
I actually commented out a line of code in the sf() function so it wasnt valid what I gave you before. I uncommented it out and this is what I got now

 [embed=file 930117
0
jknj72Author Commented:
sorry its attached here
New-Error-Markup.jpg
0
Julian HansenCommented:
Try changing
document.Form1.txtName.focus()

Open in new window

To
document.forms.Form1.txtName.focus()

Open in new window

Or give the form a name (ex Form1) then either of the above

Or
document.getElementById('txtName').focus()

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ryan ChongCommented:
try change:

<form method="post" action="PcovA.aspx" onsubmit="javascript:return WebForm_OnSubmit();" onkeypress="javascript:return WebForm_FireDefaultButton(event, 'btnBeginSearch')" id="Form1">

to:

<form method="post" action="PcovA.aspx" onsubmit="javascript:return WebForm_OnSubmit();" onkeypress="javascript:return WebForm_FireDefaultButton(event, 'btnBeginSearch')" id="Form1" name="Form1">

with:

function sf() { document.Form1.txtName.focus(); }
0
jknj72Author Commented:
Julian, that actually got me past the error but I still cant put focus in the text boxes. At least its progress though ;)

Ryan,
the form tag in my markup has the following
<form id="Form1" method="post" runat="server" defaultbutton="btnBeginSearch" defaultfocus="txtName">

Im a little confused. It looks like the code you gave above is the generated code? No? Do you want me to change the markup code with what you posted in the markup?
0
Ryan ChongCommented:
yup, try change:

<form id="Form1" method="post" runat="server" defaultbutton="btnBeginSearch" defaultfocus="txtName">

to:

<form id="Form1" name="Form1" method="post" runat="server" defaultbutton="btnBeginSearch" defaultfocus="txtName">
0
jknj72Author Commented:
And thanks for sticking with me on this. Im a newbie to javascript (and ASP.NET for that matter) so I appreciate the help
0
jknj72Author Commented:
I tried replacing the form tag in the markup with what you had and it errors out for me. Error below
New-Error-Markup1.jpg
0
Ryan ChongCommented:
try remove the line 65 that commented out....
0
jknj72Author Commented:
Ok that worked but I am still unable to get focus in the text boxes and cant type in them at all still. It seems to get focus when I hover over the text boxes but I cant get in them to type something?
0
jknj72Author Commented:
and in IE the enable/disable doesnt work either
0
jknj72Author Commented:
works like a charm in FF though.
I think I should let you guys know that I downloaded Firebug a couple of weeks ago and since then IE has not been working like it was before I installed it. I have since removed Firebug and all the stuff that came with it but IE is still not working like it was before I downloaded it...
0
Ryan ChongCommented:
not too sure but it's working using my IE 11 based on generated output.

javascript set focus
>>Ok that worked but I am still unable to get focus in the text boxes and cant type in them at all still. It seems to get focus when I hover over the text boxes but I cant get in them to type something?
why you can't type in those text fields? (not too sure but you may) clear the IE cache and try again? can you make another screenshot here?
0
jknj72Author Commented:
I have 2 attached pics. One in IE and one in FF...I cleared my cache but still having problem. Like I said before, I hover over the text boxes and I can see the border change color looking like it has focus but I cannot click inside the text box?
0
Julian HansenCommented:
Can you put the following into your stf function
alert('STF Called');

Open in new window

and verify that the alert is shown.

I have just run your stf function on a mockup page in all browsers and it works in all of them so the code is good.
Either you are not calling STF or there is something else on the page that is operating on your controls after the  fact.

Where are you calling stf() from - ensure it is at the bottom of your page or preferably in an onload event handler
0
jknj72Author Commented:
oops forgot pics.
Also, can you attach and not embed the pics just so I dont get in trouble...
Thanks
JK
FF-can-type-in-text-boxes.jpg
0
jknj72Author Commented:
0
jknj72Author Commented:
Its being called in the body tag Julian onload="sf()"
I will try the alert now

Thanks
0
jknj72Author Commented:
The alert worked Julian....

If you guys arent having issues what can I do to unistall my IE and maybe reinstall? I think it may be causing an issue...
0
Julian HansenCommented:
Its being called in the body tag Julian onload="sf()"
Apologies was looking for sTf not sf - I see it there now. The code is correct as can be seen in this working sample.
Are you sure you are not getting any other console errors?
0
jknj72Author Commented:
Ok heres the deal. I had to uninstall IE 11 to make sure that this is not the issue. I reinstalled and now it works. The sf() function did not work with
'document.Form1.txtFileNumber.focus()'
but Julian you gave me
'document.forms.Form1.txtFileNumber.focus() '
and this works so thank you both for all your help.
0
jknj72Author Commented:
THANK YOU AGAIN
0
Julian HansenCommented:
You are welcome.
0
Ryan ChongCommented:
glad that u found a solution cheers
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.