PageSourceSearch

https://www.aoiphysicaltherapy.com/js/functions.js

js aoiphysicaltherapy.com collected 2026-10-04 16:06:39 UTC 12,363 bytes, 459 lines download raw bytes

1
2// footer form validation
3function Contactft() {
4    firstName = document.ftForm.txtName;
5    if (firstName.value == "" || !isNaN(firstName.value)) {
6        alert("Please enter your name");
7        firstName.focus();
8        return false;
9    }
10
11    mailid = document.ftForm.txtEmail;
12    if (mailid.value == '') {
13        alert("Please enter E-mail Id");
14        mailid.focus();
15        return false;
16    } else if (mailid.value.indexOf("@") == -1 || mailid.value.indexOf(".") == -1) {
17        alert("Invalid E-mail ID");
18        mailid.focus();
19        return false;
20    }
21	
22	firstPhone = document.ftForm.txtPhone
23    if (firstPhone.value == "") {
24        alert("Please enter your Contact Number");
25        firstPhone.focus();
26        return false;
27    }
28
29    comments = document.ftForm.textComments
30    if (comments.value == "" || !isNaN(comments.value)) {
31        alert("Please add your comments");
32        comments.focus();
33        return false;
34    }
35  var answer = document.getElementById("answer");
36
37	var digit1 = parseInt(document.getElementById("digit1").innerHTML);
38
39	var digit2 = parseInt(document.getElementById("digit2").innerHTML);
40
41	var sum = digit1 + digit2;
42
43	if(answer.value == ""){
44
45		alert("Please add the numbers");
46		answer.focus();
47		return false;	
48
49	}else if(answer.value != sum){
50
51		alert("Wrong Answer");
52		answer.focus()
53		return false		
54
55	}
56}
57// Contact Us form validation
58function Contactus() {
59    firstName = document.cuForm.txtName;
60    if (firstName.value == "" || !isNaN(firstName.value)) {
61        alert("Please enter your name");
62        firstName.focus();
63        return false;
64    }
65
66    mailid = document.cuForm.txtEmail;
67    if (mailid.value == '') {
68        alert("Please enter E-mail Id");
69        mailid.focus();
70        return false;
71    } else if (mailid.value.indexOf("@") == -1 || mailid.value.indexOf(".") == -1) {
72        alert("Invalid E-mail ID");
73        mailid.focus();
74        return false;
75    }
76	
77	firstPhone = document.cuForm.txtPhone
78    if (firstPhone.value == "") {
79        alert("Please enter your Contact Number");
80        firstPhone.focus();
81        return false;
82    }
83
84    comments = document.cuForm.textComments
85    if (comments.value == "" || !isNaN(comments.value)) {
86        alert("Please add your comments");
87        comments.focus();
88        return false;
89    }
90  
91    if (document.cuForm.uword.value == "") {
92        alert('Enter the code as it is shown');
93        document.cuForm.uword.focus();
94        return false;
95    }
96    
97    return jcap();
98}
99// Contact Us form validation
100function Tellform() {
101
102    firstName = document.tellForm.txtName
103    if (firstName.value == "" || !isNaN(firstName.value)) {
104        alert("Please enter your name");
105        firstName.focus()
106        return false;
107    }
108
109    mailid = document.tellForm.txtEmail
110    if (mailid.value == '') {
111        alert("Please enter E-mail Id");
112        mailid.focus()
113        return false
114    } else if (mailid.value.indexOf("@") == -1 || mailid.value.indexOf(".") == -1) {
115        alert("Invalid E-mail ID")
116        mailid.focus()
117        return false;
118    }
119
120    frndName = document.tellForm.txtfrndName
121    if (frndName.value == "" || !isNaN(frndName.value)) {
122        alert("Please enter your friend name");
123        frndName.focus()
124        return false;
125    }
126
127    frndmailid = document.tellForm.txtfrndEmail
128    if (frndmailid.value == '') {
129        alert("Please enter friend E-mail Id");
130        frndmailid.focus()
131        return false
132    } else if (frndmailid.value.indexOf("@") == -1 || frndmailid.value.indexOf(".") == -1) {
133        alert("Invalid E-mail ID")
134        frndmailid.focus()
135        return false
136    }
137
138    comments = document.tellForm.txtMessage
139    if (comments.value == "" || !isNaN(comments.value)) {
140        alert("Please add your comments");
141        comments.focus()
142        return false
143    }
144    if (document.tellForm.uword.value == "") {
145        alert('Enter the code as it is shown');
146        document.tellForm.uword.focus();
147        return false;
148    }
149    return jcap();
150}
151
152// Feedback form validation
153function Feedback() {
154    firstName = document.fbForm.txtFirstname
155    if (firstName.value == "" || !isNaN(firstName.value)) {
156        alert("Please enter your first name");
157        firstName.focus()
158        return false
159    }
160
161    lastName = document.fbForm.txtlastname
162    if (lastName.value == "" || !isNaN(lastName.value)) {
163        alert("Please enter your last name");
164        lastName.focus()
165        return false
166    }
167
168    dayPhone = document.fbForm.txtworkphone
169    if (isNaN(dayPhone.value)) {
170        alert("Phone number you have entered is invalid");
171        dayPhone.focus()
172        return false
173    }
174
175    eveningPhone = document.fbForm.txthomephone
176    if (isNaN(eveningPhone.value)) {
177        alert("Phone number you have entered is invalid");
178        eveningPhone.focus()
179        return false
180    }
181
182    mailid = document.fbForm.txtemail
183    if (mailid.value == '') {
184        alert("Please enter E-mail Id");
185        mailid.focus()
186        return false
187    } else if (mailid.value.indexOf("@") == -1 || mailid.value.indexOf(".") == -1) {
188        alert("Invalid E-mail ID")
189        mailid.focus()
190        return false
191    }
192
193    age = document.fbForm.cmbAgeRange
194    if (age.options[age.selectedIndex].value == "") {
195        alert("Please select your age group");
196        age.focus()
197        return false
198    }
199
200    sportsAct = document.fbForm.txtsports
201    if (sportsAct.value != "" && !isNaN(sportsAct.value)) {
202        alert("Please enter Sports Activities");
203        sportsAct.focus()
204        return false
205    }
206
207    comments = document.fbForm.txtComments
208    if (comments.value == "" || !isNaN(comments.value)) {
209        alert("Please add your comments");
210        comments.focus()
211        return false
212    }
213    if (document.fbForm.uword.value == "") {
214        alert('Enter the code as it is shown');
215        document.fbForm.uword.focus();
216        return false;
217    }
218    return jcap();
219
220
221}
222
223// Appointments form validation
224function Appointment() {
225    if (document.frmAppointment.txtFirstName.value == "" || !isNaN(document.frmAppointment.txtFirstName.value)) {
226        alert('Enter FirstName');
227        document.frmAppointment.txtFirstName.focus();
228        return false;
229    }
230    if (document.frmAppointment.txtSurname.value == "" || !isNaN(document.frmAppointment.txtSurname.value)) {
231        alert('Enter Surname');
232        document.frmAppointment.txtSurname.focus();
233        return false;
234    }
235    if (document.frmAppointment.textInjury.value == "") {
236        alert("Enter your Injury Details");
237        document.frmAppointment.textInjury.focus();
238        return false;
239    }
240    if (document.frmAppointment.txtHomePhoneNumber.value == "") {
241        alert('Enter Home Phone No.');
242        document.frmAppointment.txtHomePhoneNumber.focus();
243        return false;
244    }
245
246    if (document.frmAppointment.txtEmailAddress.value == "") {
247        alert('Enter Email Address');
248        document.frmAppointment.txtEmailAddress.focus();
249        return false;
250    } else if (document.frmAppointment.txtEmailAddress.value.indexOf("@") == -1 || document.frmAppointment.txtEmailAddress.value.indexOf(".") == -1) {
251        alert("Invalid E-mail ID")
252        document.frmAppointment.txtEmailAddress.focus();
253        return false;
254    }
255
256  
257    if (document.frmAppointment.uword.value=="" )
258	{
259	alert('Enter the code as it is shown');
260	document.frmAppointment.uword.focus();
261	return false;
262	}
263	return jcap();
264}
265// Testimonials form validation  ------------------------------------------------------------------------------//
266
267function Testimonials() {
268	yourName = document.TestimonialsForm.txtyourname
269	if (yourName.value == "")
270	{
271		alert("Please enter Your Name");
272		yourName.focus()
273		return false
274	}
275	mailid = document.TestimonialsForm.txtyouremail
276	if (mailid.value == '')
277	{
278		alert("Please enter Your E-mail Id");
279		mailid.focus()
280		return false
281	}
282	else if (mailid.value.indexOf("@")==-1 || mailid.value.indexOf(".")==-1){
283		alert("Invalid E-mail ID")
284		mailid.focus()
285		return false
286	}
287	testimonial = document.TestimonialsForm.txttestimonial
288	if (testimonial.value == "" || !isNaN(testimonial.value))
289	{
290		alert("Please add Your Testimonial");
291		testimonial.focus()
292		return false
293	}
294	if (document.TestimonialsForm.uword.value=="" )
295	{
296	alert('Enter the code as it is shown');
297	document.TestimonialsForm.uword.focus();
298	return false;
299	}
300	return jcap();
301}
302
303
304// Accordion Panels JS ----------
305$(function () {
306    //  Accordion Panels
307    $(".accordion div").show();
308    setTimeout("$('.accordion div').slideToggle('slow');", 500);
309	$( ".pane .accordion" ).slideToggle("slow").siblings(".accordion:visible").slideUp("slow");
310
311	$( ".pane .clear-float" ).slideToggle("slow").siblings(".clear-float:visible").slideUp("slow");
312    $(".accordion h2").click(function () {
313        $(this).next(".pane").slideToggle("slow").siblings(".pane:visible").slideUp("slow");
314        $(this).toggleClass("current");
315        $(this).siblings("h2").removeClass("current");
316    });
317}); 
318$(document).ready(function() {
319	$('.accordion h2').click(function() {
320		$(this).animate({"scrollTop": $(".accordion h2").scrollTop() + 100});
321	});
322});
323// Interactivity JS ----------
324// Scrolling JS ----------
325$( window ).on("load", function() {
326	$("#flexiselDemo1").flexisel({
327		visibleItems: 3,
328		animationSpeed: 1500,
329		autoPlay: true,
330		autoPlaySpeed: 6000,
331		pauseOnHover: true,
332		enableResponsiveBreakpoints: true,
333		responsiveBreakpoints: {
334			portrait: {
335				changePoint:480,
336				visibleItems: 1
337				},
338				landscape: {
339					changePoint:640,
340					visibleItems: 2
341				},
342				tablet: {
343					changePoint:800,
344					visibleItems: 2
345				}
346			}
347		});
348	$("#flexiselDemo2").flexisel({
349		visibleItems: 1,
350		animationSpeed: 1500,
351		autoPlay: true,
352		autoPlaySpeed: 6000,
353		pauseOnHover: true,
354		enableResponsiveBreakpoints: true,
355		responsiveBreakpoints: {
356			portrait: {
357				changePoint:480,
358				visibleItems: 1
359				},
360				landscape: {
361					changePoint:640,
362					visibleItems: 1
363				},
364				tablet: {
365					changePoint:800,
366					visibleItems: 1
367				}
368			}
369	});
370}); 
371$( window ).on("load", function() {
372	$("#Slider1").responsiveSlides({
373		auto: true,
374		pause: true,
375		speed: 500,
376		timeout: 4000,
377		namespace: 'Banner',
378		manualControls: '#Slider1-Tabs'
379	});
380    $("#Slider2").responsiveSlides({
381		auto: true,
382		pause: true,
383		speed: 500,
384		timeout: 4000,
385		namespace: 'Banner',
386		manualControls: '#Slider1-Tabs'
387	});
388	$("#Slider3").responsiveSlides({
389		auto: true,
390		pause: true,
391        nav: true,
392		speed: 500,
393		timeout: 4000,
394		namespace: 'location',
395		manualControls: '#Location-Tabs'
396	});
397});
398// Slider JS ----------
399$(document).ready(function () {
400     $('#Services-tabs').slick({
401        infinite: true,
402        slidesToShow: 4,
403        slidesToScroll: 1,
404		centerPadding: '0px',
405		autoplay: true,
406        autoplaySpeed: 4000,
407        responsive: [
408         {
409      breakpoint: 850,
410      settings: {
411        arrows: false,
412        centerPadding: '0px',
413        slidesToShow: 3
414      }
415    },
416    {
417      breakpoint: 768,
418      settings: {
419        arrows: false,
420        centerPadding: '0px',
421        slidesToShow: 2
422      }
423    },
424    {
425      breakpoint: 641,
426      settings: {
427        arrows: false,
428        centerPadding: '0px',
429        slidesToShow: 2
430      }
431    },
432    {
433      breakpoint: 480,
434      settings: {
435        arrows: false,
436        centerPadding: '0px',
437        slidesToShow: 1
438      }
439    }
440  ]
441    });
442});
443
444// ScrollTop JS ----------
445$(document).ready(function() {
446	$('body').append('<div id="backtotop" class="backtotop"><a href="javascript:void(0);">Top</a></div>');
447	$(window).scroll(function() {
448		if($(this).scrollTop() != 0) {
449			$('#backtotop').fadeIn('slow');
450		} else {
451			$('#backtotop').fadeOut('fast');
452		}
453	});
454	$('#backtotop').click(function() {
455		$('body,html').animate({scrollTop:0},900);
456	});
457});
458
459

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.