PageSourceSearch

https://www.walkhard-movie.com/groups/system/documents/scripts/globalnew2.js

js walkhard-movie.com collected 2026-10-02 12:43:52 UTC 10,142 bytes, 344 lines download raw bytes

1//////////////////////////////////////////////////////
2// global.js
3/////////////////////////////////////////////////////
4
5//***************************
6function _hbxStrip(a){
7//***************************
8  a = a.split("|").join("");
9  a = a.split("&").join("");
10  a = a.split("'").join("");
11  a = a.split("#").join("");
12  a = a.split("$").join("");
13  a = a.split("%").join("");
14  a = a.split("^").join("");
15  a = a.split("*").join("");
16  a = a.split(":").join("");
17  a = a.split("!").join("");
18  a = a.split("<").join("");
19  a = a.split(">").join("");
20  a = a.split("~").join("");
21  a = a.split(" ").join("+");
22
23  return a;
24}
25
26//***************************
27function get_cookie(Name) {
28//***************************
29  var search = Name + "="
30  var returnvalue = "";
31  if (document.cookie.length > 0) {
32    offset = document.cookie.indexOf(search)
33    if (offset != -1) { // if cookie exists
34      offset += search.length
35      end = document.cookie.indexOf(";", offset);
36      if (end == -1)
37         end = document.cookie.length;
38      returnvalue=unescape(document.cookie.substring(offset, end))
39      }
40   }
41  return returnvalue;
42
43}
44//***************************
45function loadornot(){
46//***************************
47if (get_cookie('popunder')==''){
48loadpopunder()
49document.cookie="popunder=yes"
50}
51}
52//***************************
53function loadpopunder(){
54//***************************
55win2=window.open('http://www.sonypictures.com/movies/showtimes/popunder_redirect/','tickets')
56win2.blur()
57window.focus()
58}
59
60
61///////////////////////////////////////////////////////////////
62
63//*********************
64function showPlayer(pURL) {
65//*********************
66    displayWindow(pURL,"Player",620,435,"directories=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=0,toolbar=0");
67    return false;
68}
69
70//*********************
71function showPlayerPopup(pURL) {
72//*********************
73  if (document.all) 
74    playerHref = document.anchors(pURL).href;
75  else
76    playerHref = document.anchors[pURL].href;
77    
78  openWidth = 481;
79  openHeight = 492;
80
81  openLeft = (screen.width-openWidth)/2;
82  openTop = (screen.height-openHeight)/2;
83
84  var strFeatures = "height="+openHeight+",width="+openWidth+",left="+openLeft+",top="+openTop
85    +",directories=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=0,toolbar=0";
86
87  open(playerHref,'SelectAsset', strFeatures);
88}
89
90//*********************
91function showPhoto(pURL){
92//*********************
93  displayWindow(pURL,"Photo",400,470);
94  return false;
95}
96
97
98//*********************
99function displayWindow(theURL,winName,width,height,features) { //v3.1
100//*********************
101  var window_width = width;
102  var window_height = height;
103  var newfeatures= features;
104  var window_top = (screen.height-window_height)/2;
105  var window_left = (screen.width-window_width)/2;
106  newWindow=window.open(''+ theURL + '',''+ winName + '','width=' + window_width + ',height=' + window_height + ',top=' + window_top + ',left=' + window_left + ','+ newfeatures + '');
107  newWindow.focus();
108}
109
110//*********************
111function MM_openBrWindow(theURL,winName,features) { //v2.0
112//*********************
113  window.open(theURL,winName,features);
114}
115
116//*********************
117function mm_openbrwindow(theURL,winName,features) { //v2.0
118//*********************
119  window.open(theURL,winName,features);
120}
121 		  
122//***************************************************
123function GetCookieValue(offset) {
124//***************************************************
125	var endstr = document.cookie.indexOf (";", offset);
126	
127	if (endstr == -1) {
128		endstr = document.cookie.length;
129	}
130	return unescape(document.cookie.substring(offset, endstr));
131}
132
133//***************************************************
134function GetCookie(name) {
135//***************************************************
136	var arg = name + "=";
137	var alen = arg.length;
138	var clen = document.cookie.length;
139	var i = 0;
140	
141	while (i < clen) {
142		var j = i + alen;
143		
144		if (document.cookie.substring(i, j) == arg) {
145			return GetCookieValue(j);
146		}
147		i = document.cookie.indexOf(" ", i) + 1;
148		
149		if (i == 0) { break; }
150	}
151	return null;
152}
153
154//***************************************************
155function SetCookie(name,value,expires,path,domain,secure) {
156//***************************************************
157	document.cookie = name + "=" + escape (value) +
158	((expires) ? "; expires=" + expires.toGMTString() : "") +
159	((path) ? "; path=" + path : "") +
160	((domain) ? "; domain=" + domain : "") +
161	((secure) ? "; secure" : "");
162}
163
164//***************************************************
165function DeleteCookie(name,path,domain) {
166//***************************************************
167	if (GetCookie(name)) {
168		document.cookie = name + "=" +
169		((path) ? "; path=" + path : "") +
170		((domain) ? "; domain=" + domain : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT";
171	}
172}
173
174//***************************************************
175function FixCookieDate(date) {
176//***************************************************
177	var base = new Date(0);
178	var skew = base.getTime();
179	
180	if (skew > 0) { date.setTime(date.getTime() - skew); }
181}
182
183//***************************************************
184function popFull(url,name){
185//***************************************************
186var w = 480, h = 340;
187
188if (document.all || document.layers) {
189   w = screen.availWidth;
190   h = screen.availHeight;
191}else{
192	w = screen.width;
193	h = screen.height;
194}
195
196var url;
197var popW;
198var popH;
199
200window.open(url,name,'width=' + w + ',height=' + h + ',top=0,left=0');
201}
202
203//***************************************************
204IE = navigator.appName=="Microsoft Internet Explorer";
205NS = navigator.appName=="Netscape";
206browsertype = parseInt(navigator.appVersion);
207var newWin=null;
208function poppit(theUrl,theName,width,height,scroll)
209//***************************************************
210{
211	var scrollVar = "no";
212	if (scroll == "1" ) {
213		scrollVar = "yes";
214	} else {
215		scrollVar = "no";
216	}
217	var _params = "width=" + width + ",height=" + height + ",resizable=no,status=no,scrollbars="+scrollVar;
218	
219	// CENTER ON BROWSERS WHICH SUPPORT JSCRIPT 1.2
220	if (browsertype >= 4) {
221		_left = ( (screen.width-width) >>1 );
222		_top = ( (screen.height-height) >>1 );
223	} else {
224		_left = ( (800-width) >>1 );
225		_top = ( (600-height) >>1 );
226	}
227	
228	if (IE) _params += ",top=" + _top + ",left=" + _left;
229	else if (NS) _params += ",screenX=" + _left + ",screenY=" + _top;
230	
231	newWin = window.open(theUrl, theName, _params);
232	if ( newWin!=null && !(IE && browsertype<5) )
233		newWin.focus(); // MSIE4 DOESN'T FOCUS WINDOWS
234}
235
236//***************************************************
237function clearText(thefield){
238//***************************************************
239if (thefield.defaultValue==thefield.value)
240thefield.value = ""
241} 
242
243//*********************
244function embedFlash(fileName, width, height, bgcolor, quality, align, salign, wmode, scale, play, flashvars, menu, base, devicefont, loop) {	
245//*********************
246	var text;
247	text = "";
248	
249	if ((null == bgcolor)||(bgcolor == "")) {
250		parambgcolor = "";
251		embedbgcolor = "";
252	} else {
253		parambgcolor = "<param value=\"" + bgcolor + "\" name=\"bgcolor\" />";
254		embedbgcolor = " bgcolor=\"" + bgcolor + "\"";
255	}
256	
257	if ((null == quality)||(quality == "")) {
258		quality = "high";
259	}
260	
261	if ((null == align)||(align == "")) {
262		align = "middle";
263	}
264	
265	if ((null == salign)||(salign == "")) {
266		paramsalign = "";
267		embedsalign = "";
268	} else {
269		paramsalign = "<param value=\"" + salign + "\" name=\"salign\" />";
270		embedsalign = " salign=\"" + salign + "\"";
271	}
272	
273	if ((null == wmode)||(wmode == "")) {
274		paramwmode = "";
275		embedwmode = "";
276	} else {
277		paramwmode = "<param value=\"" + wmode + "\" name=\"wmode\" />";
278		embedwmode = " wmode=\"" + wmode + "\"";
279	}
280	
281	if ((null == scale)||(scale == "")) {
282		paramscale = "";
283		embedscale = "";
284	} else {
285		paramscale = "<param value=\"" + scale + "\" name=\"scale\" />";
286		embedscale = " scale=\"" + scale + "\"";
287	}
288	
289	if ((null == play)||(play == "")) {
290		paramplay = "";
291		embedplay = "";
292	} else {
293		paramplay = "<param value=\"" + play + "\" name=\"play\" />";
294		embedplay = " play=\"" + play + "\"";
295	}
296	
297	if ((null == flashvars)||(flashvars == "")) {
298		paramflashvars = "";
299		embedflashvars = "";
300	} else {
301		paramflashvars = "<param value=\"" + flashvars + "\" name=\"flashvars\" />";
302		embedflashvars = " flashvars=\"" + flashvars + "\"";
303	}
304	
305	if ((null == menu)||(menu == "")) {
306		parammenu = "";
307		embedmenu = "";
308	} else {
309		parammenu = "<param value=\"" + menu + "\" name=\"menu\" />";
310		embedmenu = " menu=\"" + menu + "\"";
311	}
312	
313	if ((null == base)||(base == "")) {
314		parambase = "";
315		embedbase = "";
316	} else {
317		parambase = "<param value=\"" + base + "\" name=\"base\" />";
318		embedbase = " base=\"" + base + "\"";
319	}
320	
321	if ((null == devicefont)||(devicefont == "")) {
322		paramdevicefont = "";
323		embeddevicefont = "";
324	} else {
325		paramdevicefont = "<param value=\"" + devicefont + "\" name=\"devicefont\" />";
326		embeddevicefont = " devicefont=\"" + devicefont + "\"";
327	}
328	
329	if ((null == loop)||(loop == "")) {
330		paramloop = "";
331		embedloop = "";
332	} else {
333		paramloop = "<param value=\"" + loop + "\" name=\"loop\" />";
334		embedloop = " loop=\"" + loop + "\"";
335	}
336
337 
338	text +="<object align=\"" + align + "\" id=\"main\" height=\"" + height + "\" width=\"" + width + "\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\">";
339	text +="<param value=\"" + fileName + "\" name=\"movie\" />";
340	text +="<param value=\"" + quality + "\" name=\"quality\" />";
341	text += parambgcolor + paramsalign + paramwmode + paramscale + paramplay + paramflashvars + parammenu + parambase + paramdevicefont + paramloop;
342	text += "<embed pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" align=\"" + align + "\" name=\"movie\" quality=\"" + quality + "\" height=\"" + height + "\" width=\"" + width + "\" src=\"" + fileName + "\"" + embedbgcolor + embedsalign + embedwmode + embedscale + embedplay + embedflashvars + embedmenu + embedbase + embeddevicefont + embedloop +  "></embed></object>";
343	document.write(text);
344}

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.