function ClearForm() { var FieldType; for (var i = 0; i < document.EditForm.length; i++) { FieldType = document.EditForm.elements[i].type if (FieldType == "text" || FieldType == "textarea") { document.EditForm.elements[i].value = "" } if (FieldType == "select-one") { document.EditForm.elements[i].options.selectedIndex = 0 } } } function OpenNewWindow(url, width, height) { var randomnumber=Math.floor(Math.random()*5001) window.open(url, randomnumber, "top=10,left=10,menubar=0,resizable=1,scrollbars=1,width=" + width + ",height=" + height) } function OpenWindowNoScroll(url, width, height) { window.open(url, 'popup_noscroll', "top=10,left=10,menubar=0,resizable=0,scrollbars=0,width=" + width + ",height=" + height) } function protect_images2(e) { var msg = "Sorry, our images are copyrighted."; if (navigator.appName == 'Netscape' && e.which == 3) { alert(msg); return false; } if (navigator.appName == 'Microsoft Internet Explorer' && event.button==2) { alert(msg); return false; } else return true; } function protect_images1() { if(document.images) { for(i=0;i 2) ? argv[2] : null; var path = (argc > 3) ? argv[3] : null; var domain = (argc > 4) ? argv[4] : null; var secure = (argc > 5) ? argv[5] : false; document.cookie = name + "=" + escape (value) + ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + ((path == null) ? "" : ("; path=" + path)) + ((domain == null) ? "" : ("; domain=" + domain)) + ((secure == true) ? "; secure" : ""); } //if current page URL is anything other than 'view cart', set store the URL in the cookie var refstring = location.href; if (refstring != null && refstring.indexOf("ShoppingCart.asp") == -1 && refstring.indexOf("shoppingcart.asp") == -1){ SetCookie("SiteReturnURL", refstring); } // Absolute FAQ Manager .NET // FAQ Launcher JS function xlaAFMlaunch(){ xlaAFMopenwindow('','',''); } function xlaAFMopenwindow(faqid,topicid,question){ AFMwindow=window.open('https://www.supplements101.com/faqs/afmmain.aspx?topicid=' + topicid + '&faqid=' + faqid + '&question=' + question ,'','width=550,height=520,toolbar=0,location=0,status=1,menubar=0,resizable=1'); } function xlaAFMopentopic(what){ xlaAFMopenwindow('',what,''); } function xlaAFMopenfaq(what){ xlaAFMopenwindow(what,'',''); } function xlaAFMsearch(what,topicid,selfpage){ if (selfpage==''){ xlaAFMopenwindow('',topicid,what); } else { self.location.href='https://www.supplements101.com/faqs/afmmain.aspx?topicid=' + topicid + '&question=' + what; } }