PageSourceSearch

https://www.novinite.com/js/global.js

js novinite.com collected 2026-09-24 06:24:41 UTC 2,811 bytes, 97 lines download raw bytes

1		function openWindow(mypage, myname, w, h, scroll) 
2		{
3			var winl = (screen.width - w) / 2;
4			var wint = (screen.height - h) / 2;
5			winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
6			gmtWindow = window.open(mypage, myname, winprops)
7			if (parseInt(navigator.appVersion) >= 4) { gmtWindow.window.focus(); }
8		}
9
10		function toggle_hiding(what) {
11		      var tmp = document.getElementById(what);
12		      if (tmp.style.display == 'none') {
13		        tmp.style.display = 'block';
14		      } else {
15		        tmp.style.display = 'none';
16		      }
17		}
18		
19		function hide(what) {
20		      var tmp = document.getElementById(what);
21		      if (tmp.style.display != 'none') {
22		        tmp.style.display = 'none';
23		      }
24		}
25		function show(what) {
26		      var tmp = document.getElementById(what);
27		      if (tmp.style.display == 'none') {
28		        tmp.style.display = 'block';
29		      } 
30		}
31		
32		function Get_Cookie( check_name ) {
33			// first we'll split this cookie up into name/value pairs
34			// note: document.cookie only returns name=value, not the other components
35			var a_all_cookies = document.cookie.split( ';' );
36			var a_temp_cookie = '';
37			var cookie_name = '';
38			var cookie_value = '';
39			var b_cookie_found = false; // set boolean t/f default f
40			
41			for ( i = 0; i < a_all_cookies.length; i++ )
42			{
43				// now we'll split apart each name=value pair
44				a_temp_cookie = a_all_cookies[i].split( '=' );
45				
46				
47				// and trim left/right whitespace while we're at it
48				cookie_name = a_temp_cookie[0].replace(/^\s+|\s+$/g, '');
49			
50				// if the extracted name matches passed check_name
51				if ( cookie_name == check_name )
52				{
53					b_cookie_found = true;
54					// we need to handle case where cookie has no value but exists (no = sign, that is):
55					if ( a_temp_cookie.length > 1 )
56					{
57						cookie_value = unescape( a_temp_cookie[1].replace(/^\s+|\s+$/g, '') );
58					}
59					// note that in cases where cookie is initialized but no value, null is returned
60					return cookie_value;
61					break;
62				}
63				a_temp_cookie = null;
64				cookie_name = '';
65			}
66			if ( !b_cookie_found )
67			{
68				return null;
69			}
70		}
71
72
73		function check_chekbox() {
74			if($("#agree_terms").is(':checked')) {
75				$("#agree_terms").val('2');
76			} else {
77				$("#agree_terms").val('1');
78			}
79
80		}
81		
82		function check_notify() {
83			if($("#notify_checkbox").is(':checked')) {
84				$('label#notify_email').css('display', 'block');
85			} else {
86				$('label#notify_email').css('display', 'none');
87			}
88
89		}
90
91$(function() {
92	 $("#notify_checkbox").bind("click", function() { check_notify(); }) ;
93	 $("#agree_terms").bind("click", function() { check_chekbox(); }) ;
94
95});
96		
97

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.