function closefcpopups(id,scs){if(scs){localStorage.setItem('scs'+id, 1);}$('#fcpop'+id).remove();}function tdfcpopups(id,sas,tdfn,scs){ if(sas){localStorage.setItem('sas'+id, 1);}if(tdfn){if(tdfn == 400){closefcpopups(id,scs);}else if(tdfn == 100){ $('#couponcopysuc').show();$('.couponcopysuc').show();setTimeout(function(){ $('#couponcopysuc').hide();$('.couponcopysuc').hide();},1500); }else{window.location.href=tdfn;}}}function showfcpopups(id,sns,sn,scs,sas){if(scs){var scs = localStorage.getItem('scs'+id);if(scs){return;}}if(sas){var sas = localStorage.getItem('sas'+id);if(sas){return;}}if(sns){var snum = localStorage.getItem('sns'+id);if(!snum){snum = 0;}else{if(parseInt(sn) <= parseInt(snum)){return;}}localStorage.setItem('sns'+id, parseInt(snum)+1);}$('#fcpop'+id).show();var pc=$('#fcpop'+id).attr('data-pc');var mobile=$('#fcpop'+id).attr('data-mobile');if(isMobile()){ $('#fcpop'+id+' .ispcmobile').addClass(mobile).removeClass(pc);}}$($('body')[0]).append(`
`);