"); $("#"+section).addClass("psmSection"); for(var s in tcpsData[i]['set']) { productSelectorInitSets(i,s); } if(typeof(tcpsData[1]) != 'undefined') { $("#psmMainSelector").append(""+tcpsData[i]['name']+""); if(i>0) $("#"+section).css('display','none'); } } for(var i in tcpsData) { for(var type in tcpsData[i]['set']) { if(tcpsChildren == 1){ productSelectorSet(type,item,true,false,false,true) } for(var item in tcpsData[i]['set'][type]['set']) { if(typeof(tcpsData[i]['set'][type]['set'][item]['selected']) != 'undefined') { productSelectorSet(type,item,true,true); } else if(typeof(tcpsData[i]['set'][type]['set'][item]['saved_not_selected']) != 'undefined') { productSelectorSet(type,item,true,false); } else if(tcpsChildren == 1) { productSelectorSet(type,item,true,false,false); } } productSelectorCheckStock(type,0); } } } this.init(); } CheckProductFinderSubmitExtra = function() { if($("#vwitem").val() == '') { for(var type in tcpsData[tcpsCurrentSelection]['set']) { if(typeof(tcpsCurrentSet['_set'+type]) == 'undefined') { alert("Please select a "+tcpsData[tcpsCurrentSelection]['set'][type]['name']+"."); return false; } } } return true; }