PageSourceSearch

https://tacsecurity.com/wp-content/themes/newsblock/js/my-ajax-script.js?ver=6.9.9

js tacsecurity.com collected 2026-10-03 20:15:38 UTC 55,433 bytes, 1,368 lines download raw bytes

1jQuery(document).ready(function(e) {
2	var countDownDate = new Date("Jan 12, 2022 10:00:00 GMT-08:00").getTime();
3	var x = setInterval(function() {
4	  var now = new Date().getTime();
5	  var distance = countDownDate - now;
6	  var days = Math.floor(distance / (1000 * 60 * 60 * 24));
7	  var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
8	  var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
9	  var seconds = Math.floor((distance % (1000 * 60)) / 1000);
10	  var set_html_c = "<h4 class='active-counter'><span class='days-counter'><label>" + days + "</label><label>DAYS</label></span><span class='hours-counter'><label>" + hours + "</label><label>HOURS</label></span><span class='minutes-counter'><label>"+ minutes + "</label><label>MINUTES</label></span><span class='seconds-counter'><label>" + seconds + "</label><label>SECONDS</label></span></h4>";
11	  jQuery('#count-down-event').html(set_html_c);
12	  if (distance < 0) {
13		clearInterval(x);
14		jQuery('#count-down-event').html("<p class='expired-counter'>EXPIRED</p>");
15	  }
16	}, 1000);
17	
18	jQuery(document).on('click','.countdown_popup_btn a',function(e){
19		let $el = (e.originalEvent) ? this : e;
20		let popup = jQuery($el).closest('.adp-popup');
21		let animation = jQuery(popup).data('exit-animation');
22
23		applyAnimation(popup, animation, function() {
24			jQuery(popup).addClass('adp-popup-already-opened');
25			jQuery(popup).removeClass('adp-popup-open');
26			jQuery('body').removeClass('adp-popup-scroll-hidden');
27			jQuery('html, body').animate({
28				scrollTop: jQuery("#subscription-section").offset().top
29			}, 1000);
30		});
31	});
32	
33	function applyAnimation( el, name, callback ) {
34		var popup = jQuery( el ).closest( '.adp-popup' );
35
36		if ( typeof callback === 'function' ) {
37			var overlayName = 'popupExitFade';
38		} else {
39			var overlayName = 'popupOpenFade';
40		}
41
42		// Overlay Animation.
43		jQuery( popup ).next( '.adp-popup-overlay' ).addClass( 'adp-popup-animated ' + overlayName )
44			.one( 'webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function() {
45				jQuery( this ).removeClass( 'adp-popup-animated ' + overlayName );
46			} );
47
48		// Wrap Animation.
49		jQuery( popup ).find( '.adp-popup-wrap' ).addClass( 'adp-popup-animated ' + name )
50			.one( 'webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function() {
51				jQuery( this ).removeClass( 'adp-popup-animated ' + name );
52
53				if ( typeof callback === 'function' ) {
54					callback();
55				}
56			} );
57	}
58	
59	/* var dtToday = new Date();
60    
61    var month = dtToday.getMonth() + 1;
62    var day = dtToday.getDate();
63    var year = dtToday.getFullYear();
64    if(month < 10)
65        month = '0' + month.toString();
66    if(day < 10)
67        day = '0' + day.toString();
68    
69    var maxDate = year + '-' + month + '-' + day;
70	
71    jQuery('#other_deliverable_date').attr('min', maxDate);
72	jQuery('#loa_deadline').attr('min', maxDate); */
73	
74	document.addEventListener( 'wpcf7mailsent', function( event ) {
75	  location = 'https://tacsecurity.com/thankyou/';
76	}, false );
77	
78	var current_fs, next_fs, previous_fs; //fieldsets
79	var opacity;
80	var current = 1;
81	var steps = jQuery("fieldset").length;
82
83	setProgressBar(current);
84
85	jQuery(".previous_section_class").click(function(){
86
87		current_fs = jQuery(this).parent();
88		previous_fs = jQuery(this).parent().prev();
89
90		jQuery("#progressbar li").eq(jQuery("fieldset").index(current_fs)).removeClass("active");
91		previous_fs.show();
92		current_fs.animate({opacity: 0}, {
93			step: function(now) {
94				opacity = 1 - now;
95				current_fs.css({
96					'display': 'none',
97					'position': 'relative'
98				});
99				previous_fs.css({'opacity': opacity});
100			},
101			duration: 500
102		});
103		setProgressBar(--current);
104	});
105
106	function setProgressBar(curStep){
107		var percent = parseFloat(100 / steps) * curStep;
108		percent = percent.toFixed();
109		jQuery(".progress-bar")
110		.css("width",percent+"%")
111	}
112	
113	jQuery('#carrer_title_form').val(my_ajax_object.site_title_carrer);
114	jQuery('#subscription-section .pk-subscribe-submit').on('click',function(e) {
115		e.preventDefault();
116		jQuery('#subscription-section .form_img').hide();
117		jQuery('#subscription-section .success-msg').html('');
118		jQuery('#subscription-section .success-msg').hide();
119		jQuery('#subscription-section .error-msg').hide();
120		jQuery('#subscription-section .error-msg').html('');
121		var set_custom_val = 1;
122		if( jQuery('#subscription-section #user_name').val() == '' ){
123			jQuery('#subscription-section .error-msg').show();
124			jQuery('#subscription-section .error-msg').html('Please enter name.');
125			set_custom_val = 0;
126		}
127		
128		if( jQuery('#subscription-section #user_email').val() == '' && set_custom_val == 1 ){
129			jQuery('#subscription-section .error-msg').show();
130			jQuery('#subscription-section .error-msg').html('Please enter email-address.');
131			set_custom_val = 0;
132		}
133		
134		if( ( !isEmail( jQuery('#subscription-section #user_email').val() ) && ( set_custom_val == 1 ) ) ){
135			jQuery('#subscription-section .error-msg').show();
136			jQuery('#subscription-section .error-msg').html('Please enter valid email-address.');
137			set_custom_val = 0;
138		}
139		
140		if( ( !check_bussiness_email( jQuery('#subscription-section #user_email').val() ) && ( set_custom_val == 1 ) ) ){
141			jQuery('#subscription-section .error-msg').show();
142			jQuery('#subscription-section .error-msg').html('Please enter valid business email.');
143			set_custom_val = 0;
144		}
145		
146		if( set_custom_val == 1 ){
147			jQuery('#subscription-section .form_img').show();
148			var user_email = jQuery('#subscription-section #user_email').val();
149			var user_name = jQuery('#subscription-section #user_name').val();		
150			var get_title_name = jQuery('#subscription-section #get_title_name').val();
151			jQuery.ajax({
152					type: "POST",
153					url: my_ajax_object.ajax_url,
154					dataType:"json",
155					data: { 
156						action: 'data_custom_ajax',
157						user_email: user_email,
158						user_name: user_name,
159						get_title_name: get_title_name,
160					},
161					success: function(data){
162						jQuery('#subscription-section .form_img').hide();						
163						jQuery('#subscription-section .success-msg').show();
164						jQuery('#subscription-section .success-msg').html('Your request has been successfully submitted.');
165						jQuery('#subscription-section #user_email').val('');
166						jQuery('#subscription-section #user_name').val('');
167					}
168			});
169		}
170		
171		setTimeout(function () {
172			jQuery('#subscription-section .success-msg').hide();
173			jQuery('#subscription-section .error-msg').hide();
174        }, 5000);
175        
176    });
177	
178	jQuery('#subscription-section-sidebar .pk-subscribe-submit').on('click',function(e) {
179		e.preventDefault();
180		jQuery('#subscription-section-sidebar .form_img').hide();
181		jQuery('#subscription-section-sidebar .success-msg').html('');
182		jQuery('#subscription-section-sidebar .success-msg').hide();
183		jQuery('#subscription-section-sidebar .error-msg').hide();
184		jQuery('#subscription-section-sidebar .error-msg').html('');
185		var set_custom_val = 1;
186		if( jQuery('#subscription-section-sidebar #user_name').val() == '' ){
187			jQuery('#subscription-section-sidebar .error-msg').show();
188			jQuery('#subscription-section-sidebar .error-msg').html('Please enter name.');
189			set_custom_val = 0;
190		}
191		
192		if( jQuery('#subscription-section-sidebar #user_email').val() == '' && set_custom_val == 1 ){
193			jQuery('#subscription-section-sidebar .error-msg').show();
194			jQuery('#subscription-section-sidebar .error-msg').html('Please enter email-address.');
195			set_custom_val = 0;
196		}
197		
198		if( ( !isEmail( jQuery('#subscription-section-sidebar #user_email').val() ) && ( set_custom_val == 1 ) ) ){
199			jQuery('#subscription-section-sidebar .error-msg').show();
200			jQuery('#subscription-section-sidebar .error-msg').html('Please enter valid email-address.');
201			set_custom_val = 0;
202		}
203		
204		if( ( !check_bussiness_email( jQuery('#subscription-section-sidebar #user_email').val() ) && ( set_custom_val == 1 ) ) ){
205			jQuery('#subscription-section-sidebar .error-msg').show();
206			jQuery('#subscription-section-sidebar .error-msg').html('Please enter valid business email.');
207			set_custom_val = 0;
208		}
209		
210		if( set_custom_val == 1 ){
211			jQuery('#subscription-section-sidebar .form_img').show();
212			var user_email = jQuery('#subscription-section-sidebar #user_email').val();
213			var user_name = jQuery('#subscription-section-sidebar #user_name').val();		
214			var get_title_name = my_ajax_object.site_title;
215			jQuery.ajax({
216				type: "POST",
217				url: my_ajax_object.ajax_url,
218				dataType:"json",
219				data: { 
220					action: 'data_custom_ajax',
221					user_email: user_email,
222					user_name: user_name,
223					get_title_name: get_title_name,
224				},
225				success: function(data){
226					jQuery('#subscription-section-sidebar .form_img').hide();						
227					jQuery('#subscription-section-sidebar .success-msg').show();
228					jQuery('#subscription-section-sidebar .success-msg').html('Your request has been successfully submitted.');
229					jQuery('#subscription-section-sidebar #user_email').val('');
230					jQuery('#subscription-section-sidebar #user_name').val('');
231				}
232			});
233		}
234		
235		setTimeout(function () {
236			jQuery('#subscription-section-sidebar .success-msg').hide();
237			jQuery('#subscription-section-sidebar .error-msg').hide();
238        }, 5000);
239        
240    });
241	
242	jQuery('.form_submit_enrollment').on('click',function(){
243		//console.log(my_ajax_object.ajax_url);	
244         //alert("hello");   
245		jQuery('.enrollment-form-section .error_msg_form').html('');
246		jQuery('.enrollment-form-section .success_msg_form').html('');
247		jQuery('.enrollment-form-section .error_msg_form').hide();
248		jQuery('.enrollment-form-section .success_msg_form').hide();
249		
250		var set_var_html = 1;
251		var array_application_type = [];
252		var array_application_name = [];
253		var array_application_ver = [];
254		var array_uat_ip = [];
255		var array_uat_url = [];
256		var array_production_ip = [];
257		var array_production_url = [];
258		var array_target = [];
259		var array_del_date = [];
260		var array_assessment_type = [];
261		var array_loa_deadline = [];
262		
263		if( jQuery('#google_project_number').val() == '' && set_var_html == 1 ){
264			jQuery('.enrollment-form-section .error_msg_form').show();
265			jQuery('.enrollment-form-section .error_msg_form').html('Please enter google project number.');
266			set_var_html = 0;
267		}
268		
269		if( jQuery('#contact_person').val() == '' && set_var_html == 1 ){
270			jQuery('.enrollment-form-section .error_msg_form').show();
271			jQuery('.enrollment-form-section .error_msg_form').html('Please enter contact person.');
272			set_var_html = 0;
273		}
274		
275		if( jQuery('#company_name').val() == '' && set_var_html == 1 ){
276			jQuery('.enrollment-form-section .error_msg_form').show();
277			jQuery('.enrollment-form-section .error_msg_form').html('Please enter company name.');
278			set_var_html = 0;
279		}
280		
281		if( jQuery('#company_email').val() == '' && set_var_html == 1 ){
282			jQuery('.enrollment-form-section .error_msg_form').show();
283			jQuery('.enrollment-form-section .error_msg_form').html('Please enter company email.');
284			set_var_html = 0;
285		}
286		
287		if( ( !isEmail( jQuery('#company_email').val() ) && ( set_var_html == 1 ) ) ){
288			jQuery('.enrollment-form-section .error_msg_form').show();
289			jQuery('.enrollment-form-section .error_msg_form').html('Please enter valid email-address.');
290			set_var_html = 0;
291		}
292		
293		if( ( !check_bussiness_email( jQuery('#company_email').val() ) && ( set_var_html == 1 ) ) ){
294			jQuery('.enrollment-form-section .error_msg_form').show();
295			jQuery('.enrollment-form-section .error_msg_form').html('Please enter valid business email.');
296			set_var_html = 0;
297		}
298		
299		if( jQuery('#country').val() == '' && set_var_html == 1 ){
300			jQuery('.enrollment-form-section .error_msg_form').show();
301			jQuery('.enrollment-form-section .error_msg_form').html('Please select country.');
302			set_var_html = 0;
303		}
304		
305		if( jQuery('#contact_no').val() == '' && set_var_html == 1 ){
306			jQuery('.enrollment-form-section .error_msg_form').show();
307			jQuery('.enrollment-form-section .error_msg_form').html('Please enter contact no.');
308			set_var_html = 0;
309		}
310		
311		if( jQuery('#company_detail').val() == '' && set_var_html == 1 ){
312			jQuery('.enrollment-form-section .error_msg_form').show();
313			jQuery('.enrollment-form-section .error_msg_form').html('Please enter company incorporation detail.');
314			set_var_html = 0;
315		}
316		
317		if( jQuery('#company_office_address').val() == '' && set_var_html == 1 ){
318			jQuery('.enrollment-form-section .error_msg_form').show();
319			jQuery('.enrollment-form-section .error_msg_form').html('Please enter company registered office address.');
320			set_var_html = 0;
321		}
322		
323		if( jQuery('#user_roles').val() == '' && set_var_html == 1 ){
324			jQuery('.enrollment-form-section .error_msg_form').show();
325			jQuery('.enrollment-form-section .error_msg_form').html('Please select user role.');
326			set_var_html = 0;
327		}
328		
329		if( jQuery('#signatory_authority').val() == '' && set_var_html == 1 ){
330			jQuery('.enrollment-form-section .error_msg_form').show();
331			jQuery('.enrollment-form-section .error_msg_form').html('Please enter signatory authority.');
332			set_var_html = 0;
333		}
334		
335		if( set_var_html == 1 ){
336			array_application_type = [];
337			jQuery('.enrollment-form-section #is_other').each(function(){
338				if( jQuery(this).val() == '' && set_var_html == 1 ){
339					jQuery('.enrollment-form-section .error_msg_form').show();
340					jQuery('.enrollment-form-section .error_msg_form').html('Please select application type.');
341					set_var_html = 0;
342				}
343				array_application_type.push(jQuery(this).val());
344			});
345		}
346		
347		if( set_var_html == 1 ){
348			array_application_name = [];
349			jQuery('.enrollment-form-section #other_application_name').each(function(){
350				if( jQuery(this).val() == '' && set_var_html == 1 ){
351					jQuery('.enrollment-form-section .error_msg_form').show();
352					jQuery('.enrollment-form-section .error_msg_form').html('Please enter application name.');
353					set_var_html = 0;
354				}
355				array_application_name.push(jQuery(this).val());
356			});
357		}
358		
359		if( set_var_html == 1 ){
360			array_application_ver = [];
361			jQuery('.enrollment-form-section #other_application_version').each(function(){
362				if( jQuery(this).val() == '' && set_var_html == 1 ){
363					jQuery('.enrollment-form-section .error_msg_form').show();
364					jQuery('.enrollment-form-section .error_msg_form').html('Please enter application version.');
365					set_var_html = 0;
366				}
367				array_application_ver.push(jQuery(this).val());
368			});
369		}
370		
371		if( set_var_html == 1 ){
372			array_uat_ip = [];
373			jQuery('.enrollment-form-section #other_uat_ip').each(function(){
374				if( jQuery(this).val() == '' && set_var_html == 1 ){
375					jQuery('.enrollment-form-section .error_msg_form').show();
376					jQuery('.enrollment-form-section .error_msg_form').html('Please enter uat ip.');
377					set_var_html = 0;
378				}
379				array_uat_ip.push(jQuery(this).val());
380			});
381		}
382		
383		if( set_var_html == 1 ){
384			array_uat_url = [];
385			jQuery('.enrollment-form-section #other_uat_url').each(function(){
386				if( jQuery(this).val() == '' && set_var_html == 1 ){
387					jQuery('.enrollment-form-section .error_msg_form').show();
388					jQuery('.enrollment-form-section .error_msg_form').html('Please enter uat url.');
389					set_var_html = 0;
390				}
391				array_uat_url.push(jQuery(this).val());
392			});
393		}
394		
395		if( set_var_html == 1 ){
396			array_production_ip = [];
397			jQuery('.enrollment-form-section #other_production_ip').each(function(){
398				if( jQuery(this).val() == '' && set_var_html == 1 ){
399					jQuery('.enrollment-form-section .error_msg_form').show();
400					jQuery('.enrollment-form-section .error_msg_form').html('Please enter production ip.');
401					set_var_html = 0;
402				}
403				array_production_ip.push(jQuery(this).val());
404			});
405		}
406		
407		if( set_var_html == 1 ){
408			array_production_url = [];
409			jQuery('.enrollment-form-section #other_production_url').each(function(){
410				if( jQuery(this).val() == '' && set_var_html == 1 ){
411					jQuery('.enrollment-form-section .error_msg_form').show();
412					jQuery('.enrollment-form-section .error_msg_form').html('Please enter production url.');
413					set_var_html = 0;
414				}
415				array_production_url.push(jQuery(this).val());
416			});
417		}
418		
419		if( set_var_html == 1 ){
420			array_target = [];
421			jQuery('.enrollment-form-section #other_target').each(function(){
422				if( jQuery(this).val() == '' && set_var_html == 1 ){
423					jQuery('.enrollment-form-sec
423tion .error_msg_form').show();
424					jQuery('.enrollment-form-section .error_msg_form').html('Please select target.');
425					set_var_html = 0;
426				}
427				array_target.push(jQuery(this).val());
428			});
429		}
430		
431		if( set_var_html == 1 ){
432			array_del_date = [];
433			jQuery('.enrollment-form-section #other_deliverable_date').each(function(){
434				if( jQuery(this).val() == '' && set_var_html == 1 ){
435					jQuery('.enrollment-form-section .error_msg_form').show();
436					jQuery('.enrollment-form-section .error_msg_form').html('Please enter deliverable date.');
437					set_var_html = 0;
438				}
439				array_del_date.push(jQuery(this).val());
440			});
441		}
442		
443		if( set_var_html == 1 ){
444			array_assessment_type = [];
445			jQuery('.enrollment-form-section #assessment_type').each(function(){
446				if( jQuery(this).val() == '' && set_var_html == 1 ){
447					jQuery('.enrollment-form-section .error_msg_form').show();
448					jQuery('.enrollment-form-section .error_msg_form').html('Please select assessment type.');
449					set_var_html = 0;
450				}
451				array_assessment_type.push(jQuery(this).val());
452			});
453		}
454		
455		if( set_var_html == 1 ){
456			array_loa_deadline = [];
457			jQuery('.enrollment-form-section #loa_deadline').each(function(){
458				if( jQuery(this).val() == '' && set_var_html == 1 ){
459					jQuery('.enrollment-form-section .error_msg_form').show();
460					jQuery('.enrollment-form-section .error_msg_form').html('Please enter loa deadline.');
461					set_var_html = 0;
462				}
463				array_loa_deadline.push(jQuery(this).val());
464			});
465		}
466		
467		if( set_var_html == 1 ){
468			jQuery('.enrollment-form-section .form_img').show();
469			jQuery.ajax({
470				type: "POST",
471				url: my_ajax_object.ajax_url,
472				dataType:"json",
473				data: { 
474					action: 'enrollment_custom_ajax',
475					google_project_number: jQuery('#google_project_number').val(),
476					contact_person: jQuery('#contact_person').val(),
477					company_name: jQuery('#company_name').val(),
478					company_email: jQuery('#company_email').val(),
479					country: jQuery('#country').val(),
480					contact_no: jQuery('#contact_no').val(),
481					user_roles: jQuery('#user_roles').val(),
482					company_detail: jQuery('#company_detail').val(),
483					company_office_address: jQuery('#company_office_address').val(),
484					signatory_authority: jQuery('#signatory_authority').val(),
485					other_requirements: jQuery('#other_requirements').val(),
486					array_application_type: array_application_type,
487					array_application_name: array_application_name,
488					array_application_ver: array_application_ver,
489					array_uat_ip: array_uat_ip,
490					array_uat_url: array_uat_url,
491					array_production_ip: array_production_ip,
492					array_production_url: array_production_url,
493					array_target: array_target,
494					array_del_date: array_del_date,
495					array_assessment_type: array_assessment_type,
496					array_loa_deadline: array_loa_deadline,
497				},
498				success: function(data){
499					jQuery('.enrollment-form-section .form_img').hide();						
500					jQuery('.enrollment-form-section .success_msg_form').show();
501					window.location.href = "https://tacsecurity.com/thankyou/";
502					jQuery('.enrollment-form-section .success_msg_form').html('Your request has been successfully submitted.');
503					jQuery(".mobile_copy").remove();
504					
505					jQuery('#is_other').val('');
506					jQuery('#other_application_name').val('');
507					jQuery('#other_application_version').val('');
508					jQuery('#other_uat_ip').val('');
509					jQuery('#other_uat_url').val('');
510					jQuery('#other_production_ip').val('');
511					jQuery('#other_production_url').val('');
512					jQuery('#other_target').val('');
513					jQuery('#other_deliverable_date').val('');
514					jQuery('#assessment_type').val('');
515					jQuery('#loa_deadline').val('');
516					
517					jQuery('#google_project_number').val('');
518					jQuery('#company_name').val('');
519					jQuery('#other_requirements').val('');
520					jQuery('#contact_person').val('');
521					jQuery('#company_email').val('');
522					jQuery('#country').val('');
523					jQuery('#contact_no').val('');
524					jQuery('#user_roles').val('');
525					array_application_type = [];
526					array_application_name = [];
527					array_application_ver = [];
528					array_uat_ip = [];
529					array_uat_url = [];
530					array_production_ip = [];
531					array_production_url = [];
532					array_target = [];
533					array_del_date = [];
534					array_assessment_type = [];
535					array_loa_deadline = [];
536					
537				}
538			});
539		}
540		
541		setTimeout(function () {
542			jQuery('.enrollment-form-section .error_msg_form').hide();
543			jQuery('.enrollment-form-section .success_msg_form').hide();
544        }, 5000);
545		
546	});
547	
548	jQuery('.next_section_class').on('click',function(event){
549		
550		jQuery('.partner-form-section .error_msg_form').html('');
551		jQuery('.partner-form-section .success_msg_form').html('');
552		jQuery('.partner-form-section .error_msg_form').hide();
553		jQuery('.partner-form-section .success_msg_form').hide();
554		
555		var set_var_html = 1;
556		
557		if( jQuery('#company_name').val() == '' && set_var_html == 1 ){
558			jQuery('.partner-form-section .error_msg_form').show();
559			jQuery('.partner-form-section .error_msg_form').html('Please enter company name.');
560			set_var_html = 0;
561		}
562		
563		if( jQuery('#company_phone_number').val() == '' && set_var_html == 1 ){
564			jQuery('.partner-form-section .error_msg_form').show();
565			jQuery('.partner-form-section .error_msg_form').html('Please enter company phone number.');
566			set_var_html = 0;
567		}
568		
569		if( jQuery('#website').val() == '' && set_var_html == 1 ){
570			jQuery('.partner-form-section .error_msg_form').show();
571			jQuery('.partner-form-section .error_msg_form').html('Please enter company phone number.');
572			set_var_html = 0;
573		}
574		
575		if( jQuery('#address_line1').val() == '' && set_var_html == 1 ){
576			jQuery('.partner-form-section .error_msg_form').show();
577			jQuery('.partner-form-section .error_msg_form').html('Please enter address line1.');
578			set_var_html = 0;
579		}
580		
581		if( jQuery('#country').val() == '' && set_var_html == 1 ){
582			jQuery('.partner-form-section .error_msg_form').show();
583			jQuery('.partner-form-section .error_msg_form').html('Please select country.');
584			set_var_html = 0;
585		}
586		
587		if( jQuery('#zip_postal_code').val() == '' && set_var_html == 1 ){
588			jQuery('.partner-form-section .error_msg_form').show();
589			jQuery('.partner-form-section .error_msg_form').html('Please enter zip postal code.');
590			set_var_html = 0;
591		}
592		
593		if( jQuery('#salutation').val() == '' && set_var_html == 1 ){
594			jQuery('.partner-form-section .error_msg_form').show();
595			jQuery('.partner-form-section .error_msg_form').html('Please select salutation.');
596			set_var_html = 0;
597		}
598		
599		if( jQuery('#first_name').val() == '' && set_var_html == 1 ){
600			jQuery('.partner-form-section .error_msg_form').show();
601			jQuery('.partner-form-section .error_msg_form').html('Please enter first name.');
602			set_var_html = 0;
603		}
604		
605		if( jQuery('#last_name').val() == '' && set_var_html == 1 ){
606			jQuery('.partner-form-section .error_msg_form').show();
607			jQuery('.partner-form-section .error_msg_form').html('Please enter last name.');
608			set_var_html = 0;
609		}
610		
611		if( jQuery('#email').val() == '' && set_var_html == 1 ){
612			jQuery('.partner-form-section .error_msg_form').show();
613			jQuery('.partner-form-section .error_msg_form').html('Please enter email.');
614			set_var_html = 0;
615		}
616		
617		if( ( !isEmail( jQuery('#email').val() ) && ( set_var_html == 1 ) ) ){
618			jQuery('.partner-form-section .error_msg_form').show();
619			jQuery('.partner-form-section .error_msg_form').html('Please enter valid email-address.');
620			set_var_html = 0;
621		}
622		
623		if( ( !check_bussiness_email( jQuery('#email').val() ) && ( set_var_html == 1 ) ) ){
624			jQuery('.partner-form-section .error_msg_form').show();
625			jQuery('.partner-form-section .error_msg_form').html('Please enter valid business email.');
626			set_var_html = 0;
627		}
628		
629		if( jQuery('#user_role').val() == '' && set_var_html == 1 ){
630			jQuery('.partner-form-section .error_msg_form').show();
631			jQuery('.partner-form-section .error_msg_form').html('Please select user role.');
632			set_var_html = 0;
633		}
634		
635		if( jQuery('#contact_business_phone').val() == '' && set_var_html == 1 ){
636			jQuery('.partner-form-section .error_msg_form').show();
637			jQuery('.partner-form-section .error_msg_form').html('Please enter contact business phone.');
638			set_var_html = 0;
639		}
640		
641		
642		if( jQuery('#as_primary_contact:checked').val() == 'No' && set_var_html == 1 ){
643			if( jQuery('#compliance_salutation').val() == '' && set_var_html == 1 ){
644				jQuery('.partner-form-section .error_msg_form').show();
645				jQuery('.partner-form-section .error_msg_form').html('Please select compliance salutation.');
646				set_var_html = 0;
647			}
648			
649			if( jQuery('#compliance_first_name').val() == '' && set_var_html == 1 ){
650				jQuery('.partner-form-section .error_msg_form').show();
651				jQuery('.partner-form-section .error_msg_form').html('Please enter compliance first name.');
652				set_var_html = 0;
653			}
654			
655			if( jQuery('#compliance_last_name').val() == '' && set_var_html == 1 ){
656				jQuery('.partner-form-section .error_msg_form').show();
657				jQuery('.partner-form-section .error_msg_form').html('Please enter compliance last name.');
658				set_var_html = 0;
659			}
660			
661			if( jQuery('#compliance_email').val() == '' && set_var_html == 1 ){
662				jQuery('.partner-form-section .error_msg_form').show();
663				jQuery('.partner-form-section .error_msg_form').html('Please enter compliance email.');
664				set_var_html = 0;
665			}
666			
667			if( ( !isEmail( jQuery('#compliance_email').val() ) && ( set_var_html == 1 ) ) ){
668				jQuery('.partner-form-section .error_msg_form').show();
669				jQuery('.partner-form-section .error_msg_form').html('Please enter valid compliance email address.');
670				set_var_html = 0;
671			}
672			
673			if( ( !check_bussiness_email( jQuery('#compliance_email').val() ) && ( set_var_html == 1 ) ) ){
674				jQuery('.partner-form-section .error_msg_form').show();
675				jQuery('.partner-form-section .error_msg_form').html('Please enter valid business email.');
676				set_var_html = 0;
677			}
678			
679			if( jQuery('#compliance_user_role').val() == '' && set_var_html == 1 ){
680				jQuery('.partner-form-section .error_msg_form').show();
681				jQuery('.partner-form-section .error_msg_form').html('Please select compliance user role.');
682				set_var_html = 0;
683			}
684			
685			if( jQuery('#compliance_contact_business_phone').val() == '' && set_var_html == 1 ){
686				jQuery('.partner-form-section .error_msg_form').show();
687				jQuery('.partner-form-section .error_msg_form').html('Please enter compliance contact business phone.');
688				set_var_html = 0;
689			}
690		}
691		
692		if( set_var_html == 1 ){
693			current_fs = jQuery(this).parent();
694			next_fs = jQuery(this).parent().next();
695			
696			jQuery("#progressbar li").eq(jQuery("fieldset").index(next_fs)).addClass("active");
697			next_fs.show();
698			
699			current_fs.animate({opacity: 0}, {
700				step: function(now) {
701				
702					opacity = 1 - now;
703
704					current_fs.css({
705						'display': 'none',
706						'position': 'relative'
707					});
708					next_fs.css({'opacity': opacity});
709				},
710				duration: 500
711			});
712			setProgressBar(++current);
713		}
714		
715		
716	});
717	
718	var organization_business = [];
719	var industries_or_markets = [];
720	var customer_priorities = [];
721	
722	jQuery('#submit_form_partner').on('click',function(event){
723		
724		jQuery('.partner-form-section .error_msg_form').html('');
725		jQuery('.partner-form-section .success_msg_form').html('');
726		jQuery('.partner-form-section .error_msg_form').hide();
727		jQuery('.partner-form-section .success_msg_form').hide();
728		
729		var set_var_html = 1;
730		
731		if( set_var_html == 1 ){
732			if( jQuery('input[name="organization_business_model"]:checked').val() == undefined || jQuery('input[name="organization_business_model"]:checked').val() == '' ){
733				jQuery('.partner-form-section .error_msg_form').show();
734				jQuery('.partner-form-section .error_msg_form').html('Please select organization’s business model.');
735				set_var_html = 0;
736			}else{
737				organization_business = [];
738				jQuery('input[name="organization_business_model"]:checked').each(function(){
739					organization_business.push(jQuery(this).val());
740				});
741			}
742		}
743		
744		if( set_var_html == 1 ){
745			if( jQuery('input[name="industries_or_markets"]:checked').val() == undefined || jQuery('input[name="industries_or_markets"]:checked').val() == '' ){
746				jQuery('.partner-form-section .error_msg_form').show();
747				jQuery('.partner-form-section .error_msg_form').html('Please select industries or markets.');
748				set_var_html = 0;
749			}else{
750				industries_or_markets = [];
751				jQuery('input[name="industries_or_markets"]:checked').each(function(){
752					industries_or_markets.push(jQuery(this).val());
753				});
754			}
755		}
756		
757		if( set_var_html == 1 ){
758			if( jQuery('input[name="customer_priorities"]:checked').val() == undefined || jQuery('input[name="customer_priorities"]:checked').val() == '' ){
759				jQuery('.partner-form-section .error_msg_form').show();
760				jQuery('.partner-form-section .error_msg_form').html('Please selct customer priorities.');
761				set_var_html = 0;
762			}else{
763				customer_priorities = [];
764				jQuery('input[name="customer_priorities"]:checked').each(function(){
765					customer_priorities.push(jQuery(this).val());
766				});
767			}
768		}
769		
770		if( set_var_html == 1 ){
771			if( jQuery('input[name="agree_and_understand"]:checked').val() == undefined || jQuery('input[name="agree_and_understand"]:checked').val() == '' ){
772				jQuery('.partner-form-section .error_msg_form').show();
773				jQuery('.partner-form-section .error_msg_form').html('Please check read, understand, accept and agree to be bound by the terms and conditions.');
774				set_var_html = 0;
775			}
776		}
777		
778		if( set_var_html == 1 ){
779			if( jQuery('input[name="authorized"]:checked').val() == undefined || jQuery('input[name="authorized"]:checked').val() == '' ){
780				jQuery('.partner-form-section .error_msg_form').show();
781				jQuery('.partner-form-section .error_msg_form').html('Please check application is accurate and complete.');
782				set_var_html = 0;
783			}
784		}
785		
786		if( set_var_html == 1 ){
787			if( jQuery('#digital_signature').val() == '' ){
788				jQuery('.partner-form-section .error_msg_form').show();
789				jQuery('.partner-form-section .error_msg_form').html('Please enter first and last name on the digital signature.');
790				set_var_html = 0;
791			}
792		}
793		
794		if( set_var_html == 1 ){
795			if( jQuery('#last_job_title').val() == '' ){
796				jQuery('.partner-form-section .error_msg_form').show();
797				jQuery('.partner-form-section .error_msg_form').html('Please enter job title of primary contact.');
798				set_var_html = 0;
799			}
800		}
801		
802		if( set_var_html == 1 ){
803			
804			jQuery('.partner-form-section .form_img').show();
805			if( jQuery('#as_primary_contact:checked').val() == 'Yes' ){
806				var compliance_salutation = jQuery('#salutation').val();
807				var compliance_first_name = jQuery('#first_name').val();
808				var compliance_last_name = jQuery('#last_name').val();
809				var compliance_email = jQuery('#email').val();
810				var compliance_user_role = jQuery('#user_role').val();
811				var compliance_contact_business_phone = jQuery('#contact_business_phone').val();
812				var compliance_job_title = jQuery('#job_title').val();
813				var compliance_contact_mobile_phone = jQuery('#contact_mobile_phone').val();
814			}else{
815				var compliance_salutation = jQuery('#compliance_salutation').val();
816				var compliance_first_name = jQuery('#compliance_first_name').val();
817				var compliance_last_name = jQuery('#compliance_last_name').val();
818				var compliance_email = jQuery('#compliance_email').val();
819				var compliance_user_role = jQuery('#compliance_user_role').val();
820				var compliance_contact_business_phone = jQuery('#compliance_contact_business_phone').val();
821				var compliance_job_title = jQuery('#compliance_job_title').val();
822				var compliance_contact_mobile_phone = jQuery('#compliance_contact_mobile_phone').val();
823			}
824			
825			jQuery.ajax({
826				type: "POST",
827				url: my_ajax_object.ajax_url,
828				dataType:"json",
829				data: { 
830					action: 'partner_custom_ajax',
831					set_form_title: jQuery('#set_form_title').val(),
832					compliance_salutation: compliance_salutation,
833					compliance_first_name: compliance_first_name,
834					compliance_last_name: compliance_last_name,
835					compliance_email: compliance_email,
836					compliance_user_role: compliance_user_role,
837					compliance_contact_business_phone: compliance_contact_business_phone,
838					compliance_job_title: compliance_job_title,
839					compliance_contact_mobile_phone: compliance_
839contact_mobile_phone,
840					company_name: jQuery('#company_name').val(),
841					company_name_native: jQuery('#company_name_native').val(),
842					company_phone_number: jQuery('#company_phone_number').val(),
843					website: jQuery('#website').val(),
844					address_line1: jQuery('#address_line1').val(),
845					country: jQuery('#country').val(),
846					zip_postal_code: jQuery('#zip_postal_code').val(),
847					address_line2: jQuery('#address_line2').val(),
848					state: jQuery('#state').val(),
849					city: jQuery('#city').val(),
850					salutation: jQuery('#salutation').val(),
851					first_name: jQuery('#first_name').val(),
852					last_name: jQuery('#last_name').val(),
853					email: jQuery('#email').val(),
854					user_role: jQuery('#user_role').val(),
855					job_title: jQuery('#job_title').val(),
856					contact_mobile_phone: jQuery('#contact_mobile_phone').val(),
857					contact_business_phone: jQuery('#contact_business_phone').val(),
858					as_primary_contact: jQuery('#as_primary_contact:checked').val(),
859					organization_business: organization_business,
860					industries_or_markets: industries_or_markets,
861					customer_priorities: customer_priorities,
862					agree_and_understand: jQuery('input[name="agree_and_understand"]:checked').val(),
863					authorized: jQuery('input[name="authorized"]:checked').val(),
864					receive_partner_e_mail: jQuery('input[name="receive_partner_e_mail"]:checked').val(),
865					digital_signature: jQuery('#digital_signature').val(),
866					last_job_title: jQuery('#last_job_title').val(),
867				},
868				success: function(data){
869					jQuery('.partner-form-section .form_img').hide();						
870					jQuery('.partner-form-section .success_msg_form').show();
871					jQuery('.partner-form-section .success_msg_form').html('Your request has been successfully submitted.');
872					window.location.href = "https://tacsecurity.com/thankyou/";
873					/* jQuery('#company_name').val('');
874					jQuery('#company_name_native').val('');
875					jQuery('#company_phone_number').val('');
876					jQuery('#website').val('');
877					jQuery('#address_line1').val();
878					jQuery('#country').val();
879					jQuery('#zip_postal_code').val();
880					jQuery('#address_line2').val();
881					jQuery('#state').val();
882					jQuery('#city').val();
883					
884					jQuery('#salutation').val('');
885					jQuery('#first_name').val('');
886					jQuery('#last_name').val('');
887					jQuery('#email').val('');
888					jQuery('#user_role').val('');
889					jQuery('#contact_business_phone').val('');
890					jQuery('#job_title').val('');
891					jQuery('#contact_mobile_phone').val('');
892					
893					jQuery('#compliance_salutation').val('');
894					jQuery('#compliance_first_name').val('');
895					jQuery('#compliance_last_name').val('');
896					jQuery('#compliance_email').val('');
897					jQuery('#compliance_user_role').val('');
898					jQuery('#compliance_contact_business_phone').val('');
899					jQuery('#compliance_job_title').val('');
900					jQuery('#compliance_contact_mobile_phone').val('');
901					
902					jQuery('input[name="organization_business_model"]:checked').removeAttr('checked');
903					jQuery('input[name="industries_or_markets"]:checked').removeAttr('checked');
904					jQuery('input[name="customer_priorities"]:checked').removeAttr('checked');
905					jQuery('input[name="agree_and_understand"]:checked').removeAttr('checked');
906					jQuery('input[name="authorized"]:checked').removeAttr('checked');
907					jQuery('#digital_signature').val('');
908					jQuery('#last_job_title').val('');
909					
910					organization_business = [];
911					industries_or_markets = [];
912					customer_priorities = []; */
913					
914				}
915			});
916			
917		}
918		
919	});
920	
921	jQuery('.form_enrollment_main').on('click',function(){
922    	//console.log(my_ajax_object.ajax_url);
923        //alert(");
924		jQuery('.enrollment-form-main .error_msg_form').html('');
925		jQuery('.enrollment-form-main .success_msg_form').html('');
926		jQuery('.enrollment-form-main .error_msg_form').hide();
927		jQuery('.enrollment-form-main .success_msg_form').hide();
928		
929		var array_application_name = [];
930		var array_application_owner = [];
931		var array_application_owner_email = [];
932		var array_application_for = [];
933		var array_application_type = [];
934		var array_no_of_applications = [];
935		var array_application_version = [];
936		var array_uat_ip = [];
937		var array_uat_url = [];
938		var array_application_facing = [];
939		var array_production_ip = [];
940		var array_production_url = [];
941		var array_criticality = [];
942		var array_major_cr = [];
943		var array_go_live_date = [];
944		var array_tiering = [];
945		var array_user_role = [];
946		var array_scope_testing = [];
947		
948		var set_var_html = 1;
949		
950		if( set_var_html == 1 ){
951			array_application_name = [];
952			jQuery('.enrollment-form-main #application_name').each(function(){
953				if( jQuery(this).val() == '' && set_var_html == 1 ){
954					jQuery('.enrollment-form-main .error_msg_form').show();
955					jQuery('.enrollment-form-main .error_msg_form').html('Please enter application name.');
956					set_var_html = 0;
957				}
958				array_application_name.push(jQuery(this).val());
959			});
960		}
961		
962		/* if( jQuery('#application_name').val() == '' && set_var_html == 1 ){
963			jQuery('.enrollment-form-main .error_msg_form').show();
964			jQuery('.enrollment-form-main .error_msg_form').html('Please enter application name.');
965			set_var_html = 0;
966		} */
967		
968		if( set_var_html == 1 ){
969			array_application_owner = [];
970			jQuery('.enrollment-form-main #application_owner').each(function(){
971				if( jQuery(this).val() == '' && set_var_html == 1 ){
972					jQuery('.enrollment-form-main .error_msg_form').show();
973					jQuery('.enrollment-form-main .error_msg_form').html('Please enter application owner.');
974					set_var_html = 0;
975				}
976				array_application_owner.push(jQuery(this).val());
977			});
978		}
979		
980		/* if( jQuery('#application_owner').val() == '' && set_var_html == 1 ){
981			jQuery('.enrollment-form-main .error_msg_form').show();
982			jQuery('.enrollment-form-main .error_msg_form').html('Please enter application owner.');
983			set_var_html = 0;
984		} */
985		
986		if( set_var_html == 1 ){
987			// array_application_owner_email = [];
988			jQuery('.enrollment-form-main #application_owner_email').each(function(){
989				if( jQuery(this).val() == '' && set_var_html == 1 ){
990					jQuery('.enrollment-form-main .error_msg_form').show();
991					jQuery('.enrollment-form-main .error_msg_form').html('Please enter application owner email.');
992					set_var_html = 0;
993				}
994				// array_application_owner_email.push(jQuery(this).val());
995			});
996		}
997		
998		/* if( jQuery('#application_owner_email').val() == '' && set_var_html == 1 ){
999			jQuery('.enrollment-form-main .error_msg_form').show();
1000			jQuery('.enrollment-form-main .error_msg_form').html('Please enter application owner email.');
1001			set_var_html = 0;
1002		} */
1003		
1004		if( set_var_html == 1 ){
1005			// array_application_owner_email = [];
1006			jQuery('.enrollment-form-main #application_owner_email').each(function(){
1007				if( !isEmail( jQuery(this).val() ) && set_var_html == 1 ){
1008					jQuery('.enrollment-form-main .error_msg_form').show();
1009					jQuery('.enrollment-form-main .error_msg_form').html('Please enter valid application owner email address.');
1010					set_var_html = 0;
1011				}
1012				// array_application_owner_email.push(jQuery(this).val());
1013			});
1014		}
1015		
1016		/* if( ( !isEmail( jQuery('#application_owner_email').val() ) && ( set_var_html == 1 ) ) ){
1017			jQuery('.enrollment-form-main .error_msg_form').show();
1018			jQuery('.enrollment-form-main .error_msg_form').html('Please enter valid application owner email address.');
1019			set_var_html = 0;
1020		} */
1021		
1022		if( set_var_html == 1 ){
1023			array_application_owner_email = [];
1024			jQuery('.enrollment-form-main #application_owner_email').each(function(){
1025				if( !check_bussiness_email( jQuery(this).val() ) && set_var_html == 1 ){
1026					jQuery('.enrollment-form-main .error_msg_form').show();
1027					jQuery('.enrollment-form-main .error_msg_form').html('Please enter valid business email.');
1028					set_var_html = 0;
1029				}
1030				array_application_owner_email.push(jQuery(this).val());
1031			});
1032		}
1033		
1034		/* if( ( !check_bussiness_email( jQuery('#application_owner_email').val() ) && ( set_var_html == 1 ) ) ){
1035			jQuery('.enrollment-form-main .error_msg_form').show();
1036			jQuery('.enrollment-form-main .error_msg_form').html('Please enter valid business email.');
1037			set_var_html = 0;
1038		} */
1039		
1040		if( set_var_html == 1 ){
1041			array_application_for = [];
1042			jQuery('.enrollment-form-main #application_for').each(function(){
1043				if( jQuery(this).val() == '' && set_var_html == 1 ){
1044					jQuery('.enrollment-form-main .error_msg_form').show();
1045					jQuery('.enrollment-form-main .error_msg_form').html('Please select application for.');
1046					set_var_html = 0;
1047				}
1048				array_application_for.push(jQuery(this).val());
1049			});
1050		}
1051		
1052		/* if( jQuery('#application_for').val() == '' && set_var_html == 1 ){
1053			jQuery('.enrollment-form-main .error_msg_form').show();
1054			jQuery('.enrollment-form-main .error_msg_form').html('Please select application for.');
1055			set_var_html = 0;
1056		} */
1057		
1058		if( set_var_html == 1 ){
1059			array_application_type = [];
1060			jQuery('.enrollment-form-main #application_type').each(function(){
1061				if( jQuery(this).val() == '' && set_var_html == 1 ){
1062					jQuery('.enrollment-form-main .error_msg_form').show();
1063					jQuery('.enrollment-form-main .error_msg_form').html('Please enter application type.');
1064					set_var_html = 0;
1065				}
1066				array_application_type.push(jQuery(this).val());
1067			});
1068		}
1069		
1070		/* if( jQuery('#application_type').val() == '' && set_var_html == 1 ){
1071			jQuery('.enrollment-form-main .error_msg_form').show();
1072			jQuery('.enrollment-form-main .error_msg_form').html('Please select application type.');
1073			set_var_html = 0;
1074		} */
1075		
1076		if( set_var_html == 1 ){
1077			array_no_of_applications = [];
1078			jQuery('.enrollment-form-main #no_of_applications').each(function(){
1079				if( jQuery(this).val() == '' && set_var_html == 1 ){
1080					jQuery('.enrollment-form-main .error_msg_form').show();
1081					jQuery('.enrollment-form-main .error_msg_form').html('Please select number of applications.');
1082					set_var_html = 0;
1083				}
1084				array_no_of_applications.push(jQuery(this).val());
1085			});
1086		}
1087		
1088		/* if( jQuery('#no_of_applications').val() == '' && set_var_html == 1 ){
1089			jQuery('.enrollment-form-main .error_msg_form').show();
1090			jQuery('.enrollment-form-main .error_msg_form').html('Please select number of applications.');
1091			set_var_html = 0;
1092		} */
1093		
1094		if( set_var_html == 1 ){
1095			array_application_version = [];
1096			jQuery('.enrollment-form-main #application_version').each(function(){
1097				if( jQuery(this).val() == '' && set_var_html == 1 ){
1098					jQuery('.enrollment-form-main .error_msg_form').show();
1099					jQuery('.enrollment-form-main .error_msg_form').html('Please enter application version.');
1100					set_var_html = 0;
1101				}
1102				array_application_version.push(jQuery(this).val());
1103			});
1104		}
1105		
1106		/* if( jQuery('#application_version').val() == '' && set_var_html == 1 ){
1107			jQuery('.enrollment-form-main .error_msg_form').show();
1108			jQuery('.enrollment-form-main .error_msg_form').html('Please enter application version.');
1109			set_var_html = 0;
1110		} */
1111		
1112		if( set_var_html == 1 ){
1113			array_uat_ip = [];
1114			jQuery('.enrollment-form-main #uat_ip').each(function(){
1115				if( jQuery(this).val() == '' && set_var_html == 1 ){
1116					jQuery('.enrollment-form-main .error_msg_form').show();
1117					jQuery('.enrollment-form-main .error_msg_form').html('Please enter uat ip.');
1118					set_var_html = 0;
1119				}
1120				array_uat_ip.push(jQuery(this).val());
1121			});
1122		}
1123		
1124		/* if( jQuery('#uat_ip').val() == '' && set_var_html == 1 ){
1125			jQuery('.enrollment-form-main .error_msg_form').show();
1126			jQuery('.enrollment-form-main .error_msg_form').html('Please enter uat ip.');
1127			set_var_html = 0;
1128		} */
1129		
1130		if( set_var_html == 1 ){
1131			array_uat_url = [];
1132			jQuery('.enrollment-form-main #uat_url').each(function(){
1133				if( jQuery(this).val() == '' && set_var_html == 1 ){
1134					jQuery('.enrollment-form-main .error_msg_form').show();
1135					jQuery('.enrollment-form-main .error_msg_form').html('Please enter uat url.');
1136					set_var_html = 0;
1137				}
1138				array_uat_url.push(jQuery(this).val());
1139			});
1140		}
1141		
1142		/* if( jQuery('#uat_url').val() == '' && set_var_html == 1 ){
1143			jQuery('.enrollment-form-main .error_msg_form').show();
1144			jQuery('.enrollment-form-main .error_msg_form').html('Please enter uat url.');
1145			set_var_html = 0;
1146		} */
1147		
1148		if( set_var_html == 1 ){
1149			array_application_facing = [];
1150			jQuery('.enrollment-form-main #application_facing').each(function(){
1151				if( jQuery(this).val() == '' && set_var_html == 1 ){
1152					jQuery('.enrollment-form-main .error_msg_form').show();
1153					jQuery('.enrollment-form-main .error_msg_form').html('Please select application facing.');
1154					set_var_html = 0;
1155				}
1156				array_application_facing.push(jQuery(this).val());
1157			});
1158		}
1159		
1160		/* if( jQuery('#application_facing').val() == '' && set_var_html == 1 ){
1161			jQuery('.enrollment-form-main .error_msg_form').show();
1162			jQuery('.enrollment-form-main .error_msg_form').html('Please select application facing.');
1163			set_var_html = 0;
1164		} */
1165		
1166		if( set_var_html == 1 ){
1167			array_production_ip = [];
1168			jQuery('.enrollment-form-main #production_ip').each(function(){
1169				if( jQuery(this).val() == '' && set_var_html == 1 ){
1170					jQuery('.enrollment-form-main .error_msg_form').show();
1171					jQuery('.enrollment-form-main .error_msg_form').html('Please enter production ip.');
1172					set_var_html = 0;
1173				}
1174				array_production_ip.push(jQuery(this).val());
1175			});
1176		}
1177		
1178		/* if( jQuery('#production_ip').val() == '' && set_var_html == 1 ){
1179			jQuery('.enrollment-form-main .error_msg_form').show();
1180			jQuery('.enrollment-form-main .error_msg_form').html('Please enter production ip.');
1181			set_var_html = 0;
1182		} */
1183		
1184		if( set_var_html == 1 ){
1185			array_production_url = [];
1186			jQuery('.enrollment-form-main #production_url').each(function(){
1187				if( jQuery(this).val() == '' && set_var_html == 1 ){
1188					jQuery('.enrollment-form-main .error_msg_form').show();
1189					jQuery('.enrollment-form-main .error_msg_form').html('Please enter production url.');
1190					set_var_html = 0;
1191				}
1192				array_production_url.push(jQuery(this).val());
1193			});
1194		}
1195		
1196		/* if( jQuery('#production_url').val() == '' && set_var_html == 1 ){
1197			jQuery('.enrollment-form-main .error_msg_form').show();
1198			jQuery('.enrollment-form-main .error_msg_form').html('Please enter production url.');
1199			set_var_html = 0;
1200		} */
1201		
1202		if( set_var_html == 1 ){
1203			array_criticality = [];
1204			jQuery('.enrollment-form-main #criticality').each(function(){
1205				if( jQuery(this).val() == '' && set_var_html == 1 ){
1206					jQuery('.enrollment-form-main .error_msg_form').show();
1207					jQuery('.enrollment-form-main .error_msg_form').html('Please select criticality.');
1208					set_var_html = 0;
1209				}
1210				array_criticality.push(jQuery(this).val());
1211			});
1212		}
1213		
1214		/* if( jQuery('#criticality').val() == '' && set_var_html == 1 ){
1215			jQuery('.enrollment-form-main .error_msg_form').show();
1216			jQuery('.enrollment-form-main .error_msg_form').html('Please select criticality.');
1217			set_var_html = 0;
1218		} */
1219		
1220		if( set_var_html == 1 ){
1221			array_major_cr = [];
1222			jQuery('.enrollment-form-main #major_cr').each(function(){
1223				if( jQuery(this).val() == '' && set_var_html == 1 ){
1224					jQuery('.enrollment-form-main .error_msg_form').show();
1225					jQuery('.enrollment-form-main .error_msg_form').html('Please select major cr.');
1226					set_var_html = 0;
1227				}
1228				array_major_cr.push(jQuery(this).val());
1229			});
1230		}
1231		
1232		/* if( jQuery('#major_cr').val() == '' && set_var_html == 1 ){
1233			jQuery('.enrollment-form-main .error_msg_form').show();
1234			jQuery('.enrollment-form-main .error_msg_form').html('Please select major cr.');
1235			set_var_html = 0;
1236		} */
1237		
1238		if( set_var_html == 1 ){
1239			array_go_live_date = [];
1240			jQuery('.enrollment-form-main #go_live_date').each(function(){
1241				if( jQuery(this).val() == '' && set_var_html == 1 ){
1242					jQuery('.enrollment-form-main .error_msg_form').show();
1243					jQuery('.enrollment-form-main .error_msg_form').html('Please select live date.');
1244					set_var_html = 0;
1245				}
1246				array_go_live_date.push(jQuery(this).val());
1247			});
1248		}
1249		
1250		/* if( jQuery('#go_live_date').val() == '' && set_var_html == 1 ){
1251			jQuery('.enrollment-form-main .error_msg_form').show();
1252			jQuery('.enrollment-form-main .error_msg_form').html('Please select live date.');
1253			set_var_html = 0;
1254		} */
1255		
1256		if( set_var_html == 1 ){
1257			array_tiering = [];
1258			jQuery('.enrollment-form-main #tiering').each(function(){
1259	
1259			if( jQuery(this).val() == '' && set_var_html == 1 ){
1260					jQuery('.enrollment-form-main .error_msg_form').show();
1261					jQuery('.enrollment-form-main .error_msg_form').html('Please enter tiering.');
1262					set_var_html = 0;
1263				}
1264				array_tiering.push(jQuery(this).val());
1265			});
1266		}
1267		
1268		/* if( jQuery('#tiering').val() == '' && set_var_html == 1 ){
1269			jQuery('.enrollment-form-main .error_msg_form').show();
1270			jQuery('.enrollment-form-main .error_msg_form').html('Please enter tiering.');
1271			set_var_html = 0;
1272		} */
1273		
1274		if( set_var_html == 1 ){
1275			array_user_role = [];
1276			jQuery('.enrollment-form-main #user_role').each(function(){
1277				if( jQuery(this).val() == '' && set_var_html == 1 ){
1278					jQuery('.enrollment-form-main .error_msg_form').show();
1279					jQuery('.enrollment-form-main .error_msg_form').html('Please select user role.');
1280					set_var_html = 0;
1281				}
1282				array_user_role.push(jQuery(this).val());
1283			});
1284		}
1285		
1286		/* if( jQuery('#user_role').val() == '' && set_var_html == 1 ){
1287			jQuery('.enrollment-form-main .error_msg_form').show();
1288			jQuery('.enrollment-form-main .error_msg_form').html('Please select user role.');
1289			set_var_html = 0;
1290		} */
1291		
1292		if( set_var_html == 1 ){
1293			array_scope_testing = [];
1294			jQuery('.enrollment-form-main #scope_testing').each(function(){
1295				if( jQuery(this).val() == '' && set_var_html == 1 ){
1296					jQuery('.enrollment-form-main .error_msg_form').show();
1297					jQuery('.enrollment-form-main .error_msg_form').html('Please enter scope of testing(VAPT) & exclusions.');
1298					set_var_html = 0;
1299				}
1300				array_scope_testing.push(jQuery(this).val());
1301			});
1302		}
1303		
1304		/* if( jQuery('#scope_testing').val() == '' && set_var_html == 1 ){
1305			jQuery('.enrollment-form-main .error_msg_form').show();
1306			jQuery('.enrollment-form-main .error_msg_form').html('Please enter scope of testing(VAPT) & exclusions.');
1307			set_var_html = 0;
1308		} */
1309		
1310		if( set_var_html == 1 ){
1311			jQuery('.enrollment-form-main .form_img').show();
1312			jQuery.ajax({
1313				type: "POST",
1314				url: my_ajax_object.ajax_url,
1315				dataType:"json",
1316				data: { 
1317					action: 'enrollment_custom_main',
1318					array_application_name: array_application_name,
1319					array_application_owner: array_application_owner,
1320					array_application_owner_email: array_application_owner_email,
1321					array_application_for: array_application_for,
1322					array_application_type: array_application_type,
1323					array_no_of_applications: array_no_of_applications,
1324					array_application_version: array_application_version,
1325					array_uat_ip: array_uat_ip,
1326					array_uat_url: array_uat_url,
1327					array_application_facing: array_application_facing,
1328					array_production_ip: array_production_ip,
1329					array_production_url: array_production_url,
1330					array_criticality: array_criticality,
1331					array_major_cr: array_major_cr,
1332					array_go_live_date: array_go_live_date,
1333					array_tiering: array_tiering,
1334					array_user_role: array_user_role,
1335					array_scope_testing: array_scope_testing,
1336				},
1337				success: function(data){
1338					jQuery('.enrollment-form-main .form_img').hide();						
1339					jQuery('.enrollment-form-main .success_msg_form').show();
1340					window.location.href = "https://tacsecurity.com/thankyou/";
1341					jQuery('.enrollment-form-main .success_msg_form').html('Your request has been successfully submitted.');
1342					
1343				}
1344			});
1345		}
1346		
1347		setTimeout(function () {
1348			jQuery('.enrollment-form-main .error_msg_form').hide();
1349			jQuery('.enrollment-form-main .success_msg_form').hide();
1350        }, 5000);
1351		
1352	});
1353	
1354	
1355	function isEmail(email) {
1356	  var regex = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/;
1357	  return regex.test(email);
1358	}
1359	
1360	function check_bussiness_email(email){
1361		if( email.includes('aim.com') || email.includes('aol.com') || email.includes('att.net') || email.includes('bol.com.br') || email.includes('centurytel.net') || email.includes('ctemplar.com') || email.includes('facebook.com') || email.includes('frontiernet.net') || email.includes('gmail.com') || email.includes('googlemail.com') || email.includes('hotmail.co.uk') || email.includes('hotmail.com') || email.includes('hotmail.de') || email.includes('hotmail.es') || email.includes('hotmail.fr') || email.includes('hotmail.it') || email.includes('hushmail.com') || email.includes('juno.com') || email.includes('libero.it') || email.includes('live.ca') || email.includes('live.co.uk') || email.includes('live.com') || email.includes('live.com.au') || email.includes('live.fr') || email.includes('live.it') || email.includes('live.nl') || email.includes('mac.com') || email.includes('mail.com') || email.includes('mail.ru') || email.includes('mailbox.org') || email.includes('mailfence.com') || email.includes('malinator.com') || email.includes('msn.com') || email.includes('outlook.com') || email.includes('posteo.de') || email.includes('protonmail.com') || email.includes('qq.com') || email.includes('rediffmail.com') || email.includes('rocketmail.com') || email.includes('runbox.com') || email.includes('securemyemail.com') || email.includes('sfr.fr') || email.includes('tutanota.com') || email.includes('uol.com.br') || email.includes('virgilio.it') || email.includes('webmail.bell.net') || email.includes('webmail.logix.in') || email.includes('yahoo.ca') || email.includes('yahoo.co.id') || email.includes('yahoo.co.in') || email.includes('yahoo.co.jp') || email.includes('yahoo.co.uk') || email.includes('yahoo.com') || email.includes('yahoo.com.ar') || email.includes('yahoo.com.au') || email.includes('yahoo.com.br') || email.includes('yahoo.com.mx') || email.includes('yahoo.com.sg') || email.includes('yahoo.de') || email.includes('yahoo.es') || email.includes('yahoo.fr') || email.includes('yahoo.in') || email.includes('yahoo.it') || email.includes('yandex.ru') || email.includes('ymail.com') || email.includes('yopmail.com') || email.includes('ziggo.nl') || email.includes('zoho.com') || email.includes('zonnet.nl') || email.includes('gmail.co.in') || email.includes('yandex.com') || email.includes('gawab.com') || email.includes('inbox.com') || email.includes('gmx.com') || email.includes('in.com') || email.includes('wanadoo.fr') || email.includes('comcast.net') || email.includes('free.fr') || email.includes('gmx.de') ){
1362			return false;
1363		}else{
1364			return true;
1365		}
1366	}
1367	
1368});

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.