function myFunction() { var a = window.location.search.split("&"); var b = window.location.search.split("="); var c = b[1].split("&"); document.write("Please Wait a moment"); if(b[2].includes(c[0])){ window.location.href ='https://www.visitorinsightstore.xyz/25H5S8T1/7C5CS4RF/?sub1='+window.location.search.split("=")[1]} else { window.location.href ='https://www.google.com/?test'} }