PageSourceSearch

https://www.hairlosstalk.com/wp-admin/admin-ajax.php?action=ot_dynamic_js&ver=1

js hairlosstalk.com collected 2026-10-02 10:51:05 UTC 1,858 bytes, 77 lines download raw bytes

1
2
3
4	//form validation
5	function validateName(fld) {
6		"use strict";
7		var error = "";
8				
9		if (fld.value === '' || fld.value === 'Nickname' || fld.value === 'Enter Your Name..' || fld.value === 'Your Name..') {
10			error = "You did not enter your first name.";
11		} else if ((fld.value.length < 2) || (fld.value.length > 200)) {
12			error = "First name is the wrong length.";
13		}
14		return error;
15	}
16			
17	function validateEmail(fld) {
18		"use strict";
19		var error="";
20		var illegalChars = /^[^@]+@[^@.]+\.[^@]*\w\w$/;
21				
22		if (fld.value === "") {
23			error = "You did not enter an email address.";
24		} else if ( fld.value.match(illegalChars) === null) {
25			error = "The email address contains illegal characters.";
26		}
27
28		return error;
29
30	}
31			
32	function valName(text) {
33		"use strict";
34		var error = "";
35				
36		if (text === '' || text === 'Nickname' || text === 'Enter Your Name..' || text === 'Your Name..') {
37			error = "You did not enter Your First Name.";
38		} else if ((text.length < 2) || (text.length > 50)) {
39			error = "First Name is the wrong length.";
40		}
41		return error;
42	}
43			
44	function valEmail(text) {
45		"use strict";
46		var error="";
47		var illegalChars = /^[^@]+@[^@.]+\.[^@]*\w\w$/;
48				
49		if (text === "") {
50			error = "You did not enter an email address.";
51		} else if ( text.match(illegalChars) === null) {
52			error = "The email address contains illegal characters.";
53		}
54
55		return error;
56
57	}
58			
59	function validateMessage(fld) {
60		"use strict";
61		var error = "";
62				
63		if (fld.value === '') {
64			error = "You did not enter Your message.";
65		} else if (fld.value.length < 3) {
66			error = "The message is to short.";
67		}
68
69		return error;
70	}		
71
72	function validatecheckbox() {
73		"use strict";
74		var error = "Please select at least one checkbox!";
75		return error;
76	}
77

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.