PageSourceSearch

https://alabama-registered-agents.com/default.js

js alabama-registered-agents.com collected 2026-10-01 04:23:48 UTC 5,344 bytes, 194 lines download raw bytes

1//---------------------------------------------------------------------------------------------------------------
2//ONLOAD - Event:
3if (window.onload){
4	var funWindowLoad = window.onload;
5	window.onload = new Function("funWindowLoad(); Window_OnLoad();");
6}
7else
8	window.onload = Window_OnLoad;
9	
10//---------------------------------------------------------------------------------------------------------------
11function Window_OnLoad(){		
12    
13		
14}
15//-----------------------------------------------------------------------------------------------------------------------
16var _cellElement = null;
17var _lastSortColumn = "R.AnnualRate";
18var _lastSortDirection = "asc";
19
20function SortAgentList(cellElement, isReady){    
21
22    if (isReady == null) isReady = false;
23    
24    if (!isReady){
25    
26        _cellElement = cellElement;
27        cellElement.style.cursor = "wait";
28        GetHourGlass().Show("Sorting");
29        window.setTimeout("SortAgentList(_cellElement, true);", 1000);
30        return;
31    
32    }   
33
34	//First, figure out the new sort direction:
35	var columnName = cellElement.getAttribute("sortdatacolumn");	
36	var sortDirection = "asc";
37	
38	var isIE = (navigator.appName.toLowerCase().indexOf("microsoft") == -1?false:true);
39		
40	//Find out if the current column is the last column sorted, if it is, then we want to sort in a new
41	//direction, else, if this is a different column than the last one sorted, then we sort in ascending
42	//order to start with:
43	if (_lastSortColumn == columnName){
44	
45		sortDirection = (_lastSortDirection == "asc"?"desc":"asc");
46	
47	}	
48	
49	//Update the module level variables so they can be reference on the next column sort:
50	_lastSortColumn = columnName;
51	_lastSortDirection = sortDirection;	
52	
53	//Finally, initiate the Callback request to reload data with new sort order:	
54    var resultArray = cbGetSortedAgentList(columnName, sortDirection);     
55
56    //Evaluate the result, if 0, then set the newly sorted agentlist html, if 1, then show exception:
57	if (resultArray[0] == "0"){	
58	    
59	    document.getElementById("divAgentList").innerHTML = resultArray[1];
60	    
61	}
62	else {
63	
64	    alert(resultArray[1]);
65	
66	}
67	
68	//Hide the hourglass:
69	GetHourGlass().Hide();
70	
71	//Turn the cell cursor back to a pointer:
72	_cellElement.style.cursor = "pointer";
73
74}
75//-----------------------------------------------------------------------------------------------------------------------
76function Login() {
77
78 
79    var buttonText = document.frmMain.cmdLogin.value;
80
81    	
82	if (buttonText == "logout"){
83	
84		Logout();
85		return;
86	
87	}
88
89	
90	//User's Id:
91	if (Trim(document.frmMain.txtUid.value) == ""){
92
93		alert("Please enter your email address.");
94		document.frmMain.txtUid.focus();
95		return;
96
97	}
98
99	if (!IsEmail(Trim(document.frmMain.txtUid.value))){
100
101		alert("Please enter a valid email address.");
102		document.frmMain.txtUid.focus();		
103		return;
104	}
105	
106	//Password:	
107	if (Trim(document.frmMain.txtPwd.value) == ""){
108
109		alert("Please enter your password.");
110		document.frmMain.txtPwd.focus();
111		return;
112
113	}
114	
115	document.frmMain.cmdLogin.disabled = true;
116
117    //12-11-2013 removed and redirect now instead
118	//var resultArray = cbLogin(escape(document.frmMain.txtUid.value), escape(document.frmMain.txtPwd.value)).split("<cb_col>");
119
120	//document.location.href = "login.aspx?u=" + escape(document.frmMain.txtUid.value) + "&p=" + escape(document.frmMain.txtPwd.value);
121
122	$.post("login.aspx", { username: escape(document.frmMain.txtUid.value), password: escape(document.frmMain.txtPwd.value) })
123
124    .done(function (data) {
125
126        if (data.indexOf("Please try again") > 0) {
127            alert(data);
128        }
129        else {
130            document.location.href = data;
131        }
132
133    });
134
135
136
137	//12-11-2013 removed and redirect now instead
138    //	if (resultArray[0] == "0"){	
139    //		
140    //		var fictionalPage = resultArray[1];		
141    //		
142    //		document.frmMain.cmdLogin.value = "Logout";
143    //	
144    //		document.location.href = fictionalPage;
145    //	
146    //	}
147    //	else {
148    //	
149    //		alert(resultArray[1]);
150    //	
151    //	}	
152	//	
153
154	document.frmMain.cmdLogin.disabled = false;
155
156}
157//-----------------------------------------------------------------------------------------------------------------------
158function Logout(){	
159	
160	var result = cbLogout();
161	
162	if (result == "-1"){
163	
164		document.frmMain.cmdLogin.value = "Login";
165	
166		alert("You have successfully logged out.");
167	
168	}
169	else {
170	
171		alert("The logout failed.  Please try again.");
172	
173	}	
174
175}
176//-----------------------------------------------------------------------------------------------------------------------
177function LoadAgentSite(url){		
178									
179	//Define the left and top coordinates:	
180	var width = 599;
181	var height = 500;
182	var left;
183	var top;			
184			
185	left = (document.body.offsetWidth / 2) - (width / 2) + document.body.scrollLeft;			
186	top = 50;
187	
188	var features = "location=yes,menubar=yes,resizable=yes,toolbar=yes,scrollbars=yes," +
189		"top=" + top + ",left=" + left + ",width=" + width + ",height=" + height;
190
191	window.open(url, "", features);
192
193}
194//-----------------------------------------------------------------------------------------------------------------------

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.