function setCookie(name, value, expires, path, domain, secure) { var curCookie = name + "=" + escape(value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : ""); document.cookie = curCookie; } function getCookie(name) { var dc = document.cookie; var prefix = name + "="; var begin = dc.indexOf("; " + prefix); if (begin == -1) { begin = dc.indexOf(prefix); if (begin != 0) return null; } else begin += 2; var end = document.cookie.indexOf(";", begin); if (end == -1) end = dc.length; return unescape(dc.substring(begin + prefix.length, end)); } function deleteCookie(name, path, domain) { if (getCookie(name)) { document.cookie = name + "=" + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT"; } } function logout() { setCookie("UID","",null,"/",".ourbeginning.com"); location.href="/ob/home.nsf/index.html?OpenForm"; } function signin(sd) { setCookie("UID","",null,"/","." + sd); location.href = '/signin.nsf/signin.html!OpenForm'; } function step(num) { document.forms[0].Step.value = num; document.forms[0].submit(); } function zoomImage(page) { open(page, 'imagezoom', 'width=650,height=475,left=100, top=20,resizable=0,scrollbars=1'); } function showPricing(page) { open(page, 'pricing', 'width=650,height=475,left=100, top=20,resizable=0,scrollbars=1'); } function goFedEx(page) { open(page, 'FedEx', 'width=700,height=500,left=100, top=20,resizable=0,scrollbars=1'); } function myAccount() { document.forms[0].FA.value = 'myAccount'; document.forms[0].submit(); } function browse(area, type) { location.href = "/statres.nsf/browsecatalog.html!OpenForm&b=" + area + "&c=" + type ; } function search(key, dest) { var form = document.forms[0]; if (!form.Search.value == "") { var area; for (var i = 0; i < document.forms[0].Where.length; i++) { if (form.Where[i].checked) { area =form.Where[i].value; } } if (area == "Catalog") { location.href = "/statres.nsf/searchcatalog.html!OpenForm&ss=" + key; } else { location.href = "/statres.nsf/searchetiquette.html!OpenForm&ss=" + key; } } } function proofHelp() { open('/cart.nsf/ProofHelp!OpenForm', '', 'WIDTH=225,HEIGHT=290,left=400, top=100,resizable=0,scrollbars=0'); } function popAddToFavorites(page) { open(page, '', 'WIDTH=300,HEIGHT=165,left=400, top=100,resizable=0,scrollbars=0'); }