jQuery(document).ready(function(){ }); // end of document ready jQuery(document).ready(function(){ jQuery("#input-652-GTS1BLK").change(function(){ if(jQuery("#input-652-GTS1BLK").prop("checked")) { //alert("na_with here"); //alert("[id^=input-692]"); //alert(jQuery("[id^=input-692]").attr("title")); // disable the includes and unchecks it jQuery("[id^=input-692]").prop("disabled", true); // determine if already checked if(jQuery("[id^=input-692]").prop("checked")) { jQuery("[id^=input-692]").prop("checked",false).change(); } // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-692-652-GTS1BLK]").length === 0) { jQuery("[id^=note-692]").append("
(N/A with 652-GTS1BLK - Cockpit and Bow Cover)
"); } jQuery("[id^=input-692]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("[id^=input-692]").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-692-652-GTS1BLK]").remove(); jQuery("[id^=input-692]").parent().parent().removeClass("byb_option_red"); } }); // end click listener // reverse jQuery("[id^=input-692]").change(function(){ if(jQuery(this).prop("checked")) { //alert("input-652-GTS1BLK"); //alert(jQuery("[id^=input-652-GTS1BLK]").attr("title")); //alert(jQuery("[id^=input-652-GTS1BLK]").is(":checked")); // disable the includes and unchecks it jQuery("#input-652-GTS1BLK").prop("disabled", true); // determine if checked if(jQuery("#input-652-GTS1BLK").prop("checked")) { jQuery("#input-652-GTS1BLK").removeAttr("checked").change(); } //console.log("if of reverse input-652-GTS1BLK"); //alert("shoudl be disabled"); // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-652-GTS1BLK-692]").length === 0) { jQuery("#note-652-GTS1BLK").append("
(N/A with 692 )
"); } jQuery("[id^=input-652-GTS1BLK]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("#input-652-GTS1BLK").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-652-GTS1BLK-692]").remove(); jQuery("[id^=input-652-GTS1BLK]").parent().parent().removeClass("byb_option_red"); } }); // end click listener jQuery("#input-652-GTS1BLU").change(function(){ if(jQuery("#input-652-GTS1BLU").prop("checked")) { //alert("na_with here"); //alert("[id^=input-692]"); //alert(jQuery("[id^=input-692]").attr("title")); // disable the includes and unchecks it jQuery("[id^=input-692]").prop("disabled", true); // determine if already checked if(jQuery("[id^=input-692]").prop("checked")) { jQuery("[id^=input-692]").prop("checked",false).change(); } // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-692-652-GTS1BLU]").length === 0) { jQuery("[id^=note-692]").append("
(N/A with 652-GTS1BLU - Cockpit and Bow Cover)
"); } jQuery("[id^=input-692]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("[id^=input-692]").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-692-652-GTS1BLU]").remove(); jQuery("[id^=input-692]").parent().parent().removeClass("byb_option_red"); } }); // end click listener // reverse jQuery("[id^=input-692]").change(function(){ if(jQuery(this).prop("checked")) { //alert("input-652-GTS1BLU"); //alert(jQuery("[id^=input-652-GTS1BLU]").attr("title")); //alert(jQuery("[id^=input-652-GTS1BLU]").is(":checked")); // disable the includes and unchecks it jQuery("#input-652-GTS1BLU").prop("disabled", true); // determine if checked if(jQuery("#input-652-GTS1BLU").prop("checked")) { jQuery("#input-652-GTS1BLU").removeAttr("checked").change(); } //console.log("if of reverse input-652-GTS1BLU"); //alert("shoudl be disabled"); // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-652-GTS1BLU-692]").length === 0) { jQuery("#note-652-GTS1BLU").append("
(N/A with 692 )
"); } jQuery("[id^=input-652-GTS1BLU]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("#input-652-GTS1BLU").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-652-GTS1BLU-692]").remove(); jQuery("[id^=input-652-GTS1BLU]").parent().parent().removeClass("byb_option_red"); } }); // end click listener jQuery("#input-652-GTS1SBL").change(function(){ if(jQuery("#input-652-GTS1SBL").prop("checked")) { //alert("na_with here"); //alert("[id^=input-692]"); //alert(jQuery("[id^=input-692]").attr("title")); // disable the includes and unchecks it jQuery("[id^=input-692]").prop("disabled", true); // determine if already checked if(jQuery("[id^=input-692]").prop("checked")) { jQuery("[id^=input-692]").prop("checked",false).change(); } // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-692-652-GTS1SBL]").length === 0) { jQuery("[id^=note-692]").append("
(N/A with 652-GTS1SBL - Cockpit and Bow Cover)
"); } jQuery("[id^=input-692]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("[id^=input-692]").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-692-652-GTS1SBL]").remove(); jQuery("[id^=input-692]").parent().parent().removeClass("byb_option_red"); } }); // end click listener // reverse jQuery("[id^=input-692]").change(function(){ if(jQuery(this).prop("checked")) { //alert("input-652-GTS1SBL"); //alert(jQuery("[id^=input-652-GTS1SBL]").attr("title")); //alert(jQuery("[id^=input-652-GTS1SBL]").is(":checked")); // disable the includes and unchecks it jQuery("#input-652-GTS1SBL").prop("disabled", true); // determine if checked if(jQuery("#input-652-GTS1SBL").prop("checked")) { jQuery("#input-652-GTS1SBL").removeAttr("checked").change(); } //console.log("if of reverse input-652-GTS1SBL"); //alert("shoudl be disabled"); // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-652-GTS1SBL-692]").length === 0) { jQuery("#note-652-GTS1SBL").append("
(N/A with 692 )
"); } jQuery("[id^=input-652-GTS1SBL]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("#input-652-GTS1SBL").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-652-GTS1SBL-692]").remove(); jQuery("[id^=input-652-GTS1SBL]").parent().parent().removeClass("byb_option_red"); } }); // end click listener jQuery("#input-619NWT-GTS1").change(function(){ if(jQuery("#input-619NWT-GTS1").prop("checked")) { //alert("na_with here"); //alert("[id^=input-692]"); //alert(jQuery("[id^=input-692]").attr("title")); // disable the includes and unchecks it jQuery("[id^=input-692]").prop("disabled", true); // determine if already checked if(jQuery("[id^=input-692]").prop("checked")) { jQuery("[id^=input-692]").prop("checked",false).change(); } // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-692-619NWT-GTS1]").length === 0) { jQuery("[id^=note-692]").append("
(N/A with 619NWT-GTS1 - Mooring Cover)
"); } jQuery("[id^=input-692]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("[id^=input-692]").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-692-619NWT-GTS1]").remove(); jQuery("[id^=input-692]").parent().parent().removeClass("byb_option_red"); } }); // end click listener // reverse jQuery("[id^=input-692]").change(function(){ if(jQuery(this).prop("checked")) { //alert("input-619NWT-GTS1"); //alert(jQuery("[id^=input-619NWT-GTS1]").attr("title")); //alert(jQuery("[id^=input-619NWT-GTS1]").is(":checked")); // disable the includes and unchecks it jQuery("#input-619NWT-GTS1").prop("disabled", true); // determine if checked if(jQuery("#input-619NWT-GTS1").prop("checked")) { jQuery("#input-619NWT-GTS1").removeAttr("checked").change(); } //console.log("if of reverse input-619NWT-GTS1"); //alert("shoudl be disabled"); // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-619NWT-GTS1-692]").length === 0) { jQuery("#note-619NWT-GTS1").append("
(N/A with 692 )
"); } jQuery("[id^=input-619NWT-GTS1]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("#input-619NWT-GTS1").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-619NWT-GTS1-692]").remove(); jQuery("[id^=input-619NWT-GTS1]").parent().parent().removeClass("byb_option_red"); } }); // end click listener jQuery("#input-619NWTEP-GTS1").change(function(){ if(jQuery("#input-619NWTEP-GTS1").prop("checked")) { //alert("na_with here"); //alert("[id^=input-692]"); //alert(jQuery("[id^=input-692]").attr("title")); // disable the includes and unchecks it jQuery("[id^=input-692]").prop("disabled", true); // determine if already checked if(jQuery("[id^=input-692]").prop("checked")) { jQuery("[id^=input-692]").prop("checked",false).change(); } // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-692-619NWTEP-GTS1]").length === 0) { jQuery("[id^=note-692]").append("
(N/A with 619NWTEP-GTS1 - Mooring Cover)
"); } jQuery("[id^=input-692]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("[id^=input-692]").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-692-619NWTEP-GTS1]").remove(); jQuery("[id^=input-692]").parent().parent().removeClass("byb_option_red"); } }); // end click listener // reverse jQuery("[id^=input-692]").change(function(){ if(jQuery(this).prop("checked")) { //alert("input-619NWTEP-GTS1"); //alert(jQuery("[id^=input-619NWTEP-GTS1]").attr("title")); //alert(jQuery("[id^=input-619NWTEP-GTS1]").is(":checked")); // disable the includes and unchecks it jQuery("#input-619NWTEP-GTS1").prop("disabled", true); // determine if checked if(jQuery("#input-619NWTEP-GTS1").prop("checked")) { jQuery("#input-619NWTEP-GTS1").removeAttr("checked").change(); } //console.log("if of reverse input-619NWTEP-GTS1"); //alert("shoudl be disabled"); // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-619NWTEP-GTS1-692]").length === 0) { jQuery("#note-619NWTEP-GTS1").append("
(N/A with 692 )
"); } jQuery("[id^=input-619NWTEP-GTS1]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("#input-619NWTEP-GTS1").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-619NWTEP-GTS1-692]").remove(); jQuery("[id^=input-619NWTEP-GTS1]").parent().parent().removeClass("byb_option_red"); } }); // end click listener jQuery("#input-619WT-GTS1").change(function(){ if(jQuery("#input-619WT-GTS1").prop("checked")) { //alert("na_with here"); //alert("[id^=input-685]"); //alert(jQuery("[id^=input-685]").attr("title")); // disable the includes and unchecks it jQuery("[id^=input-685]").prop("disabled", true); // determine if already checked if(jQuery("[id^=input-685]").prop("checked")) { jQuery("[id^=input-685]").prop("checked",false).change(); } // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-685-619WT-GTS1]").length === 0) { jQuery("[id^=note-685]").append("
(N/A with 619WT-GTS1 - Mooring Cover)
"); } jQuery("[id^=input-685]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("[id^=input-685]").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-685-619WT-GTS1]").remove(); jQuery("[id^=input-685]").parent().parent().removeClass("byb_option_red"); } }); // end click listener // reverse jQuery("[id^=input-685]").change(function(){ if(jQuery(this).prop("checked")) { //alert("input-619WT-GTS1"); //alert(jQuery("[id^=input-619WT-GTS1]").attr("title")); //alert(jQuery("[id^=input-619WT-GTS1]").is(":checked")); // disable the includes and unchecks it jQuery("#input-619WT-GTS1").prop("disabled", true); // determine if checked if(jQuery("#input-619WT-GTS1").prop("checked")) { jQuery("#input-619WT-GTS1").removeAttr("checked").change(); } //console.log("if of reverse input-619WT-GTS1"); //alert("shoudl be disabled"); // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-619WT-GTS1-685]").length === 0) { jQuery("#note-619WT-GTS1").append("
(N/A with 685 )
"); } jQuery("[id^=input-619WT-GTS1]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("#input-619WT-GTS1").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-619WT-GTS1-685]").remove(); jQuery("[id^=input-619WT-GTS1]").parent().parent().removeClass("byb_option_red"); } }); // end click listener jQuery("#input-560-GTS1").change(function(){ if(jQuery("#input-560-GTS1").prop("checked")) { //alert("na_with here"); //alert("[id^=input-636]"); //alert(jQuery("[id^=input-636]").attr("title")); // disable the includes and unchecks it jQuery("[id^=input-636]").prop("disabled", true); // determine if already checked if(jQuery("[id^=input-636]").prop("checked")) { jQuery("[id^=input-636]").prop("checked",false).change(); } // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-636-560-GTS1]").length === 0) { jQuery("[id^=note-636]").append("
(N/A with 560-GTS1 - Bowrider Filler Cushion)
"); } jQuery("[id^=input-636]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("[id^=input-636]").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-636-560-GTS1]").remove(); jQuery("[id^=input-636]").parent().parent().removeClass("byb_option_red"); } }); // end click listener // reverse jQuery("[id^=input-636]").change(function(){ if(jQuery(this).prop("checked")) { //alert("input-560-GTS1"); //alert(jQuery("[id^=input-560-GTS1]").attr("title")); //alert(jQuery("[id^=input-560-GTS1]").is(":checked")); // disable the includes and unchecks it jQuery("#input-560-GTS1").prop("disabled", true); // determine if checked if(jQuery("#input-560-GTS1").prop("checked")) { jQuery("#input-560-GTS1").removeAttr("checked").change(); } //console.log("if of reverse input-560-GTS1"); //alert("shoudl be disabled"); // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-560-GTS1-636]").length === 0) { jQuery("#note-560-GTS1").append("
(N/A with 636 )
"); } jQuery("[id^=input-560-GTS1]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("#input-560-GTS1").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-560-GTS1-636]").remove(); jQuery("[id^=input-560-GTS1]").parent().parent().removeClass("byb_option_red"); } }); // end click listener jQuery("#input-560-GTS1").change(function(){ if(jQuery("#input-560-GTS1").prop("checked")) { //alert("na_with here"); //alert("[id^=input-637]"); //alert(jQuery("[id^=input-637]").attr("title")); // disable the includes and unchecks it jQuery("[id^=input-637]").prop("disabled", true); // determine if already checked if(jQuery("[id^=input-637]").prop("checked")) { jQuery("[id^=input-637]").prop("checked",false).change(); } // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-637-560-GTS1]").length === 0) { jQuery("[id^=note-637]").append("
(N/A with 560-GTS1 - Bowrider Filler Cushion)
"); } jQuery("[id^=input-637]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("[id^=input-637]").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-637-560-GTS1]").remove(); jQuery("[id^=input-637]").parent().parent().removeClass("byb_option_red"); } }); // end click listener // reverse jQuery("[id^=input-637]").change(function(){ if(jQuery(this).prop("checked")) { //alert("input-560-GTS1"); //alert(jQuery("[id^=input-560-GTS1]").attr("title")); //alert(jQuery("[id^=input-560-GTS1]").is(":checked")); // disable the includes and unchecks it jQuery("#input-560-GTS1").prop("disabled", true); // determine if checked if(jQuery("#input-560-GTS1").prop("checked")) { jQuery("#input-560-GTS1").removeAttr("checked").change(); } //console.log("if of reverse input-560-GTS1"); //alert("shoudl be disabled"); // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-560-GTS1-637]").length === 0) { jQuery("#note-560-GTS1").append("
(N/A with 637 )
"); } jQuery("[id^=input-560-GTS1]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("#input-560-GTS1").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-560-GTS1-637]").remove(); jQuery("[id^=input-560-GTS1]").parent().parent().removeClass("byb_option_red"); } }); // end click listener jQuery("#input-594S-GTS1").change(function(){ if(jQuery("#input-594S-GTS1").prop("checked")) { //alert("na_with here"); //alert("[id^=input-685]"); //alert(jQuery("[id^=input-685]").attr("title")); // disable the includes and unchecks it jQuery("[id^=input-685]").prop("disabled", true); // determine if already checked if(jQuery("[id^=input-685]").prop("checked")) { jQuery("[id^=input-685]").prop("checked",false).change(); } // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-685-594S-GTS1]").length === 0) { jQuery("[id^=note-685]").append("
(N/A with 594S-GTS1 - Swim Platform Logo Mat - Slate)
"); } jQuery("[id^=input-685]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("[id^=input-685]").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-685-594S-GTS1]").remove(); jQuery("[id^=input-685]").parent().parent().removeClass("byb_option_red"); } }); // end click listener // reverse jQuery("[id^=input-685]").change(function(){ if(jQuery(this).prop("checked")) { //alert("input-594S-GTS1"); //alert(jQuery("[id^=input-594S-GTS1]").attr("title")); //alert(jQuery("[id^=input-594S-GTS1]").is(":checked")); // disable the includes and unchecks it jQuery("#input-594S-GTS1").prop("disabled", true); // determine if checked if(jQuery("#input-594S-GTS1").prop("checked")) { jQuery("#input-594S-GTS1").removeAttr("checked").change(); } //console.log("if of reverse input-594S-GTS1"); //alert("shoudl be disabled"); // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-594S-GTS1-685]").length === 0) { jQuery("#note-594S-GTS1").append("
(N/A with 685 )
"); } jQuery("[id^=input-594S-GTS1]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("#input-594S-GTS1").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-594S-GTS1-685]").remove(); jQuery("[id^=input-594S-GTS1]").parent().parent().removeClass("byb_option_red"); } }); // end click listener jQuery("#input-594C-GTS1").change(function(){ if(jQuery("#input-594C-GTS1").prop("checked")) { //alert("na_with here"); //alert("[id^=input-685]"); //alert(jQuery("[id^=input-685]").attr("title")); // disable the includes and unchecks it jQuery("[id^=input-685]").prop("disabled", true); // determine if already checked if(jQuery("[id^=input-685]").prop("checked")) { jQuery("[id^=input-685]").prop("checked",false).change(); } // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-685-594C-GTS1]").length === 0) { jQuery("[id^=note-685]").append("
(N/A with 594C-GTS1 - Swim Platform Logo Mat - Cayenne)
"); } jQuery("[id^=input-685]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("[id^=input-685]").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-685-594C-GTS1]").remove(); jQuery("[id^=input-685]").parent().parent().removeClass("byb_option_red"); } }); // end click listener // reverse jQuery("[id^=input-685]").change(function(){ if(jQuery(this).prop("checked")) { //alert("input-594C-GTS1"); //alert(jQuery("[id^=input-594C-GTS1]").attr("title")); //alert(jQuery("[id^=input-594C-GTS1]").is(":checked")); // disable the includes and unchecks it jQuery("#input-594C-GTS1").prop("disabled", true); // determine if checked if(jQuery("#input-594C-GTS1").prop("checked")) { jQuery("#input-594C-GTS1").removeAttr("checked").change(); } //console.log("if of reverse input-594C-GTS1"); //alert("shoudl be disabled"); // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-594C-GTS1-685]").length === 0) { jQuery("#note-594C-GTS1").append("
(N/A with 685 )
"); } jQuery("[id^=input-594C-GTS1]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("#input-594C-GTS1").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-594C-GTS1-685]").remove(); jQuery("[id^=input-594C-GTS1]").parent().parent().removeClass("byb_option_red"); } }); // end click listener jQuery("#input-704G-GTS1").change(function(){ if(jQuery("#input-704G-GTS1").prop("checked")) { //alert("na_with here"); //alert("[id^=input-594C]"); //alert(jQuery("[id^=input-594C]").attr("title")); // disable the includes and unchecks it jQuery("[id^=input-594C]").prop("disabled", true); // determine if already checked if(jQuery("[id^=input-594C]").prop("checked")) { jQuery("[id^=input-594C]").prop("checked",false).change(); } // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-594C-704G-GTS1]").length === 0) { jQuery("[id^=note-594C]").append("
(N/A with 704G-GTS1 - Snap-In Seadek Cockpit Flooring - Slate)
"); } jQuery("[id^=input-594C]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("[id^=input-594C]").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-594C-704G-GTS1]").remove(); jQuery("[id^=input-594C]").parent().parent().removeClass("byb_option_red"); } }); // end click listener // reverse jQuery("[id^=input-594C]").change(function(){ if(jQuery(this).prop("checked")) { //alert("input-704G-GTS1"); //alert(jQuery("[id^=input-704G-GTS1]").attr("title")); //alert(jQuery("[id^=input-704G-GTS1]").is(":checked")); // disable the includes and unchecks it jQuery("#input-704G-GTS1").prop("disabled", true); // determine if checked if(jQuery("#input-704G-GTS1").prop("checked")) { jQuery("#input-704G-GTS1").removeAttr("checked").change(); } //console.log("if of reverse input-704G-GTS1"); //alert("shoudl be disabled"); // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-704G-GTS1-594C]").length === 0) { jQuery("#note-704G-GTS1").append("
(N/A with 594C )
"); } jQuery("[id^=input-704G-GTS1]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("#input-704G-GTS1").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-704G-GTS1-594C]").remove(); jQuery("[id^=input-704G-GTS1]").parent().parent().removeClass("byb_option_red"); } }); // end click listener jQuery("#input-704G-GTS1").change(function(){ if(jQuery("#input-704G-GTS1").prop("checked")) { //alert("na_with here"); //alert("[id^=input-594CEP]"); //alert(jQuery("[id^=input-594CEP]").attr("title")); // disable the includes and unchecks it jQuery("[id^=input-594CEP]").prop("disabled", true); // determine if already checked if(jQuery("[id^=input-594CEP]").prop("checked")) { jQuery("[id^=input-594CEP]").prop("checked",false).change(); } // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-594CEP-704G-GTS1]").length === 0) { jQuery("[id^=note-594CEP]").append("
(N/A with 704G-GTS1 - Snap-In Seadek Cockpit Flooring - Slate)
"); } jQuery("[id^=input-594CEP]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("[id^=input-594CEP]").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-594CEP-704G-GTS1]").remove(); jQuery("[id^=input-594CEP]").parent().parent().removeClass("byb_option_red"); } }); // end click listener // reverse jQuery("[id^=input-594CEP]").change(function(){ if(jQuery(this).prop("checked")) { //alert("input-704G-GTS1"); //alert(jQuery("[id^=input-704G-GTS1]").attr("title")); //alert(jQuery("[id^=input-704G-GTS1]").is(":checked")); // disable the includes and unchecks it jQuery("#input-704G-GTS1").prop("disabled", true); // determine if checked if(jQuery("#input-704G-GTS1").prop("checked")) { jQuery("#input-704G-GTS1").removeAttr("checked").change(); } //console.log("if of reverse input-704G-GTS1"); //alert("shoudl be disabled"); // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-704G-GTS1-594CEP]").length === 0) { jQuery("#note-704G-GTS1").append("
(N/A with 594CEP )
"); } jQuery("[id^=input-704G-GTS1]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("#input-704G-GTS1").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-704G-GTS1-594CEP]").remove(); jQuery("[id^=input-704G-GTS1]").parent().parent().removeClass("byb_option_red"); } }); // end click listener jQuery("#input-704C-GTS1").change(function(){ if(jQuery("#input-704C-GTS1").prop("checked")) { //alert("na_with here"); //alert("[id^=input-594S]"); //alert(jQuery("[id^=input-594S]").attr("title")); // disable the includes and unchecks it jQuery("[id^=input-594S]").prop("disabled", true); // determine if already checked if(jQuery("[id^=input-594S]").prop("checked")) { jQuery("[id^=input-594S]").prop("checked",false).change(); } // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-594S-704C-GTS1]").length === 0) { jQuery("[id^=note-594S]").append("
(N/A with 704C-GTS1 - Snap-In Seadek Cockpit Flooring - Cayenne)
"); } jQuery("[id^=input-594S]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("[id^=input-594S]").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-594S-704C-GTS1]").remove(); jQuery("[id^=input-594S]").parent().parent().removeClass("byb_option_red"); } }); // end click listener // reverse jQuery("[id^=input-594S]").change(function(){ if(jQuery(this).prop("checked")) { //alert("input-704C-GTS1"); //alert(jQuery("[id^=input-704C-GTS1]").attr("title")); //alert(jQuery("[id^=input-704C-GTS1]").is(":checked")); // disable the includes and unchecks it jQuery("#input-704C-GTS1").prop("disabled", true); // determine if checked if(jQuery("#input-704C-GTS1").prop("checked")) { jQuery("#input-704C-GTS1").removeAttr("checked").change(); } //console.log("if of reverse input-704C-GTS1"); //alert("shoudl be disabled"); // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-704C-GTS1-594S]").length === 0) { jQuery("#note-704C-GTS1").append("
(N/A with 594S )
"); } jQuery("[id^=input-704C-GTS1]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("#input-704C-GTS1").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-704C-GTS1-594S]").remove(); jQuery("[id^=input-704C-GTS1]").parent().parent().removeClass("byb_option_red"); } }); // end click listener jQuery("#input-704C-GTS1").change(function(){ if(jQuery("#input-704C-GTS1").prop("checked")) { //alert("na_with here"); //alert("[id^=input-594SEP]"); //alert(jQuery("[id^=input-594SEP]").attr("title")); // disable the includes and unchecks it jQuery("[id^=input-594SEP]").prop("disabled", true); // determine if already checked if(jQuery("[id^=input-594SEP]").prop("checked")) { jQuery("[id^=input-594SEP]").prop("checked",false).change(); } // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-594SEP-704C-GTS1]").length === 0) { jQuery("[id^=note-594SEP]").append("
(N/A with 704C-GTS1 - Snap-In Seadek Cockpit Flooring - Cayenne)
"); } jQuery("[id^=input-594SEP]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("[id^=input-594SEP]").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-594SEP-704C-GTS1]").remove(); jQuery("[id^=input-594SEP]").parent().parent().removeClass("byb_option_red"); } }); // end click listener // reverse jQuery("[id^=input-594SEP]").change(function(){ if(jQuery(this).prop("checked")) { //alert("input-704C-GTS1"); //alert(jQuery("[id^=input-704C-GTS1]").attr("title")); //alert(jQuery("[id^=input-704C-GTS1]").is(":checked")); // disable the includes and unchecks it jQuery("#input-704C-GTS1").prop("disabled", true); // determine if checked if(jQuery("#input-704C-GTS1").prop("checked")) { jQuery("#input-704C-GTS1").removeAttr("checked").change(); } //console.log("if of reverse input-704C-GTS1"); //alert("shoudl be disabled"); // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-704C-GTS1-594SEP]").length === 0) { jQuery("#note-704C-GTS1").append("
(N/A with 594SEP )
"); } jQuery("[id^=input-704C-GTS1]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("#input-704C-GTS1").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-704C-GTS1-594SEP]").remove(); jQuery("[id^=input-704C-GTS1]").parent().parent().removeClass("byb_option_red"); } }); // end click listener jQuery("#input-685NWT-GTS1").change(function(){ if(jQuery("#input-685NWT-GTS1").prop("checked")) { //alert("na_with here"); //alert("[id^=input-692]"); //alert(jQuery("[id^=input-692]").attr("title")); // disable the includes and unchecks it jQuery("[id^=input-692]").prop("disabled", true); // determine if already checked if(jQuery("[id^=input-692]").prop("checked")) { jQuery("[id^=input-692]").prop("checked",false).change(); } // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-692-685NWT-GTS1]").length === 0) { jQuery("[id^=note-692]").append("
(N/A with 685NWT-GTS1 - Extended Swim Platform)
"); } jQuery("[id^=input-692]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("[id^=input-692]").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-692-685NWT-GTS1]").remove(); jQuery("[id^=input-692]").parent().parent().removeClass("byb_option_red"); } }); // end click listener // reverse jQuery("[id^=input-692]").change(function(){ if(jQuery(this).prop("checked")) { //alert("input-685NWT-GTS1"); //alert(jQuery("[id^=input-685NWT-GTS1]").attr("title")); //alert(jQuery("[id^=input-685NWT-GTS1]").is(":checked")); // disable the includes and unchecks it jQuery("#input-685NWT-GTS1").prop("disabled", true); // determine if checked if(jQuery("#input-685NWT-GTS1").prop("checked")) { jQuery("#input-685NWT-GTS1").removeAttr("checked").change(); } //console.log("if of reverse input-685NWT-GTS1"); //alert("shoudl be disabled"); // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-685NWT-GTS1-692]").length === 0) { jQuery("#note-685NWT-GTS1").append("
(N/A with 692 )
"); } jQuery("[id^=input-685NWT-GTS1]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("#input-685NWT-GTS1").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-685NWT-GTS1-692]").remove(); jQuery("[id^=input-685NWT-GTS1]").parent().parent().removeClass("byb_option_red"); } }); // end click listener jQuery("#input-687-GTS1BLK").change(function(){ if(jQuery("#input-687-GTS1BLK").prop("checked")) { //alert("na_with here"); //alert("[id^=input-688A]"); //alert(jQuery("[id^=input-688A]").attr("title")); // disable the includes and unchecks it jQuery("[id^=input-688A]").prop("disabled", true); // determine if already checked if(jQuery("[id^=input-688A]").prop("checked")) { jQuery("[id^=input-688A]").prop("checked",false).change(); } // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-688A-687-GTS1BLK]").length === 0) { jQuery("[id^=note-688A]").append("
(N/A with 687-GTS1BLK - Spare Tire Kit - Aluminum Wheel)
"); } jQuery("[id^=input-688A]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("[id^=input-688A]").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-688A-687-GTS1BLK]").remove(); jQuery("[id^=input-688A]").parent().parent().removeClass("byb_option_red"); } }); // end click listener // reverse jQuery("[id^=input-688A]").change(function(){ if(jQuery(this).prop("checked")) { //alert("input-687-GTS1BLK"); //alert(jQuery("[id^=input-687-GTS1BLK]").attr("title")); //alert(jQuery("[id^=input-687-GTS1BLK]").is(":checked")); // disable the includes and unchecks it jQuery("#input-687-GTS1BLK").prop("disabled", true); // determine if checked if(jQuery("#input-687-GTS1BLK").prop("checked")) { jQuery("#input-687-GTS1BLK").removeAttr("checked").change(); } //console.log("if of reverse input-687-GTS1BLK"); //alert("shoudl be disabled"); // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-687-GTS1BLK-688A]").length === 0) { jQuery("#note-687-GTS1BLK").append("
(N/A with 688A )
"); } jQuery("[id^=input-687-GTS1BLK]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("#input-687-GTS1BLK").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-687-GTS1BLK-688A]").remove(); jQuery("[id^=input-687-GTS1BLK]").parent().parent().removeClass("byb_option_red"); } }); // end click listener jQuery("#input-687-GTS1BLK").change(function(){ if(jQuery("#input-687-GTS1BLK").prop("checked")) { //alert("na_with here"); //alert("[id^=input-688D]"); //alert(jQuery("[id^=input-688D]").attr("title")); // disable the includes and unchecks it jQuery("[id^=input-688D]").prop("disabled", true); // determine if already checked if(jQuery("[id^=input-688D]").prop("checked")) { jQuery("[id^=input-688D]").prop("checked",false).change(); } // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-688D-687-GTS1BLK]").length === 0) { jQuery("[id^=note-688D]").append("
(N/A with 687-GTS1BLK - Spare Tire Kit - Aluminum Wheel)
"); } jQuery("[id^=input-688D]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("[id^=input-688D]").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-688D-687-GTS1BLK]").remove(); jQuery("[id^=input-688D]").parent().parent().removeClass("byb_option_red"); } }); // end click listener // reverse jQuery("[id^=input-688D]").change(function(){ if(jQuery(this).prop("checked")) { //alert("input-687-GTS1BLK"); //alert(jQuery("[id^=input-687-GTS1BLK]").attr("title")); //alert(jQuery("[id^=input-687-GTS1BLK]").is(":checked")); // disable the includes and unchecks it jQuery("#input-687-GTS1BLK").prop("disabled", true); // determine if checked if(jQuery("#input-687-GTS1BLK").prop("checked")) { jQuery("#input-687-GTS1BLK").removeAttr("checked").change(); } //console.log("if of reverse input-687-GTS1BLK"); //alert("shoudl be disabled"); // add a note to the disable option to tell why this is disabled and not available if(jQuery("[id^=note-single-na_with-687-GTS1BLK-688D]").length === 0) { jQuery("#note-687-GTS1BLK").append("
(N/A with 688D )
"); } jQuery("[id^=input-687-GTS1BLK]").parent().parent().addClass("byb_option_red"); } // here we reverse out everything from above else { // enable the na with jQuery("#input-687-GTS1BLK").prop("disabled",false); // remove the option note jQuery("[id^=note-single-na_with-687-GTS1BLK-688D]").remove(); jQuery("[id^=input-687-GTS1BLK]").parent().parent().removeClass("byb_option_red"); } }); // end click listener }); // end of document ready jQuery(document).ready(function(){ jQuery("#input-971-GTS1").change(function(){ if(jQuery("#input-971-GTS1").prop("checked")) { // set a note for this option that other options are required jQuery("[id^=note-single-requires-971-GTS1]").show(); // set the parent div to the yellow class jQuery(this).parent().parent().addClass("byb_option_yellow"); // add a statement that only exists if this is a single require // lets make sure this option isnt already required. // this is a hack against two options requiring each other resulting in an infinite loop if(jQuery("[id^=note-single-required-by-SOLID_HULL-971-GTS1]").length === 0) { // check the required item // if this is not in an overwrite group //if(jQuery("[id^=input-SOLID_HULL]").prop("type") != "radio") if(jQuery("[id^=input-SOLID_HULL]").prop("type") != "radio" && !jQuery(this).prop("single_selection_group")) { jQuery("[id^=input-SOLID_HULL]").prop("disabled", true); } if(!jQuery("[id^=input-SOLID_HULL]").prop("checked")) { jQuery("[id^=input-SOLID_HULL]").prop("checked", true).change(); } // run a price tally - wasnt calculating proper cost 2/6/13 - rusty checked_boxes_price_tally(); // set the parent div of the required option the yellow class jQuery("[id^=input-SOLID_HULL]").parent().parent().addClass("byb_option_yellow"); // add a note stating why this option is checked jQuery("[id^=note-SOLID_HULL]").append("
(Required By: 971-GTS1-White Hull)
"); } } // here we reverse out everything from above else { // set the parent div to the normal class jQuery(this).parent().parent().removeClass("byb_option_yellow"); // remove the requires note jQuery("[id^=note-single-requires-971-GTS1]").hide(); jQuery("[id^=note-single-required-by-971-GTS1]").hide(); // add a statement that only exists if this was a single require and it reverses the notes and colors above // set the parent div of the required option the yellow class jQuery("[id^=input-SOLID_HULL]").parent().parent().removeClass("byb_option_yellow"); jQuery("[id^=input-SOLID_HULL]").prop("disabled", false); // add a note stating why this option is checked jQuery("[id^=note-single-required-by-SOLID_HULL-971-GTS1]").remove(); } }); // end click listener jQuery("#input-972-GTS1").change(function(){ if(jQuery("#input-972-GTS1").prop("checked")) { // set a note for this option that other options are required jQuery("[id^=note-single-requires-972-GTS1]").show(); // set the parent div to the yellow class jQuery(this).parent().parent().addClass("byb_option_yellow"); // add a statement that only exists if this is a single require // lets make sure this option isnt already required. // this is a hack against two options requiring each other resulting in an infinite loop if(jQuery("[id^=note-single-required-by-SOLID_HULL-972-GTS1]").length === 0) { // check the required item // if this is not in an overwrite group //if(jQuery("[id^=input-SOLID_HULL]").prop("type") != "radio") if(jQuery("[id^=input-SOLID_HULL]").prop("type") != "radio" && !jQuery(this).prop("single_selection_group")) { jQuery("[id^=input-SOLID_HULL]").prop("disabled", true); } if(!jQuery("[id^=input-SOLID_HULL]").prop("checked")) { jQuery("[id^=input-SOLID_HULL]").prop("checked", true).change(); } // run a price tally - wasnt calculating proper cost 2/6/13 - rusty checked_boxes_price_tally(); // set the parent div of the required option the yellow class jQuery("[id^=input-SOLID_HULL]").parent().parent().addClass("byb_option_yellow"); // add a note stating why this option is checked jQuery("[id^=note-SOLID_HULL]").append("
(Required By: 972-GTS1-White Hull)
"); } } // here we reverse out everything from above else { // set the parent div to the normal class jQuery(this).parent().parent().removeClass("byb_option_yellow"); // remove the requires note jQuery("[id^=note-single-requires-972-GTS1]").hide(); jQuery("[id^=note-single-required-by-972-GTS1]").hide(); // add a statement that only exists if this was a single require and it reverses the notes and colors above // set the parent div of the required option the yellow class jQuery("[id^=input-SOLID_HULL]").parent().parent().removeClass("byb_option_yellow"); jQuery("[id^=input-SOLID_HULL]").prop("disabled", false); // add a note stating why this option is checked jQuery("[id^=note-single-required-by-SOLID_HULL-972-GTS1]").remove(); } }); // end click listener jQuery("#input-974-GTS1").change(function(){ if(jQuery("#input-974-GTS1").prop("checked")) { // set a note for this option that other options are required jQuery("[id^=note-single-requires-974-GTS1]").show(); // set the parent div to the yellow class jQuery(this).parent().parent().addClass("byb_option_yellow"); // add a statement that only exists if this is a single require // lets make sure this option isnt already required. // this is a hack against two options requiring each other resulting in an infinite loop if(jQuery("[id^=note-single-required-by-SOLID_HULL-974-GTS1]").length === 0) { // check the required item // if this is not in an overwrite group //if(jQuery("[id^=input-SOLID_HULL]").prop("type") != "radio") if(jQuery("[id^=input-SOLID_HULL]").prop("type") != "radio" && !jQuery(this).prop("single_selection_group")) { jQuery("[id^=input-SOLID_HULL]").prop("disabled", true); } if(!jQuery("[id^=input-SOLID_HULL]").prop("checked")) { jQuery("[id^=input-SOLID_HULL]").prop("checked", true).change(); } // run a price tally - wasnt calculating proper cost 2/6/13 - rusty checked_boxes_price_tally(); // set the parent div of the required option the yellow class jQuery("[id^=input-SOLID_HULL]").parent().parent().addClass("byb_option_yellow"); // add a note stating why this option is checked jQuery("[id^=note-SOLID_HULL]").append("
(Required By: 974-GTS1-White Hull)
"); } } // here we reverse out everything from above else { // set the parent div to the normal class jQuery(this).parent().parent().removeClass("byb_option_yellow"); // remove the requires note jQuery("[id^=note-single-requires-974-GTS1]").hide(); jQuery("[id^=note-single-required-by-974-GTS1]").hide(); // add a statement that only exists if this was a single require and it reverses the notes and colors above // set the parent div of the required option the yellow class jQuery("[id^=input-SOLID_HULL]").parent().parent().removeClass("byb_option_yellow"); jQuery("[id^=input-SOLID_HULL]").prop("disabled", false); // add a note stating why this option is checked jQuery("[id^=note-single-required-by-SOLID_HULL-974-GTS1]").remove(); } }); // end click listener jQuery("#input-977-GTS1").change(function(){ if(jQuery("#input-977-GTS1").prop("checked")) { // set a note for this option that other options are required jQuery("[id^=note-single-requires-977-GTS1]").show(); // set the parent div to the yellow class jQuery(this).parent().parent().addClass("byb_option_yellow"); // add a statement that only exists if this is a single require // lets make sure this option isnt already required. // this is a hack against two options requiring each other resulting in an infinite loop if(jQuery("[id^=note-single-required-by-SOLID_HULL-977-GTS1]").length === 0) { // check the required item // if this is not in an overwrite group //if(jQuery("[id^=input-SOLID_HULL]").prop("type") != "radio") if(jQuery("[id^=input-SOLID_HULL]").prop("type") != "radio" && !jQuery(this).prop("single_selection_group")) { jQuery("[id^=input-SOLID_HULL]").prop("disabled", true); } if(!jQuery("[id^=input-SOLID_HULL]").prop("checked")) { jQuery("[id^=input-SOLID_HULL]").prop("checked", true).change(); } // run a price tally - wasnt calculating proper cost 2/6/13 - rusty checked_boxes_price_tally(); // set the parent div of the required option the yellow class jQuery("[id^=input-SOLID_HULL]").parent().parent().addClass("byb_option_yellow"); // add a note stating why this option is checked jQuery("[id^=note-SOLID_HULL]").append("
(Required By: 977-GTS1-White Hull)
"); } } // here we reverse out everything from above else { // set the parent div to the normal class jQuery(this).parent().parent().removeClass("byb_option_yellow"); // remove the requires note jQuery("[id^=note-single-requires-977-GTS1]").hide(); jQuery("[id^=note-single-required-by-977-GTS1]").hide(); // add a statement that only exists if this was a single require and it reverses the notes and colors above // set the parent div of the required option the yellow class jQuery("[id^=input-SOLID_HULL]").parent().parent().removeClass("byb_option_yellow"); jQuery("[id^=input-SOLID_HULL]").prop("disabled", false); // add a note stating why this option is checked jQuery("[id^=note-single-required-by-SOLID_HULL-977-GTS1]").remove(); } }); // end click listener jQuery("#input-956-GTS1").change(function(){ if(jQuery("#input-956-GTS1").prop("checked")) { // set a note for this option that other options are required jQuery("[id^=note-single-requires-956-GTS1]").show(); // set the parent div to the yellow class jQuery(this).parent().parent().addClass("byb_option_yellow"); // add a statement that only exists if this is a single require // lets make sure this option isnt already required. // this is a hack against two options requiring each other resulting in an infinite loop if(jQuery("[id^=note-single-required-by-904-956-GTS1]").length === 0) { // check the required item // if this is not in an overwrite group //if(jQuery("[id^=input-904]").prop("type") != "radio") if(jQuery("[id^=input-904]").prop("type") != "radio" && !jQuery(this).prop("single_selection_group")) { jQuery("[id^=input-904]").prop("disabled", true); } if(!jQuery("[id^=input-904]").prop("checked")) { jQuery("[id^=input-904]").prop("checked", true).change(); } // run a price tally - wasnt calculating proper cost 2/6/13 - rusty checked_boxes_price_tally(); // set the parent div of the required option the yellow class jQuery("[id^=input-904]").parent().parent().addClass("byb_option_yellow"); // add a note stating why this option is checked jQuery("[id^=note-904]").append("
(Required By: 956-GTS1-Hull Side Gelcoat - White)
"); } } // here we reverse out everything from above else { // set the parent div to the normal class jQuery(this).parent().parent().removeClass("byb_option_yellow"); // remove the requires note jQuery("[id^=note-single-requires-956-GTS1]").hide(); jQuery("[id^=note-single-required-by-956-GTS1]").hide(); // add a statement that only exists if this was a single require and it reverses the notes and colors above // set the parent div of the required option the yellow class jQuery("[id^=input-904]").parent().parent().removeClass("byb_option_yellow"); jQuery("[id^=input-904]").prop("disabled", false); // add a note stating why this option is checked jQuery("[id^=note-single-required-by-904-956-GTS1]").remove(); } }); // end click listener jQuery("#input-950-GTS1").change(function(){ if(jQuery("#input-950-GTS1").prop("checked")) { // set a note for this option that other options are required jQuery("[id^=note-single-requires-950-GTS1]").show(); // set the parent div to the yellow class jQuery(this).parent().parent().addClass("byb_option_yellow"); // add a statement that only exists if this is a single require // lets make sure this option isnt already required. // this is a hack against two options requiring each other resulting in an infinite loop if(jQuery("[id^=note-single-required-by-902-950-GTS1]").length === 0) { // check the required item // if this is not in an overwrite group //if(jQuery("[id^=input-902]").prop("type") != "radio") if(jQuery("[id^=input-902]").prop("type") != "radio" && !jQuery(this).prop("single_selection_group")) { jQuery("[id^=input-902]").prop("disabled", true); } if(!jQuery("[id^=input-902]").prop("checked")) { jQuery("[id^=input-902]").prop("checked", true).change(); } // run a price tally - wasnt calculating proper cost 2/6/13 - rusty checked_boxes_price_tally(); // set the parent div of the required option the yellow class jQuery("[id^=input-902]").parent().parent().addClass("byb_option_yellow"); // add a note stating why this option is checked jQuery("[id^=note-902]").append("
(Required By: 950-GTS1-Hull Side Gelcoat - Black)
"); } } // here we reverse out everything from above else { // set the parent div to the normal class jQuery(this).parent().parent().removeClass("byb_option_yellow"); // remove the requires note jQuery("[id^=note-single-requires-950-GTS1]").hide(); jQuery("[id^=note-single-required-by-950-GTS1]").hide(); // add a statement that only exists if this was a single require and it reverses the notes and colors above // set the parent div of the required option the yellow class jQuery("[id^=input-902]").parent().parent().removeClass("byb_option_yellow"); jQuery("[id^=input-902]").prop("disabled", false); // add a note stating why this option is checked jQuery("[id^=note-single-required-by-902-950-GTS1]").remove(); } }); // end click listener jQuery("#input-951-GTS1").change(function(){ if(jQuery("#input-951-GTS1").prop("checked")) { // set a note for this option that other options are required jQuery("[id^=note-single-requires-951-GTS1]").show(); // set the parent div to the yellow class jQuery(this).parent().parent().addClass("byb_option_yellow"); // add a statement that only exists if this is a single require } // here we reverse out everything from above else { // set the parent div to the normal class jQuery(this).parent().parent().removeClass("byb_option_yellow"); // remove the requires note jQuery("[id^=note-single-requires-951-GTS1]").hide(); jQuery("[id^=note-single-required-by-951-GTS1]").hide(); // add a statement that only exists if this was a single require and it reverses the notes and colors above // set the parent div of the required option the yellow class jQuery("[id^=input-902]").parent().parent().removeClass("byb_option_yellow"); jQuery("[id^=input-902]").prop("disabled", false); // add a note stating why this option is checked jQuery("[id^=note-single-required-by-902-950-GTS1]").remove(); } }); // end click listener jQuery("#input-952-GTS1").change(function(){ if(jQuery("#input-952-GTS1").prop("checked")) { // set a note for this option that other options are required jQuery("[id^=note-single-requires-952-GTS1]").show(); // set the parent div to the yellow class jQuery(this).parent().parent().addClass("byb_option_yellow"); // add a statement that only exists if this is a single require } // here we reverse out everything from above else { // set the parent div to the normal class jQuery(this).parent().parent().removeClass("byb_option_yellow"); // remove the requires note jQuery("[id^=note-single-requires-952-GTS1]").hide(); jQuery("[id^=note-single-required-by-952-GTS1]").hide(); // add a statement that only exists if this was a single require and it reverses the notes and colors above // set the parent div of the required option the yellow class jQuery("[id^=input-902]").parent().parent().removeClass("byb_option_yellow"); jQuery("[id^=input-902]").prop("disabled", false); // add a note stating why this option is checked jQuery("[id^=note-single-required-by-902-950-GTS1]").remove(); } }); // end click listener jQuery("#input-934-GTS1").change(function(){ if(jQuery("#input-934-GTS1").prop("checked")) { // set a note for this option that other options are required jQuery("[id^=note-single-requires-934-GTS1]").show(); // set the parent div to the yellow class jQuery(this).parent().parent().addClass("byb_option_yellow"); // add a statement that only exists if this is a single require } // here we reverse out everything from above else { // set the parent div to the normal class jQuery(this).parent().parent().removeClass("byb_option_yellow"); // remove the requires note jQuery("[id^=note-single-requires-934-GTS1]").hide(); jQuery("[id^=note-single-required-by-934-GTS1]").hide(); // add a statement that only exists if this was a single require and it reverses the notes and colors above // set the parent div of the required option the yellow class jQuery("[id^=input-902]").parent().parent().removeClass("byb_option_yellow"); jQuery("[id^=input-902]").prop("disabled", false); // add a note stating why this option is checked jQuery("[id^=note-single-required-by-902-950-GTS1]").remove(); } }); // end click listener jQuery("#input-980-GTS1").change(function(){ if(jQuery("#input-980-GTS1").prop("checked")) { // set a note for this option that other options are required jQuery("[id^=note-single-requires-980-GTS1]").show(); // set the parent div to the yellow class jQuery(this).parent().parent().addClass("byb_option_yellow"); // add a statement that only exists if this is a single require } // here we reverse out everything from above else { // set the parent div to the normal class jQuery(this).parent().parent().removeClass("byb_option_yellow"); // remove the requires note jQuery("[id^=note-single-requires-980-GTS1]").hide(); jQuery("[id^=note-single-required-by-980-GTS1]").hide(); // add a statement that only exists if this was a single require and it reverses the notes and colors above // set the parent div of the required option the yellow class jQuery("[id^=input-902]").parent().parent().removeClass("byb_option_yellow"); jQuery("[id^=input-902]").prop("disabled", false); // add a note stating why this option is checked jQuery("[id^=note-single-required-by-902-950-GTS1]").remove(); } }); // end click listener jQuery("#input-935-GTS1").change(function(){ if(jQuery("#input-935-GTS1").prop("checked")) { // set a note for this option that other options are required jQuery("[id^=note-single-requires-935-GTS1]").show(); // set the parent div to the yellow class jQuery(this).parent().parent().addClass("byb_option_yellow"); // add a statement that only exists if this is a single require } // here we reverse out everything from above else { // set the parent div to the normal class jQuery(this).parent().parent().removeClass("byb_option_yellow"); // remove the requires note jQuery("[id^=note-single-requires-935-GTS1]").hide(); jQuery("[id^=note-single-required-by-935-GTS1]").hide(); // add a statement that only exists if this was a single require and it reverses the notes and colors above // set the parent div of the required option the yellow class jQuery("[id^=input-902]").parent().parent().removeClass("byb_option_yellow"); jQuery("[id^=input-902]").prop("disabled", false); // add a note stating why this option is checked jQuery("[id^=note-single-required-by-902-950-GTS1]").remove(); } }); // end click listener jQuery("#input-925-GTS1").change(function(){ if(jQuery("#input-925-GTS1").prop("checked")) { // set a note for this option that other options are required jQuery("[id^=note-single-requires-925-GTS1]").show(); // set the parent div to the yellow class jQuery(this).parent().parent().addClass("byb_option_yellow"); // add a statement that only exists if this is a single require // lets make sure this option isnt already required. // this is a hack against two options requiring each other resulting in an infinite loop if(jQuery("[id^=note-single-required-by-SOLID_HULL-925-GTS1]").length === 0) { // check the required item // if this is not in an overwrite group //if(jQuery("[id^=input-SOLID_HULL]").prop("type") != "radio") if(jQuery("[id^=input-SOLID_HULL]").prop("type") != "radio" && !jQuery(this).prop("single_selection_group")) { jQuery("[id^=input-SOLID_HULL]").prop("disabled", true); } if(!jQuery("[id^=input-SOLID_HULL]").prop("checked")) { jQuery("[id^=input-SOLID_HULL]").prop("checked", true).change(); } // run a price tally - wasnt calculating proper cost 2/6/13 - rusty checked_boxes_price_tally(); // set the parent div of the required option the yellow class jQuery("[id^=input-SOLID_HULL]").parent().parent().addClass("byb_option_yellow"); // add a note stating why this option is checked jQuery("[id^=note-SOLID_HULL]").append("
(Required By: 925-GTS1-Gel Coated Entire Hull - Black)
"); } } // here we reverse out everything from above else { // set the parent div to the normal class jQuery(this).parent().parent().removeClass("byb_option_yellow"); // remove the requires note jQuery("[id^=note-single-requires-925-GTS1]").hide(); jQuery("[id^=note-single-required-by-925-GTS1]").hide(); // add a statement that only exists if this was a single require and it reverses the notes and colors above // set the parent div of the required option the yellow class jQuery("[id^=input-SOLID_HULL]").parent().parent().removeClass("byb_option_yellow"); jQuery("[id^=input-SOLID_HULL]").prop("disabled", false); // add a note stating why this option is checked jQuery("[id^=note-single-required-by-SOLID_HULL-925-GTS1]").remove(); } }); // end click listener jQuery("#input-926-GTS1").change(function(){ if(jQuery("#input-926-GTS1").prop("checked")) { // set a note for this option that other options are required jQuery("[id^=note-single-requires-926-GTS1]").show(); // set the parent div to the yellow class jQuery(this).parent().parent().addClass("byb_option_yellow"); // add a statement that only exists if this is a single require // lets make sure this option isnt already required. // this is a hack against two options requiring each other resulting in an infinite loop if(jQuery("[id^=note-single-required-by-SOLID_HULL-926-GTS1]").length === 0) { // check the required item // if this is not in an overwrite group //if(jQuery("[id^=input-SOLID_HULL]").prop("type") != "radio") if(jQuery("[id^=input-SOLID_HULL]").prop("type") != "radio" && !jQuery(this).prop("single_selection_group")) { jQuery("[id^=input-SOLID_HULL]").prop("disabled", true); } if(!jQuery("[id^=input-SOLID_HULL]").prop("checked")) { jQuery("[id^=input-SOLID_HULL]").prop("checked", true).change(); } // run a price tally - wasnt calculating proper cost 2/6/13 - rusty checked_boxes_price_tally(); // set the parent div of the required option the yellow class jQuery("[id^=input-SOLID_HULL]").parent().parent().addClass("byb_option_yellow"); // add a note stating why this option is checked jQuery("[id^=note-SOLID_HULL]").append("
(Required By: 926-GTS1-Gel Coated Entire Hull - Biscayne Blue)
"); } } // here we reverse out everything from above else { // set the parent div to the normal class jQuery(this).parent().parent().removeClass("byb_option_yellow"); // remove the requires note jQuery("[id^=note-single-requires-926-GTS1]").hide(); jQuery("[id^=note-single-required-by-926-GTS1]").hide(); // add a statement that only exists if this was a single require and it reverses the notes and colors above // set the parent div of the required option the yellow class jQuery("[id^=input-SOLID_HULL]").parent().parent().removeClass("byb_option_yellow"); jQuery("[id^=input-SOLID_HULL]").prop("disabled", false); // add a note stating why this option is checked jQuery("[id^=note-single-required-by-SOLID_HULL-926-GTS1]").remove(); } }); // end click listener jQuery("#input-927-GTS1").change(function(){ if(jQuery("#input-927-GTS1").prop("checked")) { // set a note for this option that other options are required jQuery("[id^=note-single-requires-927-GTS1]").show(); // set the parent div to the yellow class jQuery(this).parent().parent().addClass("byb_option_yellow"); // add a statement that only exists if this is a single require // lets make sure this option isnt already required. // this is a hack against two options requiring each other resulting in an infinite loop if(jQuery("[id^=note-single-required-by-SOLID_HULL-927-GTS1]").length === 0) { // check the required item // if this is not in an overwrite group //if(jQuery("[id^=input-SOLID_HULL]").prop("type") != "radio") if(jQuery("[id^=input-SOLID_HULL]").prop("type") != "radio" && !jQuery(this).prop("single_selection_group")) { jQuery("[id^=input-SOLID_HULL]").prop("disabled", true); } if(!jQuery("[id^=input-SOLID_HULL]").prop("checked")) { jQuery("[id^=input-SOLID_HULL]").prop("checked", true).change(); } // run a price tally - wasnt calculating proper cost 2/6/13 - rusty checked_boxes_price_tally(); // set the parent div of the required option the yellow class jQuery("[id^=input-SOLID_HULL]").parent().parent().addClass("byb_option_yellow"); // add a note stating why this option is checked jQuery("[id^=note-SOLID_HULL]").append("
(Required By: 927-GTS1-Gel Coated Entire Hull - Alloy Gray)
"); } } // here we reverse out everything from above else { // set the parent div to the normal class jQuery(this).parent().parent().removeClass("byb_option_yellow"); // remove the requires note jQuery("[id^=note-single-requires-927-GTS1]").hide(); jQuery("[id^=note-single-required-by-927-GTS1]").hide(); // add a statement that only exists if this was a single require and it reverses the notes and colors above // set the parent div of the required option the yellow class jQuery("[id^=input-SOLID_HULL]").parent().parent().removeClass("byb_option_yellow"); jQuery("[id^=input-SOLID_HULL]").prop("disabled", false); // add a note stating why this option is checked jQuery("[id^=note-single-required-by-SOLID_HULL-927-GTS1]").remove(); } }); // end click listener jQuery("#input-936-GTS1").change(function(){ if(jQuery("#input-936-GTS1").prop("checked")) { // set a note for this option that other options are required jQuery("[id^=note-single-requires-936-GTS1]").show(); // set the parent div to the yellow class jQuery(this).parent().parent().addClass("byb_option_yellow"); // add a statement that only exists if this is a single require // lets make sure this option isnt already required. // this is a hack against two options requiring each other resulting in an infinite loop if(jQuery("[id^=note-single-required-by-SOLID_HULL-936-GTS1]").length === 0) { // check the required item // if this is not in an overwrite group //if(jQuery("[id^=input-SOLID_HULL]").prop("type") != "radio") if(jQuery("[id^=input-SOLID_HULL]").prop("type") != "radio" && !jQuery(this).prop("single_selection_group")) { jQuery("[id^=input-SOLID_HULL]").prop("disabled", true); } if(!jQuery("[id^=input-SOLID_HULL]").prop("checked")) { jQuery("[id^=input-SOLID_HULL]").prop("checked", true).change(); } // run a price tally - wasnt calculating proper cost 2/6/13 - rusty checked_boxes_price_tally(); // set the parent div of the required option the yellow class jQuery("[id^=input-SOLID_HULL]").parent().parent().addClass("byb_option_yellow"); // add a note stating why this option is checked jQuery("[id^=note-SOLID_HULL]").append("
(Required By: 936-GTS1-Gel Coated Entire Hull - Ice Blue)
"); } } // here we reverse out everything from above else { // set the parent div to the normal class jQuery(this).parent().parent().removeClass("byb_option_yellow"); // remove the requires note jQuery("[id^=note-single-requires-936-GTS1]").hide(); jQuery("[id^=note-single-required-by-936-GTS1]").hide(); // add a statement that only exists if this was a single require and it reverses the notes and colors above // set the parent div of the required option the yellow class jQuery("[id^=input-SOLID_HULL]").parent().parent().removeClass("byb_option_yellow"); jQuery("[id^=input-SOLID_HULL]").prop("disabled", false); // add a note stating why this option is checked jQuery("[id^=note-single-required-by-SOLID_HULL-936-GTS1]").remove(); } }); // end click listener jQuery("#input-933-GTS1").change(function(){ if(jQuery("#input-933-GTS1").prop("checked")) { // set a note for this option that other options are required jQuery("[id^=note-single-requires-933-GTS1]").show(); // set the parent div to the yellow class jQuery(this).parent().parent().addClass("byb_option_yellow"); // add a statement that only exists if this is a single require // lets make sure this option isnt already required. // this is a hack against two options requiring each other resulting in an infinite loop if(jQuery("[id^=note-single-required-by-SOLID_HULL-933-GTS1]").length === 0) { // check the required item // if this is not in an overwrite group //if(jQuery("[id^=input-SOLID_HULL]").prop("type") != "radio") if(jQuery("[id^=input-SOLID_HULL]").prop("type") != "radio" && !jQuery(this).prop("single_selection_group")) { jQuery("[id^=input-SOLID_HULL]").prop("disabled", true); } if(!jQuery("[id^=input-SOLID_HULL]").prop("checked")) { jQuery("[id^=input-SOLID_HULL]").prop("checked", true).change(); } // run a price tally - wasnt calculating proper cost 2/6/13 - rusty checked_boxes_price_tally(); // set the parent div of the required option the yellow class jQuery("[id^=input-SOLID_HULL]").parent().parent().addClass("byb_option_yellow"); // add a note stating why this option is checked jQuery("[id^=note-SOLID_HULL]").append("
(Required By: 933-GTS1-Gel Coated Entire Hull - Atlas Blue)
"); } } // here we reverse out everything from above else { // set the parent div to the normal class jQuery(this).parent().parent().removeClass("byb_option_yellow"); // remove the requires note jQuery("[id^=note-single-requires-933-GTS1]").hide(); jQuery("[id^=note-single-required-by-933-GTS1]").hide(); // add a statement that only exists if this was a single require and it reverses the notes and colors above // set the parent div of the required option the yellow class jQuery("[id^=input-SOLID_HULL]").parent().parent().removeClass("byb_option_yellow"); jQuery("[id^=input-SOLID_HULL]").prop("disabled", false); // add a note stating why this option is checked jQuery("[id^=note-single-required-by-SOLID_HULL-933-GTS1]").remove(); } }); // end click listener jQuery("#input-937-GTS1").change(function(){ if(jQuery("#input-937-GTS1").prop("checked")) { // set a note for this option that other options are required jQuery("[id^=note-single-requires-937-GTS1]").show(); // set the parent div to the yellow class jQuery(this).parent().parent().addClass("byb_option_yellow"); // add a statement that only exists if this is a single require // lets make sure this option isnt already required. // this is a hack against two options requiring each other resulting in an infinite loop if(jQuery("[id^=note-single-required-by-SOLID_HULL-937-GTS1]").length === 0) { // check the required item // if this is not in an overwrite group //if(jQuery("[id^=input-SOLID_HULL]").prop("type") != "radio") if(jQuery("[id^=input-SOLID_HULL]").prop("type") != "radio" && !jQuery(this).prop("single_selection_group")) { jQuery("[id^=input-SOLID_HULL]").prop("disabled", true); } if(!jQuery("[id^=input-SOLID_HULL]").prop("checked")) { jQuery("[id^=input-SOLID_HULL]").prop("checked", true).change(); } // run a price tally - wasnt calculating proper cost 2/6/13 - rusty checked_boxes_price_tally(); // set the parent div of the required option the yellow class jQuery("[id^=input-SOLID_HULL]").parent().parent().addClass("byb_option_yellow"); // add a note stating why this option is checked jQuery("[id^=note-SOLID_HULL]").append("
(Required By: 937-GTS1-Gel Coated Entire Hull - Seafoam Green)
"); } } // here we reverse out everything from above else { // set the parent div to the normal class jQuery(this).parent().parent().removeClass("byb_option_yellow"); // remove the requires note jQuery("[id^=note-single-requires-937-GTS1]").hide(); jQuery("[id^=note-single-required-by-937-GTS1]").hide(); // add a statement that only exists if this was a single require and it reverses the notes and colors above // set the parent div of the required option the yellow class jQuery("[id^=input-SOLID_HULL]").parent().parent().removeClass("byb_option_yellow"); jQuery("[id^=input-SOLID_HULL]").prop("disabled", false); // add a note stating why this option is checked jQuery("[id^=note-single-required-by-SOLID_HULL-937-GTS1]").remove(); } }); // end click listener jQuery("#input-658-GTS1").change(function(){ if(jQuery("#input-658-GTS1").prop("checked")) { // set a note for this option that other options are required jQuery("[id^=note-single-requires-658-GTS1]").show(); // set the parent div to the yellow class jQuery(this).parent().parent().addClass("byb_option_yellow"); // add a statement that only exists if this is a single require } // here we reverse out everything from above else { // set the parent div to the normal class jQuery(this).parent().parent().removeClass("byb_option_yellow"); // remove the requires note jQuery("[id^=note-single-requires-658-GTS1]").hide(); jQuery("[id^=note-single-required-by-658-GTS1]").hide(); // add a statement that only exists if this was a single require and it reverses the notes and colors above // set the parent div of the required option the yellow class jQuery("[id^=input-SOLID_HULL]").parent().parent().removeClass("byb_option_yellow"); jQuery("[id^=input-SOLID_HULL]").prop("disabled", false); // add a note stating why this option is checked jQuery("[id^=note-single-required-by-SOLID_HULL-937-GTS1]").remove(); } }); // end click listener jQuery("#input-636-GTS1").change(function(){ if(jQuery("#input-636-GTS1").prop("checked")) { // set a note for this option that other options are required jQuery("[id^=note-single-requires-636-GTS1]").show(); // set the parent div to the yellow class jQuery(this).parent().parent().addClass("byb_option_yellow"); // add a statement that only exists if this is a single require } // here we reverse out everything from above else { // set the parent div to the normal class jQuery(this).parent().parent().removeClass("byb_option_yellow"); // remove the requires note jQuery("[id^=note-single-requires-636-GTS1]").hide(); jQuery("[id^=note-single-required-by-636-GTS1]").hide(); // add a statement that only exists if this was a single require and it reverses the notes and colors above // set the parent div of the required option the yellow class jQuery("[id^=input-SOLID_HULL]").parent().parent().removeClass("byb_option_yellow"); jQuery("[id^=input-SOLID_HULL]").prop("disabled", false); // add a note stating why this option is checked jQuery("[id^=note-single-required-by-SOLID_HULL-937-GTS1]").remove(); } }); // end click listener jQuery("#input-637-GTS1").change(function(){ if(jQuery("#input-637-GTS1").prop("checked")) { // set a note for this option that other options are required jQuery("[id^=note-single-requires-637-GTS1]").show(); // set the parent div to the yellow class jQuery(this).parent().parent().addClass("byb_option_yellow"); // add a statement that only exists if this is a single require } // here we reverse out everything from above else { // set the parent div to the normal class jQuery(this).parent().parent().removeClass("byb_option_yellow"); // remove the requires note jQuery("[id^=note-single-requires-637-GTS1]").hide(); jQuery("[id^=note-single-required-by-637-GTS1]").hide(); // add a statement that only exists if this was a single require and it reverses the notes and colors above // set the parent div of the required option the yellow class jQuery("[id^=input-SOLID_HULL]").parent().parent().removeClass("byb_option_yellow"); jQuery("[id^=input-SOLID_HULL]").prop("disabled", false); // add a note stating why this option is checked jQuery("[id^=note-single-required-by-SOLID_HULL-937-GTS1]").remove(); } }); // end click listener jQuery("#input-638-GTS1").change(function(){ if(jQuery("#input-638-GTS1").prop("checked")) { // set a note for this option that other options are required jQuery("[id^=note-single-requires-638-GTS1]").show(); // set the parent div to the yellow class jQuery(this).parent().parent().addClass("byb_option_yellow"); // add a statement that only exists if this is a single require } // here we reverse out everything from above else { // set the parent div to the normal class jQuery(this).parent().parent().removeClass("byb_option_yellow"); // remove the requires note jQuery("[id^=note-single-requires-638-GTS1]").hide(); jQuery("[id^=note-single-required-by-638-GTS1]").hide(); // add a statement that only exists if this was a single require and it reverses the notes and colors above // set the parent div of the required option the yellow class jQuery("[id^=input-SOLID_HULL]").parent().parent().removeClass("byb_option_yellow"); jQuery("[id^=input-SOLID_HULL]").prop("disabled", false); // add a note stating why this option is checked jQuery("[id^=note-single-required-by-SOLID_HULL-937-GTS1]").remove(); } }); // end click listener jQuery("#input-594SEP-GTS1").change(function(){ if(jQuery("#input-594SEP-GTS1").prop("checked")) { // set a note for this option that other options are required jQuery("[id^=note-single-requires-594SEP-GTS1]").show(); // set the parent div to the yellow class jQuery(this).parent().parent().addClass("byb_option_yellow"); // add a statement that only exists if this is a single require } // here we reverse out everything from above else { // set the parent div to the normal class jQuery(this).parent().parent().removeClass("byb_option_yellow"); // remove the requires note jQuery("[id^=note-single-requires-594SEP-GTS1]").hide(); jQuery("[id^=note-single-required-by-594SEP-GTS1]").hide(); // add a statement that only exists if this was a single require and it reverses the notes and colors above // set the parent div of the required option the yellow class jQuery("[id^=input-SOLID_HULL]").parent().parent().removeClass("byb_option_yellow"); jQuery("[id^=input-SOLID_HULL]").prop("disabled", false); // add a note stating why this option is checked jQuery("[id^=note-single-required-by-SOLID_HULL-937-GTS1]").remove(); } }); // end click listener jQuery("#input-594CEP-GTS1").change(function(){ if(jQuery("#input-594CEP-GTS1").prop("checked")) { // set a note for this option that other options are required jQuery("[id^=note-single-requires-594CEP-GTS1]").show(); // set the parent div to the yellow class jQuery(this).parent().parent().addClass("byb_option_yellow"); // add a statement that only exists if this is a single require } // here we reverse out everything from above else { // set the parent div to the normal class jQuery(this).parent().parent().removeClass("byb_option_yellow"); // remove the requires note jQuery("[id^=note-single-requires-594CEP-GTS1]").hide(); jQuery("[id^=note-single-required-by-594CEP-GTS1]").hide(); // add a statement that only exists if this was a single require and it reverses the notes and colors above // set the parent div of the required option the yellow class jQuery("[id^=input-SOLID_HULL]").parent().parent().removeClass("byb_option_yellow"); jQuery("[id^=input-SOLID_HULL]").prop("disabled", false); // add a note stating why this option is checked jQuery("[id^=note-single-required-by-SOLID_HULL-937-GTS1]").remove(); } }); // end click listener }); // end of document ready jQuery(document).ready(function(){ option_group_data["971-GTS1"] = {}; option_group_data["971-GTS1"]["part_groups"] = new Array(); option_group_data["971-GTS1"]["part_groups"].push("10"); option_group_data["972-GTS1"] = {}; option_group_data["972-GTS1"]["part_groups"] = new Array(); option_group_data["972-GTS1"]["part_groups"].push("10"); option_group_data["974-GTS1"] = {}; option_group_data["974-GTS1"]["part_groups"] = new Array(); option_group_data["974-GTS1"]["part_groups"].push("10"); option_group_data["977-GTS1"] = {}; option_group_data["977-GTS1"]["part_groups"] = new Array(); option_group_data["977-GTS1"]["part_groups"].push("10"); option_group_data["956-GTS1"] = {}; option_group_data["956-GTS1"]["part_groups"] = new Array(); option_group_data["956-GTS1"]["part_groups"].push("11"); option_group_data["950-GTS1"] = {}; option_group_data["950-GTS1"]["part_groups"] = new Array(); option_group_data["950-GTS1"]["part_groups"].push("12"); option_group_data["951-GTS1"] = {}; option_group_data["951-GTS1"]["part_groups"] = new Array(); option_group_data["951-GTS1"]["part_groups"].push("13"); option_group_data["952-GTS1"] = {}; option_group_data["952-GTS1"]["part_groups"] = new Array(); option_group_data["952-GTS1"]["part_groups"].push("13"); option_group_data["934-GTS1"] = {}; option_group_data["934-GTS1"]["part_groups"] = new Array(); option_group_data["934-GTS1"]["part_groups"].push("13"); option_group_data["980-GTS1"] = {}; option_group_data["980-GTS1"]["part_groups"] = new Array(); option_group_data["980-GTS1"]["part_groups"].push("13"); option_group_data["935-GTS1"] = {}; option_group_data["935-GTS1"]["part_groups"] = new Array(); option_group_data["935-GTS1"]["part_groups"].push("13"); option_group_data["925-GTS1"] = {}; option_group_data["925-GTS1"]["part_groups"] = new Array(); option_group_data["925-GTS1"]["part_groups"].push("10"); option_group_data["926-GTS1"] = {}; option_group_data["926-GTS1"]["part_groups"] = new Array(); option_group_data["926-GTS1"]["part_groups"].push("10"); option_group_data["927-GTS1"] = {}; option_group_data["927-GTS1"]["part_groups"] = new Array(); option_group_data["927-GTS1"]["part_groups"].push("10"); option_group_data["936-GTS1"] = {}; option_group_data["936-GTS1"]["part_groups"] = new Array(); option_group_data["936-GTS1"]["part_groups"].push("10"); option_group_data["933-GTS1"] = {}; option_group_data["933-GTS1"]["part_groups"] = new Array(); option_group_data["933-GTS1"]["part_groups"].push("10"); option_group_data["937-GTS1"] = {}; option_group_data["937-GTS1"]["part_groups"] = new Array(); option_group_data["937-GTS1"]["part_groups"].push("10"); option_group_data["902-GTS1"] = {}; option_group_data["902-GTS1"]["available_with"] = new Array(); option_group_data["902-GTS1"]["available_with_compound"] = new Array(); option_group_data["902-GTS1"]["available_with"].push("12"); option_group_data["902-GTS1"]["available_with"].push("13"); option_group_data["904-GTS1"] = {}; option_group_data["904-GTS1"]["available_with"] = new Array(); option_group_data["904-GTS1"]["available_with_compound"] = new Array(); option_group_data["904-GTS1"]["available_with"].push("11"); option_group_data["904-GTS1"]["available_with"].push("13"); option_group_data["SOLID_HULL"] = {}; option_group_data["SOLID_HULL"]["available_with"] = new Array(); option_group_data["SOLID_HULL"]["available_with_compound"] = new Array(); option_group_data["SOLID_HULL"]["available_with"].push("10"); option_group_data["644-GTS1"] = {}; option_group_data["644-GTS1"]["part_groups"] = new Array(); option_group_data["644-GTS1"]["part_groups"].push("2"); option_group_data["658-GTS1"] = {}; option_group_data["658-GTS1"]["part_groups"] = new Array(); option_group_data["658-GTS1"]["part_groups"].push("2"); option_group_data["636-GTS1"] = {}; option_group_data["636-GTS1"]["part_groups"] = new Array(); option_group_data["636-GTS1"]["part_groups"].push("8"); option_group_data["637-GTS1"] = {}; option_group_data["637-GTS1"]["part_groups"] = new Array(); option_group_data["637-GTS1"]["part_groups"].push("9"); option_group_data["534-GTS1"] = {}; option_group_data["534-GTS1"]["part_groups"] = new Array(); option_group_data["534-GTS1"]["part_groups"].push("2"); option_group_data["638-GTS1"] = {}; option_group_data["638-GTS1"]["part_groups"] = new Array(); option_group_data["638-GTS1"]["part_groups"].push("2"); option_group_data["643-GTS1"] = {}; option_group_data["643-GTS1"]["part_groups"] = new Array(); option_group_data["643-GTS1"]["part_groups"].push("2"); option_group_data["692B-GTS1BLU"] = {}; option_group_data["692B-GTS1BLU"]["part_groups"] = new Array(); option_group_data["692B-GTS1BLU"]["part_groups"].push("5"); option_group_data["692B-GTS1BLU"]["part_groups"].push("15"); option_group_data["692B-GTS1BLK"] = {}; option_group_data["692B-GTS1BLK"]["part_groups"] = new Array(); option_group_data["692B-GTS1BLK"]["part_groups"].push("5"); option_group_data["692B-GTS1BLK"]["part_groups"].push("15"); option_group_data["692B-GTS1SBL"] = {}; option_group_data["692B-GTS1SBL"]["part_groups"] = new Array(); option_group_data["692B-GTS1SBL"]["part_groups"].push("5"); option_group_data["692B-GTS1SBL"]["part_groups"].push("15"); option_group_data["692W-GTS1BLU"] = {}; option_group_data["692W-GTS1BLU"]["part_groups"] = new Array(); option_group_data["692W-GTS1BLU"]["part_groups"].push("5"); option_group_data["692W-GTS1BLU"]["part_groups"].push("16"); option_group_data["692W-GTS1BLK"] = {}; option_group_data["692W-GTS1BLK"]["part_groups"] = new Array(); option_group_data["692W-GTS1BLK"]["part_groups"].push("5"); option_group_data["692W-GTS1BLK"]["part_groups"].push("16"); option_group_data["692W-GTS1SBL"] = {}; option_group_data["692W-GTS1SBL"]["part_groups"] = new Array(); option_group_data["692W-GTS1SBL"]["part_groups"].push("5"); option_group_data["692W-GTS1SBL"]["part_groups"].push("16"); option_group_data["619WT-GTS1"] = {}; option_group_data["619WT-GTS1"]["available_with"] = new Array(); option_group_data["619WT-GTS1"]["available_with_compound"] = new Array(); option_group_data["619WT-GTS1"]["available_with"].push("5"); option_group_data["619WTEP-GTS1"] = {}; option_group_data["619WTEP-GTS1"]["available_with"] = new Array(); option_group_data["619WTEP-GTS1"]["available_with_compound"] = new Array(); option_group_data["619WTEP-GTS1"]["available_with"].push("5"); option_group_data["560-GTS1"] = {}; option_group_data["560-GTS1"]["available_with"] = new Array(); option_group_data["560-GTS1"]["available_with_compound"] = new Array(); option_group_data["560-GTS1"]["available_with"].push("2"); option_group_data["560-GTS1LNR"] = {}; option_group_data["560-GTS1LNR"]["available_with"] = new Array(); option_group_data["560-GTS1LNR"]["available_with_compound"] = new Array(); option_group_data["560-GTS1LNR"]["available_with"].push("8"); option_group_data["560-GTS1SDW"] = {}; option_group_data["560-GTS1SDW"]["available_with"] = new Array(); option_group_data["560-GTS1SDW"]["available_with_compound"] = new Array(); option_group_data["560-GTS1SDW"]["available_with"].push("9"); option_group_data["685NWT-GTS1"] = {}; option_group_data["685NWT-GTS1"]["part_groups"] = new Array(); option_group_data["685NWT-GTS1"]["part_groups"].push("62"); option_group_data["685WT-GTS1"] = {}; option_group_data["685WT-GTS1"]["part_groups"] = new Array(); option_group_data["685WT-GTS1"]["available_with"] = new Array(); option_group_data["685WT-GTS1"]["available_with_compound"] = new Array(); option_group_data["685WT-GTS1"]["part_groups"].push("62"); option_group_data["685WT-GTS1"]["available_with"].push("5"); option_group_data["796-GTS1"] = {}; option_group_data["796-GTS1"]["available_with"] = new Array(); option_group_data["796-GTS1"]["available_with_compound"] = new Array(); option_group_data["796-GTS1"]["available_with"].push("16"); option_group_data["796B-GTS1"] = {}; option_group_data["796B-GTS1"]["available_with"] = new Array(); option_group_data["796B-GTS1"]["available_with_compound"] = new Array(); option_group_data["796B-GTS1"]["available_with"].push("15"); option_group_data["688AG-GTS1"] = {}; option_group_data["688AG-GTS1"]["part_groups"] = new Array(); option_group_data["688AG-GTS1"]["part_groups"].push("60"); option_group_data["688AA-GTS1"] = {}; option_group_data["688AA-GTS1"]["part_groups"] = new Array(); option_group_data["688AA-GTS1"]["part_groups"].push("61"); option_group_data["686-GTS1ALM"] = {}; option_group_data["686-GTS1ALM"]["available_with"] = new Array(); option_group_data["686-GTS1ALM"]["available_with_compound"] = new Array(); option_group_data["686-GTS1ALM"]["available_with"].push("60"); option_group_data["687-GTS1ALM"] = {}; option_group_data["687-GTS1ALM"]["available_with"] = new Array(); option_group_data["687-GTS1ALM"]["available_with_compound"] = new Array(); option_group_data["687-GTS1ALM"]["available_with"].push("61"); }); // end of document ready jQuery(document).ready(function(){ jQuery("#boat_build_form").validate({ rules: { name: { required: true, minlength: 2 }, email: { required: true, email: true }, zip: { required: true, minlength: 3 } }, messages: { name: " -Name Required ", email: " -Please enter a valid email address", zip: " -Zip/Postal Required" } }); // end validate });// end doc ready jQuery(document).ready(function(){ checked_boxes_price_tally(); checked_boxes_list_tally(); jQuery(".byb_checkbox:input").change(function(){ // if this is a single selection and if this option is checked if(jQuery(this).attr("single_selection_group") && jQuery(this).prop("checked")) { // loop thorugh all options and remove checks from this single selection group var single_selection_group = jQuery(this).attr("single_selection_group"); var single_selection_checked_option = jQuery(this).val(); jQuery("#boat_build_form input:checked").each(function(){ // if this option is in the single selection group AND it is NOT the same part number as selected above if(jQuery(this).attr("single_selection_group") == single_selection_group && jQuery(this).val() != single_selection_checked_option) { jQuery(this).prop("checked",false).change(); } }); } //includes(); apply_part_groups(); apply_graphics(); checked_boxes_price_tally(); checked_boxes_list_tally(); setCanvasColor(); setXtremeArchGraphics(); //alert(overwrite_group_total["msrp"]); }); }); function checked_boxes_price_tally(){ // here we get the volume discount to be used in the final tally price // these boats do NOT get volume discount applied to them ///////// !!!!!!!!!!! Volume discount has been moved to the line item !!!!!!!!!!!!!!!!!!!!///////// //if(item_id != "342" && item_id != "345") // { // var volume_discount = (100 - parseFloat(jQuery("#volume_discount-holder").val()-0))/100; // } //else // { // var volume_discount = 1; // } var dealer_installed_option_total = 0; // get msrp of dealer installed options jQuery(".dealer_installed_option_price").each(function(){ if(jQuery(this).val()) { dealer_installed_option_total = dealer_installed_option_total+parseFloat(jQuery(this).val()); } }); var checked_boxes_total = new Array(); checked_boxes_total["msrp"] = 0; checked_boxes_total["msrp_base"] = 0; checked_boxes_total["dealer_price"] = 0; checked_boxes_total["dealer_margin"] = 0; base_multiplier jQuery("#boat_build_form input:checked").each(function(){ //alert(this.id); //alert(jQuery("input").attr("disabled")); // if the checkbox is not disabled // this first line weeds out tbd pricing of 999999 //if(!jQuery(this).prop("disabled") && jQuery(this).attr("msrp") && jQuery(this).attr("is_tbd") != 1 && jQuery(this).attr("is_tbd") != "1") //if((!jQuery(this).prop("disabled") || jQuery(this).attr("is_required")) && jQuery(this).attr("msrp") && jQuery(this).val() != "NPPNPRICE22S" ) if(!jQuery(this).prop("included_option") && jQuery(this).attr("msrp")) { //alert(jQuery(this).attr("dealer_margin")); //alert(jQuery(this).attr("id")); // we have base if(jQuery(this).attr("overwrite_group") == 1){ checked_boxes_total["msrp_base"] = checked_boxes_total["msrp_base"] + (parseFloat(jQuery(this).attr("msrp"))*base_multiplier); } // we have option else{ checked_boxes_total["msrp_base"] = checked_boxes_total["msrp_base"] + (parseFloat(jQuery(this).attr("msrp"))*option_multiplier); } checked_boxes_total["msrp"] = checked_boxes_total["msrp"] + parseFloat(jQuery(this).attr("msrp")); checked_boxes_total["dealer_price"] = checked_boxes_total["dealer_price"] + parseFloat(jQuery(this).attr("dealer_cost")); checked_boxes_total["dealer_margin"] = checked_boxes_total["dealer_margin"] + parseFloat(jQuery(this).attr("dealer_margin")); } }); // end checked each // cycle through //alert(checked_boxes_total["msrp"]); // here we format the price // here we send the price to the page jQuery(".msrp_holder").html(checked_boxes_total["msrp_base"]+dealer_installed_option_total).formatCurrency({ roundToDecimalPlace:0 }); jQuery(".msrp_container").html(checked_boxes_total["msrp"]+dealer_installed_option_total).formatCurrency({ roundToDecimalPlace:0 }); jQuery(".dealer_price_container").html(checked_boxes_total["dealer_price"]).formatCurrency({ roundToDecimalPlace:0 }); jQuery(".dealer_margin_price_container").html(checked_boxes_total["dealer_margin"]+dealer_installed_option_total).formatCurrency({ roundToDecimalPlace:0 }); } function apply_graphics(){ // hide all the graphic overlays jQuery(".boat_builder_graphic_overlay").css("display","none"); jQuery(".byb_checkbox").each(function() { // if this option has an overlay if(jQuery(this).attr("graphic_id") !== 0) { // if this option is checked if(this.checked) { // possibly put overlays in csv to show more than one overlay per option..? jQuery("#boat_builder_graphic_overlay_"+jQuery(this).attr("graphic_id")).css("display","block"); //alert("#boat_builder_graphic_overlay_"+jQuery(this).attr("graphic_id")); } }// end if }); } function checked_boxes_list_tally(){ // empty the list container jQuery("#option_list_tally_table").empty(); jQuery("input:checked").each(function(){ //alert(this.id); //jQuery("#option_list_tally").append(this.next().child()); if(jQuery(this).attr("title") && jQuery(this).attr("option_group") != 16) { var price_msrp = jQuery(this).attr("msrp").replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,"); if(country == 226 || country == 138) { if ((jQuery(this).prop("included_option"))) { jQuery("#option_list_tally_table").append(''+jQuery(this).attr("title")+'$0'); } else { jQuery("#option_list_tally_table").append(''+jQuery(this).attr("title")+'$'+price_msrp+''); } } else { jQuery("#option_list_tally_table").append(''+jQuery(this).attr("title")+''); } } }); // end checked each // } function selectDefaultEngine(){ //alert('firing'); var min_price_engine = 999999999999999; var min_price_engine_id; jQuery('input:radio[name=overwrite_group-1]').each(function(){ var temp_msrp = parseInt(jQuery(this).attr('msrp')); // if this engine is less than the previous one we set it as the sel no if(temp_msrp < min_price_engine) { min_price_engine_id = jQuery(this).attr('id'); min_price_engine = temp_msrp; } }); // check the cheapest engine //alert(min_price_engine_id); jQuery('#'+min_price_engine_id).prop('checked',true).change(); } jQuery(document).ready(function(){ // click the package that is selected //jQuery('input:radio[name=overwrite_group-7]:checked').change(); //alert('here2'); // engine if(!jQuery('input:radio[name=overwrite_group-1]:checked').val()) { //alert('here'); selectDefaultEngine(); } else { //alert('here2'); jQuery('input:radio[name=overwrite_group-1]:checked').change(); } // kicker brand //jQuery('input:radio[name=overwrite_group-58]:checked').change(); //trailer brand //jQuery('input:radio[name=overwrite_group-60]:checked').change(); //accent color //jQuery('input:radio[name=overwrite_group-37]:checked').change(); //hull color //jQuery('input:radio[name=overwrite_group-11]:checked').change(); //canvas color //jQuery('input:radio[name=overwrite_group-12]:checked').change(); //jQuery('input:radio[name=overwrite_group-65]:checked').change(); jQuery('#boat_build_form input:checked').each(function(){ jQuery(this).change(); }); setXtremeArchGraphics() });