// JavaScript Document

	$(document).ready(function(){
		
		$(".wpcf7-form-control-wrap > br:lt(18)").remove();
		
		$('#nextPersonal').click (function() {

			var FistName = document.getElementById('FistName');
			var LastName = document.getElementById('LastName');
			var Email = document.getElementById('Email');
			var Address = document.getElementById('Address');
			var City = document.getElementById('City');
			var State = document.getElementById('State');
			var ZipCode = document.getElementById('ZipCode');
			var Country = document.getElementById('Country');
			var HomePh = document.getElementById('HomePh');
			
			if(FistName.value != "" && LastName.value != "" && Email.value != "" && Address.value != "" && City.value != "" && State.value != "" && ZipCode.value != "" && Country.value != "" && HomePh.value != "") {
				$('#personal').css('display','none');
				$('#course').css('display','block');
				$('#others').css('display','none');
				scrollTo(0,0)
			}
			else {
				alert("Please Fill Required Fields!");
				
				if(FistName.value == "") {
					$('#FistName').css('border','1px solid #F00');
					FistName.focus();
				}
				if(LastName.value == "") {
					$('#LastName').css('border','1px solid #F00');
					LastName.focus();					
				}
				if(Email.value == "") {
					$('#Email').css('border','1px solid #F00');
					Email.focus();
				}
				if(Address.value == "") {
					$('#Address').css('border','1px solid #F00');
					Address.focus();
				}
				if(City.value == "") {
					$('#City').css('border','1px solid #F00');
					City.focus();
				}
				if(State.value == "") {
					$('#State').css('border','1px solid #F00');
					State.focus();
				}
				if(ZipCode.value == "") {
					$('#ZipCode').css('border','1px solid #F00');
					ZipCode.focus();
				}
				if(Country.value == "") {
					$('#Country').css('border','1px solid #F00');
					Country.focus();
				}
				if(HomePh.value == ""){
					$('#HomePh').css('border','1px solid #F00');
					HomePh.focus();
				}
			}
		});

		$('#nextCourse').click (function() {
			$('#personal').css('display','none');
			$('#course').css('display','none');
			$('#others').css('display','block');
			scrollTo(0,0)
		});
	});

