function validateSearch(form) { var valStatus = true if (valStatus) { if (!validateFilled(form, "SearchBox")) { alert("Please include text in the search box"); valStatus = false; } } if (valStatus){ document.forms[form].submit(); } } function OpenNewsletter(Page) { var objWindow = window.open(Page, "Newsletter", "width=250,height=300,scrollbars=0"); if (navigator.userAgent.substring(0,9) == "Mozilla/4") { objWindow.focus(); } } function NewWindow(Page, Form) { var objWindow = window.open(Page + '&OrderRef=' + document.forms[Form].OrderRef.value, "OrderStatus", "width=360,height=560,scrollbars=1"); if (navigator.userAgent.substring(0,9) == "Mozilla/4") { objWindow.focus(); } } function PopupNotify(Page, iWidth, iHeight) { var objWindow = window.open(Page, "StockNotification", "width=" + iWidth + ",height=" + iHeight + ",scrollbars=1,resizable=1"); if (navigator.userAgent.substring(0,9) == "Mozilla/4") { objWindow.focus(); } } function OpenStatusNoRef(Page) { var objWindow = window.open(Page, "OrderStatus", "width=360,height=560,scrollbars=1"); if (navigator.userAgent.substring(0,9) == "Mozilla/4") { objWindow.focus(); } }