Pass Details - Texas State Parks (2024)

< Back to Product Catalog

Pass Details - Texas State Parks (1)

Pass Details - Texas State Parks (2)

Pass Details - Texas State Parks (3)

" );} else {$j(".posSlickCarousel").slick("slickAdd", "

Pass Details - Texas State Parks (4)

" );}}if( imageURLs.length > 1 ) {$j(".posSlickCarousel").slick("slickSetOption", {"dots":true}, true);} else {$j(".posSlickCarousel").slick("slickSetOption", {"dots":false}, true);}}function toggleSendNewCard(id) {if ($j("#" + id).prop('checked')) {$j("#" + id + "ShippAddrDiv").show();} else {$j("#" + id + "ShippAddrDiv").hide();}}function toggleSecPassInfo(id) {if ($j("#showSecondaryPassInfo").val() == '1') {$j("#" + id + "Details").hide();$j("#" + id + " .secPassInfo .fa" ).removeClass("fa-angle-up");$j("#" + id + " .secPassInfo .fa" ).addClass("fa-angle-down");$j("#showSecondaryPassInfo").val("0");} else {$j("#" + id + "Details").show();$j("#" + id + " .secPassInfo .fa" ).removeClass("fa-angle-down");$j("#" + id + " .secPassInfo .fa" ).addClass("fa-angle-up");$j("#showSecondaryPassInfo").val("1");}}function setRenewSecPass(){$j("#renewSecondaryPass").val("1");$j("#renewalSecPassInfoDivSelected").show();$j("#renewalSecPassInfoDivUnSelected").hide();toggleSecPassInfo("renewalSecPassInfoDivUnSelected");if($j("#sendNewCardForSecondaryPass").prop('checked')){$j("#renewalSecPassInfoDivSelected .secPassInfo span:nth-of-type(1)").hide();$j("#renewalSecPassInfoDivSelected .secPassInfo span:nth-of-type(2)").show();}else{$j("#renewalSecPassInfoDivSelected .secPassInfo span:nth-of-type(1)").show();$j("#renewalSecPassInfoDivSelected .secPassInfo span:nth-of-type(2)").hide();}}function removeRenewSecPass(){$j("#renewSecondaryPass").val("0");$j("#renewalSecPassInfoDivSelected").hide();$j("#renewalSecPassInfoDivUnSelected").show();toggleSecPassInfo("renewalSecPassInfoDivSelected");}function cancelRenewSecPass(){toggleSecPassInfo("renewalSecPassInfoDivUnSelected");}function toggleReplaceButton() {var ack = document.getElementById("replacePassAgree");if (ack && !ack.checked) {document.getElementById('btnbookdates').disabled = true; document.getElementById('btnbookdates').style = "cursor:default;";} else {document.getElementById('btnbookdates').disabled = false; document.getElementById('btnbookdates').style = "cursor:pointer;";}}//START - The popup solution to change address has been deprecated. This code below should eventually be deleted.function posDifferentAddrPopup (detailsLink){ req = { action: "differentAddrPopup", detailsLink: detailsLink }; $j.ajax({ url: "/ajax/POSDifferentShippingAddressService?" + $j.param( req , true), type: 'POST', contentType: 'application/json', success: function (response) { obj = $j.parseJSON( "" + response ); var popup = obj.dialogPopup; popupActions = { ok : function(event){ submitDifferentAddr(); } }; $j(document).scrollTop(0); var dialogPopup = openDialog( popup, popupActions, req.action ); populateDialogValues(); }, error: function () { } }); };function populateDialogValues() {if ($j("#recipientFirstName").val()) {$j("#firstname" ).val($j("#recipientFirstName").val());}if ($j("#recipientLastName").val()) {$j("#lastname" ).val($j("#recipientLastName").val());}if ($j("#recipientAddress").val()) {$j("#address" ).val($j("#recipientAddress").val());}if ($j("#recipientCity").val()) {$j("#city" ).val($j("#recipientCity").val());}if ($j("#recipientState").val() && $j("#recipientCountry").val()) {changeStateProvincePOSAddr($j("#recipientCountry").val(), "mailing");$j("#state" ).val($j("#recipientState").val());}if ($j("#recipientZipcode").val()) {$j("#zipcode" ).val($j("#recipientZipcode").val());}if ($j("#recipientCountry").val()) {$j("#country" ).val($j("#recipientCountry").val());}}function openDialog( popup, popupActions, reqAction ){mobileClass = FavoritesService.isMobile() ? " mobile-dialog" : "";var popupId = (popup.id != null) ? popup.id : reqAction;$j("body").append($j("

" + popup.content + "

") );popUp = $j("#" + popupId).dialog( {modal: popup.modal,title: popup.title,closeText: "",resizable: popup.resizable,dialogClass: popup.dialogClass + mobileClass,open: function( event, ui){$j(this).find("button").click(function(){btnVal = $j(this).attr("value");if( popupActions[ btnVal ] != null ){try{popupActions[ btnVal ].call();}catch( err ){}}})FavoritesService.setupCloseButton();},close: function(event, ui){$j(this).empty(); $j(this).remove(); }});return popUp;}function submitDifferentAddr () { //Validation hasErrors = false; if (!document.getElementById( 'firstname' ).value) { $j("#firstname" ).addClass("msg error"); hasErrors = true; } else { $j("#firstname" ).removeClass("msg error"); } if (!document.getElementById( 'lastname' ).value) { $j("#lastname" ).addClass("msg error"); hasErrors = true; } else { $j("#lastname" ).removeClass("msg error"); } if (!document.getElementById( 'address' ).value) { $j("#address" ).addClass("msg error"); hasErrors = true; } else { $j("#address" ).removeClass("msg error"); } if (!document.getElementById( 'city' ).value) { $j("#city" ).addClass("msg error"); hasErrors = true; } else { $j("#city" ).removeClass("msg error"); } if (!document.getElementById( 'country' ).value) { $j("#country" ).addClass("msg error"); hasErrors = true; } else { $j("#country" ).removeClass("msg error"); } if (!document.getElementById( 'zipcode' ).value) { $j("#zipcode" ).addClass("msg error"); hasErrors = true; } else { $j("#zipcode" ).removeClass("msg error"); if (document.getElementById( 'country' ).value == 'USA') { if (!isValidUSZip(document.getElementById( 'zipcode' ).value)) { $j("#zipcode" ).addClass("msg error"); hasErrors = true; } else { $j("#zipcode" ).removeClass("msg error"); } } else if (document.getElementById( 'country' ).value == 'CAN') { if (!isValidCAPostalCode(document.getElementById( 'zipcode' ).value)) { $j("#zipcode" ).addClass("msg error"); hasErrors = true; } else { $j("#zipcode" ).removeClass("msg error"); } } } if (hasErrors) {return false;} req = { action: "submitDifferentAddr", firstname: $j("#firstname").val(), lastname: $j("#lastname").val(), address: $j("#address").val(), city: $j("#city").val(), country: $j("#country").val(), state: $j("#state").val(), zipcode: $j("#zipcode").val() };$j.ajax({ url: "/ajax/POSDifferentShippingAddressService?" + $j.param( req , true), type: 'POST', contentType: 'application/json', success: function (response) { obj = $j.parseJSON( "" + response ); $j("#btnbookdates").hide(); clearPopUp(); if (document.getElementById("quantity")) { addSIDToURL(obj.sId, $j("#quantity").val()); } else { addSIDToURL(obj.sId, null); } }, error: function () { alert('Submission failed'); }, complete : function () { }}); }function isValidUSZip(sZip) {return /^\d{5}(-\d{4})?$/.test(sZip);}function isValidCAPostalCode(sPostalCode) { var regex = new RegExp(/^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJKLMNPRSTVWXYZ]( )?\d[ABCEGHJKLMNPRSTVWXYZ]\d$/i); if (regex.test(sPostalCode)) return true; else return false;}function clearPopUp (){ $j(".posAddressDialog").empty(); $j(".posAddressDialog").remove();}function addSIDToURL(SID, qty){ var kvp = ""; if ($j("#detailsLink").val()) { kvp = $j("#detailsLink").val().substr(1).split('&'); } else { kvp = document.location.search.substr(1).split('&'); } var i=kvp.length; var x; while(i--) { x = kvp[i].split('='); if (x[0]=='sId') { x[1] = SID; kvp[i] = x.join('='); break; } } if(i<0) {kvp[kvp.length] = ['sId',SID].join('=');} if (qty) { var i=kvp.length; var x; while(i--) { x = kvp[i].split('='); if (x[0]=='quantity') { x[1] = qty; kvp[i] = x.join('='); break; } } } if(i<0) {kvp[kvp.length] = ['quantity',qty].join('=');} if ($j("#detailsLink").val()) { window.location = kvp.join('&'); } else { document.location.search = kvp.join('&'); }}function changeStateProvincePOSAddr( optionVal, stateId ){ if( optionVal ){ $j('#state').empty(); $j('#state').append($j('#' + stateId + 'StateProvinceForOnly' + optionVal + ' > option ').clone()); } checkCountyDisplay();}function checkCountyDisplay(){var cntry = $j('#country').val();if( 'USA' == cntry){ $j('#county_container').css( 'display','block');} else { $j('#county_container').css( 'display','none');}}function checkMelissaBtnDisplay(melissaCountryList) {if (melissaCountryList != null) {//Check if we need to hide or show Melissa validate buttonvar countryVal = $j('#country').val();if (countryVal != '' && melissaCountryList.indexOf(countryVal) >= 0) {$j("#validatebtn").css("visibility", "visible");} else if (countryVal == '' || melissaCountryList.indexOf(countryVal) < 0) {$j("#validatebtn").css("visibility", "hidden");}}checkCountyDisplay();}function getSelectedValue(list) {for (var i = 0; i < list.options.length; i++) {if (list.options[i].selected)return list.options[i].value;}return list.options[0].value;}function setSelectedValue(list, value) {for (var i = 0; i < list.options.length; i++) {if (list.options[i].value == value) {list.options[i].selected = true;break;}}}//END - The popup solution to change address has been deprecated. This code above should eventually be deleted.function submitPOSDetailsForm() {var sbmtInput = $j("").attr("type", "hidden").attr("name", "addPOSToCart").val("bookdates");$j("#posDetailsForm").append( $j(sbmtInput));if( $j("#purchasesInfo").length > 0 ){$j("#posDetailsForm").append( $j("#purchasesInfo").clone());}$j("#posDetailsForm").submit();}function submitGuestPOSDetailsForm( contrCode ){var checkAddress = $j("#changeGuestShippingAddress").length == 0 || $j("#changeGuestShippingAddress").prop("checked");if( checkAddress ){changeGuestAddress( contrCode );} else {submitPOSDetailsForm();}}function toggleChangeShippingAddressSection(element) {element.slideToggle(500);var icon = $j(element).closest(".changeShippingAddrContainer").find(".changeShippingAddressTitle").first().find(".changeAddr").first(); if (icon.hasClass("expand")) {icon.removeClass('expand');icon.addClass('contract');document.getElementById("btnbookdates").disabled = true;if (document.getElementById("btncancelchange")) {document.getElementById("btncancelchange").disabled = true;}} else {icon.removeClass('contract');icon.addClass('expand');if(!$j("#ackacc").length || $j("#ackacc")[0].checked) {document.getElementById("btnbookdates").disabled = requiresPrimaryPassInfo();}if (document.getElementById("btncancelchange")) {document.getElementById("btncancelchange").disabled = false;}}}function newAddrClicked() {$j('.newAddrSection').css('display','block');$j('.profileAddrSection').css('display','none');$j("[id^=btnChangeAddress]").prop('disabled', false);clearNewAddressFields();checkCountyDisplay();}function newGuestAddrClicked(){if( $j('.newAddrSection').is(":visible")){$j('.newAddrSection').css('display','none');updateAckAccptField($j("#ackacc"), true);$j(".guest.posProductDetailsAddress").removeClass( "edit");} else {$j(".guest.posProductDetailsAddress").addClass( "edit");$j('.newAddrSection').css('display','block');updateAckAccptField($j("#ackacc"), false);$j("[id^=btnChangeAddress]").prop('disabled', false);clearNewAddressFields();checkCountyDisplay();}}function changeGuestAddress( contrCode ){if (document.getElementById('posApplyAddrToAll')) { if( (document.getElementById('posApplyAddrToAll_g') && document.getElementById('posApplyAddrToAll_g').checked == true) ){ $j("input[name=posApplyAddrToAll]").val("true"); } else { $j("input[name=posApplyAddrToAll]").val("false"); }}if (document.getElementById('dynamicAttributes_addr')) {var dynamicElements = document.getElementById("posDetailsForm").elements;if (dynamicElements !== null) {var dynamicAttrs = [];for (i = 0; i < dynamicElements.length; i++) { if (dynamicElements[i].nodeName === "INPUT" || dynamicElements[i].nodeName === "SELECT") { if (dynamicElements[i].value !== null && dynamicElements[i].value !== '') {dynamicAttrs.push(dynamicElements[i].name + ":'" + dynamicElements[i].value + "'") } } }if (dynamicAttrs !== null) {document.getElementById("dynamicAttributes_addr").value = dynamicAttrs.toString();}}}if( $j("#purchasesInfo").length > 0 ){$j("#changeShippingAddressForm").append( $j("#purchasesInfo").clone());}$j("#changeShippingAddressForm").submit();}function profileAddrClicked() {$j('.newAddrSection').css('display','none');$j('.profileAddrSection').css('display','block');$j("[id^=btnChangeAddress]").prop('disabled', false);}function triggerSubmitChangedAddress( contrCode ) {if ((document.getElementById('posApplyAddrToAll_1') && document.getElementById('posApplyAddrToAll_1').checked == true) && (document.getElementById('rb_changeShippingAddress_1') && document.getElementById('rb_changeShippingAddress_1').checked == true)) {$j("input[name=posApplyAddrToAll]").val("true");} else if ((document.getElementById('posApplyAddrToAll_2') && document.getElementById('posApplyAddrToAll_2').checked == true) && (document.getElementById('rb_changeShippingAddress_2') && document.getElementById('rb_changeShippingAddress_2').checked == true)) {$j("input[name=posApplyAddrToAll]").val("true");} else {$j("input[name=posApplyAddrToAll]").val("false");}if (document.getElementById('promoCode') && document.getElementById('promoCode_addr')) {document.getElementById("promoCode_addr").value = document.getElementById("promoCode").value;}if ($j("#primPassVerifiedVal").length > 0 && $j("#primPassVerifiedAddr").length > 0 ) {$j("#primPassVerifiedAddr").val( $j("#primPassVerifiedVal").val() );}if ($j("#primPassHolderLastNameVal").length > 0 && $j("#primPassHolderLastNameAddr").length > 0 ) {$j("#primPassHolderLastNameAddr").val( $j("#primPassHolderLastName").val() );if( $j("#primPassHolderLastNameAddr").val() == '' && $j("#primPassHolderLastNameVal") != ''){$j("#primPassHolderLastNameAddr").val( $j("#primPassHolderLastNameVal"))}}if ($j("#primPassNumberVal").length > 0 && $j("#primPassNumberAddr").length > 0 ) {$j("#primPassNumberAddr").val( $j("#primPassNumber").val() );if( $j("#primPassNumberAddr").val() == '' && $j("#primPassNumberVal") != ''){$j("#primPassNumberAddr").val( $j("#primPassNumberVal"))}}if (document.getElementById('dynamicAttributes_addr')) {var dynamicElements = document.getElementById("posDetailsForm").elements;if (dynamicElements !== null) {var dynamicAttrs = [];for (i = 0; i < dynamicElements.length; i++) { if (dynamicElements[i].nodeName === "INPUT" || dynamicElements[i].nodeName === "SELECT") { if (dynamicElements[i].value !== null && dynamicElements[i].value !== '') {dynamicAttrs.push(dynamicElements[i].name + ":'" + dynamicElements[i].value + "'") } } }if (dynamicAttrs !== null) {document.getElementById("dynamicAttributes_addr").value = dynamicAttrs.toString();}}}if( $j("#purchasesInfo").length > 0 ){$j("#changeShippingAddressForm").append( $j("#purchasesInfo").clone());}$j("#changeShippingAddressForm").submit();}function clearChangeAddressSection() {$j(".changeShippingAddressOptions").find( "div.msg.error").each(function () {$j(this).remove();});$j(".changeShippingAddressOptions").find("input:text").each(function () {$j(this).val("");});$j(".changeShippingAddressOptions").find("input:radio").each(function () {$j(this).prop( "checked", false );});$j(".changeShippingAddressOptions").find("input:checkbox").each(function () {$j(this).prop( "checked", false );});$j(".changeShippingAddressOptions").find("select").each(function () {$j(this).val("");});$j(".changeShippingAddressOptions").find(":radio").each(function () {$j(this).prop("checked", false);$j('.newAddrSection').css('display','none');$j('.profileAddrSection').css('display','none');$j("[id^=btnChangeAddress]").prop('disabled', true);});toggleChangeShippingAddressSection(element);}function clearNewAddressFields(){$j(".newAddrSection").find( "div.msg.error").each(function () {$j(this).remove();});$j(".newAddrSection").find("input:text").each(function () {$j(this).val("");});$j(".newAddrSection").find("input:radio").each(function () {$j(this).prop( "checked", false );});$j(".newAddrSection").find("input:checkbox").each(function () {$j(this).prop( "checked", false );});$j(".newAddrSection #state").each(function () {$j(this).val("");});$j(".newAddrSection #county").each(function () {$j(this).val("");});}function melisaRadiaoBtnEvent(radVal){ var radioBtnVals = radVal.split("_"); //shipping address if(radioBtnVals[0]=='4'){ if(radioBtnVals[1]=='true'){ $j("#shippingAddressUserEnteredBeSelected").val('false') }else{ $j("#shippingAddressUserEnteredBeSelected").val('true') } }}function resetRadioBtnStatus(){}function submitPOSProfileForm() {$j('#melissaConfPopupVerified').val('true');if( $j("#purchasesInfo").length > 0 ){$j("#changeShippingAddressForm").append( $j("#purchasesInfo").clone());}document.getElementById('changeShippingAddressForm').submit();}function addressDialogConfirmEvent(){ // a link scope is small, we can pop this event to his parent div var btnAddressDiv = $j('#melissaConfirmationPopupWrap #melissaConfirmationPopupButtons div.confirmButton'); var btnAddressDivLink = $j('#melissaConfirmationPopupWrap #melissaConfirmationPopupButtons div.confirmButton a'); btnAddressDiv.off('click'); btnAddressDiv.click(function(e) { if(e.target == this && btnAddressDivLink.length>0){//user click the div component not a link btnAddressDivLink[0].click(); } });}function guestCheckoutDialogBtnDivEvent(){ var btnDiv = $j('#guestCheckoutPopupWrap #guestCheckoutPopupDiv div.continueButton'); var btnLink = $j('#guestCheckoutPopupWrap #guestCheckoutPopupDiv div.continueButton a'); btnDiv.off('click'); btnDiv.click(function(e) { if(e.target == this && btnLink.length>0){//user click the div component not a link btnLink[0].click(); } }); var btnCartDiv = $j('#guestCheckoutPopupWrap #guestCheckoutPopupDiv div.cartButton'); var btnCartLink = $j('#guestCheckoutPopupWrap #guestCheckoutPopupDiv div.cartButton a'); btnCartDiv.off('click'); btnCartDiv.click(function(e) { if(e.target == this && btnCartLink.length>0){//user click the div component not a link btnCartLink[0].click(); } });}function refreshCounty (){var uri = "/posProductDetails.do?type=refreshcounty&state="+$j('#state').val();var ajax = new Ajax.DynamicHTML(uri);try {ajax.submit("&containerid=county_container");} catch (e) {console.log(e);}return false;}function onChangeCountyForMulti(){var uri = "/posProductDetails.do?type=selectmulticounty&county="+$j('#county').val() + "&state=" + $j('#state').val();var ajax = new Ajax.DynamicHTML(uri);ajax.submit("&countycontainerid=county_container");return false;}function validateAddress(){var uri = "/posProductDetails.do?type=verifyPOSaddress&country="+$j('#country').val() + "&address=" + $j('#address').val()+ "&address2=" + $j('#address2').val() + "&zip=" + $j('#zipcode').val();var ajax = new Ajax.DynamicHTML(uri);ajax.submit("&citycontainerid=city_container&statecontainerid=state_container&countycontainerid=county_container");return false;}function searchAddress(){var uri = "/posProductDetails.do?type=verifyPOSaddress&country="+$j('#country').val() + "&address=" + $j('#address').val()+ "&address2=" + $j('#address2').val()+ "&zip=" + $j('#zipcode').val();var ajax = new Ajax.DynamicHTML(uri);ajax.submit("&citycontainerid=city_container&statecontainerid=state_container&countycontainerid=county_container");return false;}// Check if all dropdowns are selectedfunction areAllDropdownsSelected(){//check inv opts modelvar multipleOpts = $j(".invOptItem select").length > 0;if( multipleOpts ){var allDropdownSelected = true;$j(".invOptItem select").each( function(){var sltdVal = $j(this).val();allDropdownSelected = allDropdownSelected && sltdVal != "";});return allDropdownSelected;}var dropdownNotSelected = false;if (typeof(childAttributesMap) != 'undefined') {for (var key in childAttributesMap) {var currentDD = document.getElementById(key);if (currentDD.type!='hidden') {if (!(currentDD && currentDD.options[currentDD.selectedIndex].value != "")) {dropdownNotSelected = true;break;}}}}return !dropdownNotSelected;}function updateAckAccptField(element, otherFieldsOK){if (otherFieldsOK == null) {otherFieldsOK = areAllDropdownsSelected();}otherFieldsOK = otherFieldsOK && !requiresPrimaryPassInfo();var chgShippingAddrSec = $j(".changeShippingAddressTitle").next(".changeShippingAddressContent").closest(".changeShippingAddrContainer").find(".changeShippingAddressTitle").first().find(".changeAddr").first();var chgShippingAddrExpended = chgShippingAddrSec.length && !chgShippingAddrSec.hasClass("expand");var addressEdit = $j("#changeGuestShippingAddress").length > 0 && $j("#changeGuestShippingAddress").prop( "checked");if($j(element).length == 0 && otherFieldsOK) {var btnDisabled = false;$j("#btnbookdates").prop("disabled", addressEdit )} else {if($j(element).prop("checked") == true) { $j("#accnack").val("1"); $j("#accnack_change").val("1"); $j("#btnbookdates").prop("disabled", addressEdit || !otherFieldsOK || chgShippingAddrExpended );} else { $j("#accnack").val(""); $j("#accnack_change").val(""); $j("#btnbookdates").prop("disabled", true); }}}var currentMatches = {};function matchAddress( address ){ var contractCode = $j("#contractCode").val(); var actionURL = "/ajax/AVSAddressAutocomplete?target=shippingaddress&contractCode=" + contractCode + "&address=" + encodeURI(address); var ajaxRequest = new Ajax.Request( actionURL, { method: "post", onComplete: function( result ){ currentMatches = JSON.parse(result.responseText); displayMatches(); } }); }function displayMatches(){ $j(".avsmatches").remove(); $j("#addrsearch").after( $j(currentMatches.content)); $j(document).on( "click", ".avsmatches-item", function(){ selectAvsAddress( $j(this).index()); });}function selectAvsAddress(indx){try{var addrMatch = currentMatches.matches[indx];$j("#address").val( addrMatch.address );$j("#city").val( addrMatch.city );$j("#zipcode").val( addrMatch.postalCode );$j("#country").val( addrMatch.countryCode );$j("#country").trigger("change");$j("#state").val( addrMatch.stateCode );resetCounties();$j("#county").val( addrMatch.countyCode );checkCountyDisplay();displayAutoDetails();}catch(err){}$j(".avsmatches").remove();}function resetCounties(){try{var counties = currentMatches.counties[ $j("#state").val() ]; $j("#county").empty(); if( counties.length > 0 ){ $j("#county").append($j("

")); } for( var i=0; i

" + c.name + "")); }}catch( err ){}}function validateExchangeFromPass(contractCodes,prdId,cartId,myOrderNumber){ $j("#btnValidExchangeFromPass").prop("disabled", true);var ajaxURL = "/ajax/exchangeFromPassValidation";var passNum = '';var orderNum = '';if($j('#posexchangefrompassnumber').length>0){passNum = $j('#posexchangefrompassnumber').val().trim();}if($j('#posexchangefromordernumber').length>0){orderNum = $j('#posexchangefromordernumber').val().trim();}req = { passNumber: passNum, orderNumber: orderNum, contractCode: contractCodes, productID : prdId, orderCartItemId: cartId, orderNumFromMyAccount: myOrderNumber };$j.ajax({ url: ajaxURL + "?" + $j.param( req , true), type: 'POST', contentType: 'application/json', success: function (response) { var obj = $j.parseJSON( "" + response ); if(obj.status=='-1'){ $j('#exchangevalidtipmsgdiv').removeClass('exchangeposhidden'); $j('#exchangevalidtipmsg').removeClass('exchangemsg'); $j('#exchangevalidtipmsg').removeClass('success'); $j('#exchangevalidtipmsg').addClass('msg topofpage error'); $j('#exchangevalidtipmsg').text(obj.message); }else{ $j('#exchangevalidtipmsgdiv').removeClass('exchangeposhidden'); $j('#exchangevalidtipmsg').removeClass('msg'); $j('#exchangevalidtipmsg').removeClass('topofpage'); $j('#exchangevalidtipmsg').removeClass('error'); $j('#exchangevalidtipmsg').addClass('exchangemsg success'); $j('#exchangevalidtipmsg').text(obj.message); } $j("#btnValidExchangeFromPass").prop("disabled", false); }, error: function () { $j("#btnValidExchangeFromPass").prop("disabled", false); }, complete : function () { $j("#btnValidExchangeFromPass").prop("disabled", false); } });}function syncExchangeFromPassInfoWhenChange( needRefreshStatus ){if($j('#posexchangefrompassnumber').length>0){passNum = $j('#posexchangefrompassnumber').val().trim();if($j('#A0_11131').length>0){ $j('#A0_11131').val(passNum);}else{ $j('.exchangeposhidden_11131 input').val(passNum);}if($j('#posexchangefrompassnumberaddr').length>0){ $j('#posexchangefrompassnumberaddr').val(passNum);}}if($j('#posexchangefromordernumber').length>0){orderNum = $j('#posexchangefromordernumber').val().trim();if($j('#A0_11147').length>0){ $j('#A0_11147').val(orderNum);}else{ $j('.exchangeposhidden_11147 input').val(orderNum);}if($j('#posexchangefromordernumberaddr').length>0){ $j('#posexchangefromordernumberaddr').val(orderNum);}}}function validatePrimaryPassInfo( contractCode, prdId){$j("#btnbookdates").prop("disabled", true);$j("#primPassVerifiedVal").val("");$j("#primPassHolderLastNameVal").val("");$j("#primPassNumberVal").val("");var ajaxURL = "/ajax/validateSecondaryPassSale";var passNum = '';var holderLastName = '';var completion = 0;if($j('#primPassNumber').length>0){passNum = $j('#primPassNumber').val().trim();if( passNum.length > 0 ){completion++;}}if($j('#primPassHolderLastName').length>0){holderLastName = $j('#primPassHolderLastName').val().trim();if( holderLastName.length > 0 ){completion++;}}if( completion < 2 ){return;}req = { primaryPassNumber: passNum, primaryPassHolderLastName: holderLastName, contractCode: contractCode, productID : prdId };$j.ajax({ url: ajaxURL + "?" + $j.param( req , true), type: 'POST', contentType: 'application/json', success: function (response) { var obj = $j.parseJSON( "" + response ); if(obj.status=='-1'){ $j("#seccPassError").html(obj.message); $j("#seccPassError").css("display", "block"); }else{ $j("#seccPassError").html(obj.message); $j("#seccPassError").css("display", "none"); $j("#primPassVerifiedVal").val("true"); $j("#primPassHolderLastNameVal").val( $j("#primPassHolderLastName").val() ); $j("#primPassHolderLastNameInfo").html( $j("#primPassHolderLastName").val() ); $j("#primPassNumberVal").val( $j("#primPassNumber").val() ); $j("#primPassNumberInfo").html( $j("#primPassNumber").val() ); $j(".posProductDetailsForm .attributesTable.variant.secpass").addClass("verified"); updateAckAccptField($j("#ackacc"), true); } }, error: function () { }, complete : function () { } });}function requiresPrimaryPassInfo(){if($j('#primPassNumber').length>0 && $j('#primPassHolderLastName').length>0){var completion = 0;var passNum = $j('#primPassNumberVal').val().trim();if( passNum.length > 0 ){completion++;}var holderLastName = $j('#primPassHolderLastNameVal').val().trim();if( holderLastName.length > 0 ){completion++;}return completion < 2;}return false;}function displayAutoDetails(){$j(".nomatchstmt").css("display", "none");$j("#autoAddressDetails").removeClass( "hidden");}function hideAutoDetails(){$j(".nomatchstmt").css("display", "block");$j("#autoAddressDetails").addClass( "hidden");}$j(document).ready(function() {if($j('#posexchangefrompassnumber').length>0){syncExchangeFromPassInfoWhenChange(false);}$j(".changeShippingAddressTitle").click(function() {toggleChangeShippingAddressSection($j(this).next(".changeShippingAddressContent"));});if ($j("#ackacc").length > 0 && $j("#ackacc").prop("checked") != true) {$j("#btnbookdates").prop("disabled",true)}$j("#melissaConfirmationPopupDiv").modalPopLite({ openButton: '#melissaConfirmationPopupOpener', closeButton: '#melissaConfirmationCloser', isModal: true }); if (document.getElementById("melissaConfPopupNeeded")) { document.getElementById("melissaConfirmationPopupWrap").style.display="block"; $j('#melissaConfirmationPopupOpener').trigger('click'); addressDialogConfirmEvent(); } checkCountyDisplay(); var resultsDelay = 500; resultsDelay =150; if (document.getElementById("guestCheckoutPopupNeeded")) { if( $j("#currentCartStatus").length > 0 ){ if( $j(".cartstatusnewicondiv #shoppingcartEnhance").length > 0 ){ $j(".cartstatusnewicondiv #shoppingcartEnhance").html($j("#currentCartStatus #shoppingcartEnhance").html()); } if( $j("#cartStatusId").length > 0 ){ $j("#cartStatusId").html($j("#newCartStatusId").html()) } }$j("#guestCheckoutPopupDiv").modalPopLite({ openButton: '#guestCheckoutPopupOpener', closeButton: '#guestCheckoutCloser', isModal: true }); $j('#guestCheckoutPopupOpener').trigger('click'); guestCheckoutDialogBtnDivEvent(); } updateAckAccptField($j("#ackacc"), areAllDropdownsSelected() ); if (document.getElementById("autoAddToCart")) { submitPOSDetailsForm(); } var matchTimer;$j("#addrsearch").keyup(function(){var addr = $j(this).val(); if ( addr.length > 2) { if (matchTimer){ clearTimeout(matchTimer); } matchTimer = setTimeout(function(){ matchAddress( addr ); }, resultsDelay); }});$j("#addrsearch").focus( function(){displayMatches();});var hideTimer;$j("#addrsearch").blur( function(){ if (hideTimer){ clearTimeout(hideTimer); } hideTimer = setTimeout(function(){ $j(".avsmatches").remove(); }, 500);});});$j(function(){ try{ var attrIds = new Array(); $j("div#exchangeattrscomponent + div.content.shop .attributeField > div label").each(function(i){attrIds[i]=($j(this).attr("for"));}); //Exchange POS Number if(attrIds.length==1 && attrIds[0].indexOf("_11131")>-1){ $j("div#exchangeattrscomponent + div.content.shop .attributesTable > div label").hide(); $j("div#exchangeattrscomponent + div.content.shop .attributesTable").css({"margin-top": "-15px", "margin-bottom": "-10px"}); $j("div#exchangeattrscomponent + div.content.shop span.requiredMarker").hide(); } }catch(e){}});function toggleAddedMembersSectionDisplay( changeCheckState ){ if(changeCheckState) { if($j("#membersheaderchboxid").is(":checked")){ $j("#membersheaderchboxid").prop( "checked", false ); }else { $j("#membersheaderchboxid").prop( "checked", true ); } }if($j("#membersheaderchboxid").is(":checked")){$j("#membersheaderseparatedivid").show();$j("#addedmemberssectionid").show();}else{$j("#membersheaderseparatedivid").hide(); $j("#addedmemberssectionid").hide(); $j(".memberitemdiv").find(".memberitemcheck").each(function () { $j(this).prop( "checked", false ); }); $j(".memberitemdiv").find(".memberitemcheck.primarymember").each(function () { $j(this).prop( "checked", true ); });}var allChecked = true; $j(".memberitemdiv").find(".memberitemcheck").each(function () { if(!$j(this).is(":checked")) { allChecked=false; } }); if(allChecked) { $j("#membersall").prop( "checked", true ); }else { $j("#membersall").prop( "checked", false ); } refreshMemberSelectedNum();}function toggleFamilyMembersAllChecked(){ showDobInputNumber = 0;if($j("#membersall").is(":checked")){ $j(".memberitemdiv").find(".memberitemcheck").each(function () { $j(this).prop( "checked", true ); toggleErrTxt( $j(this), true ) refreshMemberDobInputIfNeed( $j(this).prop('id'), true ); }); }else{ $j(".memberitemdiv").find(".memberitemcheck").each(function () { $j(this).prop( "checked", false ); toggleErrTxt( $j(this), false ) refreshMemberDobInputIfNeed( $j(this).prop('id'), false ); }); } refreshMemberSelectedNum();}function toggleFamilyMemberChecked( id ){var currentItem = document.getElementById(id);if(currentItem.checked){ var allChecked = true; $j(".memberitemdiv").find(".memberitemcheck").each(function () { if(!$j(this).is(":checked")) { allChecked=false; } }); if(allChecked) { $j("#membersall").prop( "checked", true ); } toggleErrTxt( currentItem, true ); refreshMemberDobInputIfNeed(id, true); }else{ if($j("#membersall").is(":checked")) { $j("#membersall").prop( "checked", false ); } toggleErrTxt( currentItem, false ); refreshMemberDobInputIfNeed(id, false); } refreshMemberSelectedNum();}function toggleErrTxt( elem, checked){if( checked ){$j(elem).closest(".memberitemdiv").find( ".errtxt").css("display", "block");} else {$j(elem).closest(".memberitemdiv").find( ".errtxt").css("display", "none");}}function refreshMemberSelectedNum(){ $j(".memberselectednum").html($j(".memberitemdiv").find(".memberitemcheck:checked").length)}var showDobInputNumber = 0;function refreshMemberDobInputIfNeed( id, checked ){ var dobInputEle = $j('#'+id+'_memberDobInput'); var idArrays = id.split('_'); var dobSuccessIcon = $j('#familymemberdobdivsucess_' + idArrays[1] ); if(dobInputEle.length==0){ return; } if(checked ){ if( dobInputEle.val()!=''){ dobInputEle.remove(); dobSuccessIcon.remove(); return; } dobInputEle.show(); if(dobSuccessIcon.length>0 && dobInputEle.val() != ''){ dobSuccessIcon.show(); } showDobInputNumber++; }else{ dobInputEle.hide(); if(dobSuccessIcon.length>0){ dobSuccessIcon.hide(); } if(showDobInputNumber>0){ showDobInputNumber--; } } refreshMemberListHeader();}function refreshMemberListHeader(){ if(showDobInputNumber>0){ $j('.memberslistheaderdiv .memberslistheaderdobdiv').show(); }else{ $j('.memberslistheaderdiv .memberslistheaderdobdiv').hide(); }}function capitalizeFirstLetter(s) { if(null != s && s.length > 0) { s = s.toLowerCase(); return s.substr(0, 1).toUpperCase() + s.substr(1); } else { return ""; }}function showOrHidePreviewContainer( isShow ){ if(isShow){ $j('#addFamilyMemberPopup_PopupContent .imageuploadpreviewcontainer, #addFamilyMemberPopup_PopupContent .previewpicturetitle').show(); } else { $j('#addFamilyMemberPopup_PopupContent .imageuploadpreviewcontainer, #addFamilyMemberPopup_PopupContent .previewpicturetitle').hide(); }}function updateExistRecord( recordId, firstName, lastName, dobStr, newPicture ){ var memberid=recordId; var membername=capitalizeFirstLetter(firstName)+" "+capitalizeFirstLetter(lastName); var picture=newPicture; if(!picture){ picture = $j('#customerPassFamilyMemberUpdateOriginalPic').attr('src'); } if( picture == '' ){ picture = "images/grouppass/member.png"; } var pictureComp=''; if($j("#familymemberfileUploadInput").length>0){ pictureComp='Pass Details - Texas State Parks (5)'; } var existingClass = "memberitemcheck"; if ($j('#memberitem_'+ recordId) && $j('#memberitem_'+ recordId).attr('class')){ existingClass = $j('#memberitem_'+ recordId).attr('class'); } var chkd = $j("#memberitem_" + recordId).prop("checked"); var chkdVal = chkd ? "checked" : ""; var newMemberDiv='

Select

'; newMemberDiv += '

Name

' + pictureComp + membername + '

'; var newRecordDiv = newMemberDiv; if($j("#familymemberfileUploadInput").length>0 || $j("#memberdateofbirthid").length > 0){ newRecordDiv += '

Actions

'; newRecordDiv += 'Pass Details - Texas State Parks (6)

'; } newRecordDiv += '

' $j('#memberitem_'+ recordId).closest('.memberitemdiv').replaceWith(newRecordDiv); refreshMemberListHeader();}function appendaddedmemberdiv(addedMember){ var memberid=addedMember.id; var membername=capitalizeFirstLetter(addedMember.firstName)+" "+capitalizeFirstLetter(addedMember.lastName); var pictureComp=''; if($j("#familymemberfileUploadInput").length>0){ var picture=addedMember.picture!= null && addedMember.picture!=''?addedMember.picture:'images/grouppass/member.png'; pictureComp='Pass Details - Texas State Parks (7)'; } var newMemberDiv='

Select

'; newMemberDiv += '

Name

' + pictureComp + membername + '

'; if($j("#familymemberfileUploadInput").length>0 || $j("#memberdateofbirthid").length > 0){ newMemberDiv +='

Actions' newMemberDiv += '

' newMemberDiv += 'Pass Details - Texas State Parks (8)

'; } newMemberDiv += '

'; $j(".memberslistsection").append(newMemberDiv); toggleFamilyMemberChecked('memberitem_'+memberid); initialMemberListNameHeader();}function resetForm(){ if($j('#addNewFamilyMemberSectionFormErrorDiv').length > 0){ $j('#addNewFamilyMemberSectionFormErrorDiv').html(''); } $j('#memberfirstnameid').val(''); $j('#memberfirstnameid').removeClass('error'); $j('#memberlastnameid').val(''); $j('#memberlastnameid').removeClass('error'); if( $j('#memberdateofbirthid').length > 0){ obStr = $j('#memberdateofbirthid').val(''); $j('#memberdateofbirthid').removeClass('error'); } if($j("#familymemberfileUploadInput").length>0){ clearPhoto("familymemberfileUploadInput"); } if($j("#memberpicturepolicyid").length>0){ $j("#memberpicturepolicyid").prop( "checked", false ); } if($j("#addFamilyMemberPopup_PopupDiv .confirmButton button").length>0 && $j("#addFamilyMemberPopup_PopupDiv .confirmButton button").is(":disabled") ) { $j("#addFamilyMemberPopup_PopupDiv .confirmButton button").prop("disabled", false); } setFormReadOnlyStatus(false, false);}function validateInputValues(){ var errorItems = ''; var firstName = $j('#memberfirstnameid').val().trim(); var lastName = $j('#memberlastnameid').val().trim(); var dobStr = ''; if ($j('#memberdateofbirthid').length > 0) { dobStr = $j('#memberdateofbirthid').val().trim(); } if( firstName === '' ){ errorItems += getErrorItem( 'First Name is required.' ); $j('#memberfirstnameid').addClass('error'); } else { $j('#memberfirstnameid').removeClass('error'); } if( lastName === '' ){ errorItems += getErrorItem( 'Last Name is required.' ); $j('#memberlastnameid').addClass('error'); } else { $j('#memberlastnameid').removeClass('error'); } var supportDobInd = $j('#memberdateofbirthid').length > 0; if( supportDobInd && dobStr === '' ){ errorItems += getErrorItem( 'Date of Birth is required.' ); $j('#memberdateofbirthid').addClass('error'); } else { $j('#memberdateofbirthid').removeClass('error'); } if($j('#familymemberfileUploadInput').length>0 && $j('#familymemberfileUploadInput')[0].files.length>0) { if($j("#memberpicturepolicyid").length>0&&!$j("#memberpicturepolicyid").is(":checked")) { errorItems += getErrorItem( 'The picture uploaded will be used in your customer web profile and will be printed on your pass. To proceed please check the checkbox.' ); } } if( errorItems === '' ){ return false; } showErrorDivGroups(errorItems); return true;}function showErrorDivGroups( errorItems ){ var msgContainer = $j('#addNewFamilyMemberSectionFormErrorDiv'); msgContainer.show(); msgContainer.html(errorItems);}function getErrorItem( errorMsg ){ return '

' + errorMsg + '

';}function createErrorsMessage( msg ){ showErrorDivGroups( getErrorItem( msg ) )}function getTopErrorItem( errorMsg ){ return '

' + errorMsg + '

';}function showTopErrorsMessage( msg ){ $j('#posProductDetailsDiv').prepend(getTopErrorItem(msg));}function saveOrUpdateMemberInfo(contractCode, custId){ var hasError = validateInputValues(); if( hasError ){ return; } if($j("#addFamilyMemberPopup_PopupDiv .confirmButton button").length>0) { $j("#addFamilyMemberPopup_PopupDiv .confirmButton button").prop("disabled", true); } operateFamilyMember(contractCode, custId);}function closeAddMemberDialog(){ $j("#addFamilyMemberPopup_PopupWrap").hide(); $j("#addFamilyMemberPopup_Closer").trigger('click'); $j('#addFamilyMemberPopup_PopupTitle').html(''); $j('#addFamilyMemberPopup_PopupButtons .confirmButton button').html( 'Add Member' ); hideProcessBar(); resetForm(); clearCurrentPassRecordId();}function clearCurrentPassRecordId(){ $j('#customerPassFamilyMemberUpdateRecordId').val( '' ); $j('#addNewFamilyMemberSectionFormErrorDiv').html(''); clearPhoto("familymemberfileUploadInput");}function operateFamilyMember(contractCode, custId ) { var ajaxURL = '/ajax/familyMemberRepresentative'; var firstName = ''; var lastName = ''; var dobStr = ''; var rId = ''; var msgContainer = $j('#addNewFamilyMemberSectionFormErrorDiv'); msgContainer.html(''); if ($j('#memberfirstnameid').length > 0) { firstName = $j('#memberfirstnameid').val().trim(); } if ($j('#memberlastnameid').length > 0) { lastName = $j('#memberlastnameid').val().trim(); } if ($j('#memberdateofbirthid').length > 0) { dobStr = $j('#memberdateofbirthid').val().trim(); } if ($j('#customerPassFamilyMemberUpdateRecordId').length > 0) { rId = $j('#customerPassFamilyMemberUpdateRecordId').val().trim(); } showProcessBar(); req = { contractCode: contractCode, firstName: firstName, lastName: lastName, dob: dobStr, customerId: custId, recordId: rId, noNeedDob: $j('#memberdateofbirthid').length <= 0 }; var fileUploadData = new FormData(); if($j('#familymemberfileUploadInput').length>0 && $j('#familymemberfileUploadInput')[0].files.length >0){ var dataURL = getDataUriFromUploadFile(); var milliTimes = new Date().getTime(); var uploadFile = base64ToFile(dataURL, "img"+ milliTimes ); fileUploadData.append("file", uploadFile); } $j.ajax ({ url: ajaxURL + '?' + $j.param(req, true), type: 'POST', data: fileUploadData, contentType: false, processData: false, success: function (response) { var obj = { status: '-1', message: 'upload file failed.' }; try{ obj = $j.parseJSON ('' + response); }catch(err){ //do nothing } if($j("#addFamilyMemberPopup_PopupDiv .confirmButton button").length>0 && $j("#addFamilyMemberPopup_PopupDiv .confirmButton button").is(":disabled") ) { $j("#addFamilyMemberPopup_PopupDiv .confirmButton button").prop("disabled", false); } if (obj.status == '-1') { createErrorsMessage( obj.message ); hideProcessBar(); } else if(obj.status == '-2'){ //session time out location.href="memberSignInSignUp.do"; } else { var addedMember = { id: obj.recordId, firstName: req.firstName, lastName: req.lastName, picture: obj.picture }; if ($j('#customerPassFamilyMemberUpdateRecordId').val().trim()!='') { addedMember.firstName= $j('#memberfirstnameid').val(); addedMember.lastName = $j('#memberlastnameid').val(); $j('#customerPassFamilyMemberUpdateRecordId').val(''); updateExistRecord( rId, addedMember.firstName, addedMember.lastName, $j('#memberdateofbirthid').val(), addedMember.picture); } else { appendaddedmemberdiv(addedMember); } closeAddMemberDialog(); } }, error: function () {}, complete: function () { }, });}function hideProcessBar(){ $j('#progresspopup_search').hide(); $j('#addFamilyMemberPopup_PopupButtons').show(); resetAnimation();}function setFormReadOnlyStatus( formStatus, isDobEmpty ){ $j('#memberfirstnameid').prop('disabled', formStatus); $j('#memberlastnameid').prop('disabled', formStatus); if(formStatus){ $j('#memberdateofbirthid').prop('disabled', !isDobEmpty ); } else { $j('#memberdateofbirthid').prop('disabled', formStatus ); }}function setCurrentMemberInfo( memberId, contractCode, firstName, lastName, dobStr){ $j('#memberfirstnameid').val(firstName); $j('#memberlastnameid').val(lastName); $j('#memberdateofbirthid').val(dobStr); setFormReadOnlyStatus(true, dobStr==''); var mImgSrc = $j('#memberitem_'+memberId).closest(".memberitemdiv").find(".memberpicname").find('img').attr('src'); $j("#previewImageDivId").attr("src", mImgSrc); $j('#customerPassFamilyMemberUpdateRecordId').val(memberId); $j('#addFamilyMemberPopup_PopupTitle').html(''); $j('#addFamilyMemberPopup_PopupButtons .confirmButton button').html( 'Submit' ); $j('#customerPassFamilyMemberUpdateOriginalPic').attr('src', mImgSrc); $j('#addFamilyMemberPopup_PopupWrap .modalPopLite-wrapper').css('top',$j(document).scrollTop() + 50 ); showOrHidePreviewContainer(true);}function showProcessBar(){ showProgressBar( "progresspopup_search", 'Updating...', null, "addFamilyMemberPopup_PopupButtons");}function getNewInvOptItemsAllowed( lastItemDiv ){return $j( lastItemDiv ).find(" select option:enabled").length - 1;}function addOption(){var itemCount = $j(".invOptItem").length;var maxItemCount = $j("#maxInvOptItems").val();var lastElm = $j(".invOptItem").last();var maxToAdd = getNewInvOptItemsAllowed( lastElm );if( maxToAdd > 0 && itemCount < maxItemCount ){var elm = $j(".invOptTemplate").clone();elm.find("input[type=hidden]").remove();elm.removeClass("invOptTemplate")elm.addClass("invOptItem");elm.addClass("clear");var elmtSlct = elm.find("select");elmtSlct.attr( "name", elmtSlct.attr("id"));elmtSlct.removeAttr("disabled");elm.appendTo( $j("#invOpts") );updateSiblingInvOptions();}}function removeOption(target){var elmt = $j(target).closest(".invOptItem");elmt.remove();updateSiblingInvOptions();}function updateSiblingInvOptions(){var itemCount = 0;var allSelectorsValid = true;var purchasesInfo = "";$j(".invOptItem select").each( function(){var selector = $j(this);var sltdVal = selector.val();$j(this).html("");$j(".invOptTemplate select > option").each( function(){var opt = $j(this).clone();var optVal = opt.attr("value");var sltdElsw = selectedElsewhere( optVal );if(optVal == sltdVal){opt.attr( "selected", "selected");opt.appendTo( selector );} else if( !sltdElsw ){opt.removeAttr("selected");opt.appendTo( selector );}})var itemQtyInp = $j(this).closest(".invOptItem").find( "input[name=invoptqty]" );var sltdId = "";var itemQty = 1;var stockTxt = '';if( sltdVal != '' ){var prdMap = childAttributesMap[$j(this).attr("name")];sltdId = prdMap[sltdVal][0];var sltdQty = childQuantitiesMap[sltdId];if( sltdId != 'undefined'){var availQty = childQuantitiesMap[sltdId];if( itemQtyInp != 'undefined'){itemQty = itemQtyInp.val();if( availQty != 'undefined') {itemQtyInp.attr("min", 1 );itemQtyInp.attr("max", availQty );if( eval(itemQtyInp.val()) > availQty ){itemQtyInp.val( availQty );}} else {itemQtyInp.removeAttr( "max");}}if( availQty != 'undefined'){stockTxt = "(" + availQty + " Available)";}var itemPrice = childPricesMap[sltdId];$j(this).closest(".invOptItem").find( ".invOptPrice" ).html(itemPrice);;}} else{allSelectorsValid = false;}if( purchasesInfo != "" ){purchasesInfo += ";"}var pInfo = sltdId;if( sltdVal == "" ){pInfo = "";}purchasesInfo += pInfo + ":" + itemQtyInp.val();$j(this).closest(".invOptItem").find( ".stockqty" ).html( stockTxt );itemCount++;})if( itemCount > 1 ){$j(".remInvOpt").removeClass("hidden");} else {$j(".remInvOpt").addClass("hidden");}var maxItemCount = $j("#maxInvOptItems").val();if( itemCount >= maxItemCount ){$j(".addInvOpt").addClass("hidden");} else {$j(".addInvOpt").removeClass("hidden");}$j("#purchasesInfo").val( purchasesInfo );updateAckAccptField($j("#ackacc"), allSelectorsValid);}function updateInvOptQty(inp){var qVal = $j(inp).val();var max = $j(inp).attr("max");var min = $j(inp).attr("min");if( max != 'undefined' && qVal > eval(max) ){$j(inp).val(max);}if( min != 'undefined' && qVal < eval(min) ){$j(inp).val(min);}updateSiblingInvOptions();}function selectedElsewhere( val ){var selected = false;$j(".invOptItem select").each( function(){var selector = $j(this);if( selector.val() == val ){selected = true;}});return selected;}var originalDobStr="";function bindEnterEvent(){$j('#memberdateofbirthid').bind('keydown',function(e){var keyCode = e.keyCode || e.which || e.charCode;if (keyCode == 13 || keyCode == 9) {var dobStr = '';if ($j('#memberdateofbirthid').length > 0) {dobStr = $j('#memberdateofbirthid').val().trim();}if(dobStr.length>0){$j('div.datepicker.datepicker-dropdown').hide();}updateDatePicker(dobStr, "#memberdateofbirthid");if (keyCode == 13){e.preventDefault();e.stopPropagation();}}});$j('#memberfirstnameid,#memberlastnameid').bind('keydown',function(e){var keyCode = e.keyCode || e.which || e.charCode;if (keyCode == 13) {e.preventDefault();e.stopPropagation();}});var dobInputsElements = '.updatepicturesectiondiv .familymemberdobdiv input[id^="memberitem_"]';var pasteDobValue="";$j(dobInputsElements).bind('input',function(e){originalDobStr=this.value;});$j(dobInputsElements).bind('focus',function(e){originalDobStr=this.value;});setTimeout(function(){ $j(dobInputsElements).bind('keydown',function(e){var keyCode = e.keyCode || e.which || e.charCode;if (keyCode == 13 || keyCode == 9) {if(originalDobStr.length>0){$j(this).val(originalDobStr);var eleId = $j(this).prop("id");updateDatePicker(originalDobStr, '#'+eleId);originalDobStr='';}} });}, 1000); $j(dobInputsElements + ', #memberdateofbirthid').bind('paste',function(e){ e.preventDefault(); e.stopPropagation(); var c; if (e.originalEvent.clipboardData && e.originalEvent.clipboardData.types){ c = e.originalEvent.clipboardData.getData("text/plain"); }else { if (!window.clipboardData) return; c = window.clipboardData.getData("Text") } if(c){ originalDobStr = c; var eleId = $j(this).prop("id"); updateDatePicker(originalDobStr, '#'+eleId); } else { originalDobStr = ""; } });$j(dobInputsElements + ', #memberdateofbirthid').bind('keyup',function(e){var ctrlDown = e.ctrlKey || e.metaKey;var keyCode = e.keyCode || e.which || e.charCode;if (keyCode == 86 && ctrlDown && originalDobStr.length>0) {//ctrl+v paste$j(this).val(originalDobStr);var eleId = $j(this).prop("id");updateDatePicker(originalDobStr, '#'+eleId);originalDobStr='';e.preventDefault();e.stopPropagation();}});}//only support yyyymmdd formatfunction updateDatePicker(_strDate,_dateInputId){ if(_strDate.length!=8){ return; } var placeholderStr = $j(_dateInputId).attr('placeholder'); if( placeholderStr != 'YYYYMMDD' ){ return; } var yearStr = _strDate.substring(0,4); var monthStr = _strDate.substring(4,6); var dayStr = _strDate.substring(6); try{ var monthNum = Number(monthStr)-1; $j(_dateInputId).datepicker("setDate", new Date(yearStr,monthNum,dayStr)); }catch(err){ return; }}function onlyUpdateFamilyMemberDob(contractCode,firstName, lastName, custId, rId ) { var dobStr = ''; var memDobObj = $j('#memberitem_'+rId+"_memberDobInput"); if (memDobObj.length > 0) { dobStr = memDobObj.val().trim(); } if(dobStr==''|| memDobObj.attr("readonly")=="readonly" || (originalDobStr!='' && originalDobStr!=dobStr)){ return; } $j('div.updatememberdoberrormsg').remove(); var ajaxURL = '/ajax/familyMemberRepresentative'; req = { contractCode: contractCode, firstName: firstName, lastName: lastName, dob: dobStr, customerId: custId, recordId: rId, noNeedDob: false }; memDobObj.attr("readonly","readonly"); $j.ajax ({ url: ajaxURL + '?' + $j.param(req, true), type: 'POST', contentType: 'application/json', success: function (response) { memDobObj.removeAttr("readonly"); var obj = { status: '-1', message: 'upload file failed.' }; try{ obj = $j.parseJSON ('' + response); }catch(err){ //do nothing } if (obj.status == '-1') { showTopErrorsMessage( obj.message ); memDobObj.val(''); $j(window).scrollTop(0); $j('#familymemberdobdivsucess_'+rId).hide(); } else if(obj.status == '-2'){ //session time out location.href="memberSignInSignUp.do"; } else { //success $j('#familymemberdobdivsucess_'+rId).show('slow', function(){$j('#familymemberdobdivsucess_'+rId).fadeOut(2000);}); //memDobObj.data('datepicker').remove(); var clickStrArry = $j('.posordermemberupdatepictureimgele_'+rId).attr('onclick').split('setCurrentMemberInfo'); var newClick = clickStrArry[0] + 'setCurrentMemberInfo('+rId+',"'+contractCode+'","'+firstName+'","'+lastName+'","'+dobStr+'");' $j('.posordermemberupdatepictureimgele_'+rId).attr('onclick',newClick); } }, error: function () {}, complete: function () { }, });}function initialMemberListNameHeader(){ var inputNum = $j('.updatepicturesectiondiv .familymemberdobdiv input').length; showDobInputNumber = 0; if(inputNum==0){ refreshMemberListHeader(); return; } $j('.updatepicturesectiondiv .familymemberdobdiv input').each(function(val, index, arr){ if($j(index).css('display')=='none'){ //do nothing }else{ showDobInputNumber++; } }); refreshMemberListHeader();}$j(document).ready(function(){updateSiblingInvOptions();bindEnterEvent();initialMemberListNameHeader();});

Get the new Holographic die-cut TSP Logo Sticker. Approximately 3" in diameter. Made in USA.

Price: $4.95

IN STOCK

Pass Details - Texas State Parks (2024)

FAQs

How many guests can you have at Texas State Parks Pass? ›

What do you get? Waived entrance fees for a calendar year for the pass holder and all guests arriving with the pass holder in one, noncommercial vehicle (15 people max). Pass holder must be present and provide valid identification.

Is there a senior discount for Texas state parks? ›

Benefits of the Senior Citizen Discount

Cost Savings: It is completely free to obtain a full or partial senior Parklands Pass. With the senior citizen pass, you can enjoy unlimited visits to Texas State Parks for an entire year at a fraction of the regular cost.

Can my spouse use my national park pass? ›

Each Annual Pass admits the pass owner and passengers in a non-commercial vehicle at per-vehicle fee areas; and pass owner + 3 adults, not to exceed 4 adults, where per-person fees are charged.

Is there a Texas State park passport book? ›

These 100-page, spiral bound passports allow folks to tally which parks they have explored. Every Texas State Park has been provided with a unique park stamp for the new passport.

Do veterans get a free Texas state park pass? ›

"The Veterans passport allows free entry to Texas state parks for U.S. veterans with a 60 percent or more service-connected disability or loss of lower extremity. Present valid identification (such as a driver's license) and one of the following to get your passport: Disabled Veterans of Texas license plate receipt.

What is the discount on camping with the Texas state park Pass? ›

TPWD said the benefits of having a Texas State Parks Pass go beyond the price of admission. Passholders get a half-price discount for the second night of camping when they stay two or more consecutive nights in the same campsite or screened shelter.

Is the Texas state park pass worth it? ›

Texas State Parks Pass Perks

Purchasing a Texas State Parks Pass provides you with many benefits including: No Entrance/Day Use Fees: Most parks have entrance fees ranging from $2-$15 a day. With the pass, you never pay entrance fees for yourself or your guests (anyone arriving in the same vehicle)!

How long is a Texas park pass good for? ›

Pass is good for 1 year after certificate is redeemed; unredeemed certificate expires on the date written on the certificate. Texas State Park Pass grants you and guests free entry to any of 89 state parks across the Lone Star State; activity and camping fees still apply.

What does the golden age passport cover? ›

The Golden Age Passport is a lifetime entrance pass to those national parks, monuments, historic sites, recreation areas, and national wildlife refuges that charge a Land and Water Conservation Fund Act (LWCFA) entrance fee.

Is America the Beautiful pass the same as national park Pass? ›

Park entrance passes – also called America the Beautiful: National Parks and Federal Recreational Lands Passes – cover the entrance fees at lands managed by the National Park Service (NPS) and US Fish & Wildlife Service, as well as standard amenity fees – or day use fees – at lands managed by the US Forest Service, ...

Do they check ID with national park Pass? ›

Passholders must show valid photo identification (ID) with each pass.

Can I use my parents senior national park pass? ›

The Senior Pass provides entrance and daytime recreation fees for the pass owner and accompanying passengers in a single, private-use vehicle. At per-person park entrances, the pass will cover up to four people.

Does Texas have a state park pass for seniors? ›

A Texas Parklands Passport offers free or reduced entrance fees to Texas state parks. There are two types of passports for seniors. There are also passports for people with disabilities and veterans with disabilities.

What is a red book passport? ›

DoD civilians and their family members hired in the CONUS are entitled to Official Red passports. These passports are being issued at the Passport Office of the Department of State in Washington DC and the processing time is 6-8 weeks. The American Consulate General in Frankfurt cannot issue Official passports.

How much does it cost to enter Texas state parks? ›

Your Texas State Parks Pass gets you free entry into every Texas State Park for an entire year! Day use fees vary across the parks depending on size of the park, infrastructure or popularity. Some parks charge a $2 entry fee while others cost $8 for the day.

How many names can be on a national park pass? ›

Passes are shipped without a name on them and passes issued will only allow one signature. Photo identification will be required to verify ownership.

How many guests can a member bring to a private club in Texas? ›

There are many other reporting requirements and rules Texas Private Clubs must abide by. For example, temporary members of a private club may only bring up to three guests to the club and the guests must remain in the temporary member's presence while at the club.

How many people is a national park pass good for? ›

A pass covers entrance, standard amenity fees and day use fees for a driver and all passengers in a personal vehicle at per vehicle fee areas (or up to four adults at sites that charge per person).

Can you bring alcohol to Texas state parks? ›

Venomous snakes cannot be tolerated in campsites, but let the ranger take care of the problem. Public consumption of alcoholic beverages is prohibited in state parks. If you plan to swim or go boating, don't drink.

Top Articles
Latest Posts
Article information

Author: Dr. Pierre Goyette

Last Updated:

Views: 5245

Rating: 5 / 5 (50 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Dr. Pierre Goyette

Birthday: 1998-01-29

Address: Apt. 611 3357 Yong Plain, West Audra, IL 70053

Phone: +5819954278378

Job: Construction Director

Hobby: Embroidery, Creative writing, Shopping, Driving, Stand-up comedy, Coffee roasting, Scrapbooking

Introduction: My name is Dr. Pierre Goyette, I am a enchanting, powerful, jolly, rich, graceful, colorful, zany person who loves writing and wants to share my knowledge and understanding with you.