PageSourceSearch

https://www.kmortho.co.uk/form/captcha-emailus.js?ver=1791149374

js kmortho.co.uk collected 2026-10-04 21:29:50 UTC 3,875 bytes, 139 lines download raw bytes

1function echeck(str) 
2{
3	str = trim(str);
4	var at="@"
5	var dot="."
6	var lat=str.indexOf(at)
7	var lstr=str.length
8	var ldot=str.indexOf(dot)
9	if (str.indexOf(at)==-1)
10	{
11		return false
12	}
13
14	if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr)
15	{
16		return false
17	}
18
19	if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr)
20	{
21		return false
22	}
23
24	if (str.indexOf(at,(lat+1))!=-1)
25	{
26		return false
27	}
28
29	if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot)
30	{
31		return false
32	}
33
34	if (str.indexOf(dot,(lat+2))==-1)
35	{
36		return false
37	}
38
39	if (str.indexOf(" ")!=-1)
40	{
41		return false
42	}
43
44	return true					
45}
46
47function trim(s)
48{
49	rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g
50	return s.replace( rtrim, "" );
51}
52
53function checkFields_emailus() 
54{ 
55
56	missinginfo = "";
57	fname_red ="";
58	email_red = "";
59	mobile_red = "";
60	how_found = "";
61
62	if(trim(document.form_emailus.Full_Name.value) == "" || trim(document.form_emailus.Full_Name.value)=='Full Name *') 
63	{
64		missinginfo += "\n     -  Full Name";
65		var fname_red = "1px solid red";
66	}
67	if(trim(document.form_emailus.Email.value) == "" || trim(document.form_emailus.Email.value)=='Email *') 
68	{
69		missinginfo += "\n     -  Email";
70		var email_red = "1px solid red";
71	}
72	else if(echeck(document.form_emailus.Email.value)==false) 
73	{
74		missinginfo += "\n     -  Invalid E-mail ID";
75		var email_red = "1px solid red";
76	}
77	if(trim(document.form_emailus.Mobile_Number.value) == "" || trim(document.form_emailus.Mobile_Number.value) =='Best contact number *' ||  trim(document.form_emailus.Mobile_Number.value)=='Mobile Number *') 
78	{
79		missinginfo += "\n     -  Contact Number";
80		var mobile_red = "1px solid red";
81	}else if(isNaN(document.form_emailus.Mobile_Number.value) ) 
82	{
83		missinginfo += "\n     - Invalid Contact Number";
84		var mobile_red = "1px solid red";
85	}
86
87	if(trim(document.form_emailus.How_Found.value) == "" || trim(document.form_emailus.How_Found.value)=='How did you find us?') {
88	    missinginfo += "\n     -  How did you find us?";
89	    var how_found = "1px solid red";
90	}
91	if(document.form_emailus.I_consent_to_my_personal_data_being_collected_and_stored_as_per_the_Privacy_Policy.checked == "") {
92		missinginfo += "\n     -  I consent to my personal data being collected and stored as per the Privacy Policy";
93		
94	}
95	
96	// if(trim(document.form_emailus["g-recaptcha-response"].value) == "")
97	// {
98	// 	missinginfo += "\n     -  I'm not a Robot";
99	// }
100	
101	if (document.form_emailus["cf-turnstile-response"]) {
102		// All this ruckus is for Turnstile non-interactive
103		childTurnstile = form_emailus.querySelector(".cf-turnstile");
104		if (childTurnstile && typeof turnstile !== "undefined") {
105			if (turnstile.isExpired(childTurnstile)) {
106				missinginfo += "\n     - Captcha verification expired";
107			} else if (trim(document.form_emailus["cf-turnstile-response"].value) === "") {
108				missinginfo += "\n     - Please complete the CAPTCHA verification";
109			}
110		}
111	}
112	
113	if(trim(document.form_emailus.recipient.value) == "") 
114	{
115		missinginfo += "\n     -  Recipient Email Address Is Blank";
116	}
117
118	if (missinginfo != "") 
119	{
120		missinginfo ="_____________________________\n" +
121		"Please complete the missing required fields:\n" +
122		missinginfo + "\n_____________________________" +
123		"\nPlease re-enter and submit again!";
124		alert(missinginfo);
125		document.getElementById('Full_Name').style.border = fname_red;
126		document.getElementById('Email').style.border = email_red;
127		document.getElementById('How_Found').style.border = how_found;
128		document.getElementById('Mobile_Number').style.border = mobile_red;
129		document.getElementById('email_customControlAutosizing1').required = true;
130		return false;
131	}
132	else
133	{
134		document.getElementById('Page_title_email').value = document.title;
135		document.getElementById('Hostname_email').value = location.hostname;
136		return true;
137	}
138}
139

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.