'); }, complete: function() { $('#history_button').attr('disabled', ''); $('.attention').remove(); var freesetupmodel='0'; var zipcode=document.getElementById('zipcode').value if(zipcode!=''){ clearTimeout(Confimcheck); Confimcheck = setTimeout(function(){ confirmapply(); }, 2000); } var str=''; var freesetflag=0; $("select[id='prod_imprint'] option").each(function(){ str = $(this).text().toLowerCase(); if (containsWord(str, "one") || containsWord(str, "two") || containsWord(str, "three")) { freesetflag=1; } }); $("select[id='prod_simprint'] option").each(function(){ str = $(this).text().toLowerCase(); if (containsWord(str, "one") || containsWord(str, "two") || containsWord(str, "three")) { freesetflag=1; } }); if(freesetflag==0 && freesetupmodel==0){ $('.freesetup_row').hide(); $('#freesetup_small_det').hide(); } }, success: function(data) { if (data.error) { $('#tab_history #frmhistory').before('