﻿$(function () {
	$(".pkg-item-pax").hide(0);
	$(".pkg-item-paxshow").toggle(
		function () {
			$(this).attr("class", "pkg-item-paxhide");
			$(this).parent().next().next().show(0);
		},
		function () {
		    $(this).attr("class", "pkg-item-paxshow");
		    $(this).parent().next().next().hide(0);
		}
	);
	$(".pkg-pax-submit").click(function () {
		$.post(
			window._url_verifyinit,
			$(this.form).serialize(),
			function (data) {
				if (data.Errors == null || data.Errors=="") {
					var act = window._url_verify;
					$(location).attr('href', act);
				}
				else {
					$("#results-errors").text(data.Errors);
				}
			});
	});
});

