﻿function tabover(a, b, e) { v = e.value; if (v.length == a) { document.getElementById(b).focus() } };
function IfEnterSubmit(a, b) { if (event.keyCode == 13) { b.submit() } };
function setDefaultButton(a) { if (document.all) { if (event.keyCode == 13) { event.returnValue = false; event.cancel = true; a.click() } } };
function ChangeSearchClass(a) { if (a.className == "SearchBox") { a.value = ""; a.className = "SearchBoxSelected" } };
function ChangeSearchClass2(a) { a.value = "" }; 
function OpenNew(a, w, h, b, c) { var d = (screen.width - w) / 2; var e = (screen.height - h) / 2; winprops = "height=" + h + ",width=" + w + ",top=" + e + ",left=" + d + ",scrollbars=" + c + ",resizable=1"; winnew = window.open(a, b, winprops); winnew.focus() };
function ToggleTabs(a, b, c, d, e, f) { for (var j = 0; j <= e; j++) { if (j == d) { obj = document.getElementById(a); if (obj.style.display == "none") { obj.style.display = ""; b.src = c } } else { var g = "text" + j; obj = document.getElementById(g); if (obj.style.display == "") { obj.style.display = "none" } var h = "tab" + j; var i = document.getElementById(h); i.src = f[j] } } };
function loadwindowdimensionsiframe(a, b, c, d, e) { ajaxwin = dhtmlmodal.open("ajaxbox", "iframe", a, "Toys", "width=" + b + "px,height=" + c + "px,left=" + e + "px,top=" + d + "px,resize=0,scrolling=0,center=1"); ajaxwin.moveTo("middle", "middle") }; function loadwindowdimensionsmodal(a, b, c, d, e) { ajaxwin = dhtmlmodal.open("ajaxbox", "ajax", a, "Toys", "width=" + b + "px,height=" + c + "px,left=" + e + "px,top=" + d + "px,resize=0,scrolling=0,center=1"); ajaxwin.moveTo("middle", "middle") }; function loadwindowdimensionsmodalnoclose(a, b, c, d, e) { ajaxwin = dhtmlmodal.open("ajaxbox", "ajax", a, "Toys", "width=" + b + "px,height=" + c + "px,left=" + e + "px,top=" + d + "px,resize=0,scrolling=0,center=1"); ajaxwin.moveTo("middle", "middle") }; 
function loadwindowdimensions(a, b, c, d, e) { loadwindowdimensionsiframe(a, b, c, d, e) }; var dhtmlwindow = { imagefiles: ["/images/transparent.gif", "/images/close.gif", "/images/transparent.gif", "/images/transparent.gif"], ajaxbustcache: true, ajaxloadinghtml: "<b>Loading Page. Please wait...</b>", minimizeorder: 0, zIndexvalue: 100, tobjects: [], lastactivet: {}, init: function (t) { var d = document.createElement("div"); d.id = t; d.className = "dhtmlwindow"; var e = ""; e = "<div class=\"drag-handle\">"; e += "DHTML Window <div class=\"drag-controls\"><img src=\"" + this.imagefiles[0] + "\" title=\"Minimize\" /><img src=\"" + this.imagefiles[1] + "\" title=\"Close\" /></div>"; e += "</div>"; e += "<div class=\"drag-contentarea\"></div>"; e += "<div class=\"drag-statusarea\"><div class=\"drag-resizearea\" style=\"background: transparent url(" + this.imagefiles[3] + ") top right no-repeat;\">&nbsp;</div></div>"; e += "</div>"; d.innerHTML = e; document.getElementById("dhtmlwindowholder").appendChild(d); var t = document.getElementById(t); var f = t.getElementsByTagName("div"); for (var i = 0; i < f.length; i++) { if (/drag-/.test(f[i].className)) { t[f[i].className.replace(/drag-/, "")] = f[i] } } t.handle._0 = t; t.resizearea._0 = t; t.controls._0 = t; t.onclose = function () { return true }; t.onmousedown = function () { dhtmlwindow.setfocus(this) }; t.handle.onmousedown = dhtmlwindow.setupdrag; t.resizearea.onmousedown = dhtmlwindow.setupdrag; t.controls.onclick = dhtmlwindow.enablecontrols; t.show = function () { dhtmlwindow.show(this) }; t.hide = function () { dhtmlwindow.hide(this) }; t.close = function () { dhtmlwindow.close(this) }; t.setSize = function (w, h) { dhtmlwindow.setSize(this, w, h) }; t.moveTo = function (x, y) { dhtmlwindow.moveTo(this, x, y) }; t.isResize = function (a) { dhtmlwindow.isResize(this, a) }; t.isScrolling = function (a) { dhtmlwindow.isScrolling(this, a) }; t.load = function (a, b, c) { dhtmlwindow.load(this, a, b, c) }; this.tobjects[this.tobjects.length] = t; return t }, open: function (t, c, e, f, g, h) { var d = dhtmlwindow; function i(a) { var b = new RegExp(a + "=([^,]+)", "i"); return (b.test(g)) ? parseInt(RegExp.$1) : 0 }; if (document.getElementById(t) == null) { t = this.init(t) } else { t = document.getElementById(t) } this.setfocus(t); t.setSize(i(("width")), (i("height"))); var j = i("center") ? "middle" : i("left"); var k = i("center") ? "middle" : i("top"); if (typeof h != "undefined" && h == "recal" && this.scroll_top == 0) { if (window.attachEvent && !window.opera) { this.addEvent(window, function () { setTimeout(function () { t.moveTo(j, k) }, 400) }, "load") } else { this.addEvent(window, function () { t.moveTo(j, k) }, "load") } } t.isResize(i("resize")); t.isScrolling(i("scrolling")); t.style.visibility = "visible"; t.style.display = "block"; t.contentarea.style.display = "block"; t.moveTo(j, k); t.load(c, e, f); if (t.state == "minimized" && t.controls.firstChild.title == "Restore") { t.controls.firstChild.setAttribute("src", dhtmlwindow.imagefiles[0]); t.controls.firstChild.setAttribute("title", "Minimize"); t.state = "fullview" } return t }, setSize: function (t, w, h) { t.style.width = Math.max(parseInt(w), 150) + "px"; t.contentarea.style.height = Math.max(parseInt(h), 100) + "px" }, moveTo: function (t, x, y) { this.getviewpoint(); t.style.left = (x == "middle") ? this.scroll_left + (this.docwidth - t.offsetWidth) / 2 + "px" : this.scroll_left + parseInt(x) + "px"; t.style.top = (y == "middle") ? this.scroll_top + 30 + (this.docheight - t.offsetHeight) / 2 + "px" : this.scroll_top + parseInt(y) + "px" }, isResize: function (t, a) { t.statusarea.style.display = (a) ? "block" : "none"; t.resizeBool = (a) ? 1 : 0 }, isScrolling: function (t, a) { t.contentarea.style.overflow = (a) ? "auto" : "hidden" }, load: function (t, a, b, c) { if (t.isClosed) { alert("The Window has been closed, so no window to load contents into. Open/Create the window again."); return } var a = a.toLowerCase(); if (typeof c != "undefined") { t.handle.firstChild.nodeValue = c } if (a == "inline") { t.contentarea.innerHTML = b } else { if (a == "div") { var d = document.getElementById(b); t.contentarea.innerHTML = (d.defaultHTML || d.innerHTML); if (!d.defaultHTML) { d.defaultHTML = d.innerHTML } d.innerHTML = ""; d.style.display = "none" } else { if (a == "iframe") { t.contentarea.style.overflow = "hidden"; if (!t.contentarea.firstChild || t.contentarea.firstChild.tagName != "IFRAME") { t.contentarea.innerHTML = "<iframe src=\"\" frameborder=0 style=\"margin:0; border:none; padding:0; width:100%; height: 100%\" name=\"_1-" + t.id + "\"></iframe>" } window.frames["_1-" + t.id].location.replace(b) } else { if (a == "ajax") { this.ajax_connect(b, t) } } } } t.contentarea.datatype = a }, setupdrag: function (e) { var d = dhtmlwindow; var t = this._0; d.etarget = this; var e = window.event || e; d.initmousex = e.clientX; d.initmousey = e.clientY; d.initx = parseInt(t.offsetLeft); d.inity = parseInt(t.offsetTop); d.width = parseInt(t.offsetWidth); d.contentheight = parseInt(t.contentarea.offsetHeight); if (t.contentarea.datatype == "iframe") { t.style.backgroundColor = "#F8F8F8"; t.contentarea.style.visibility = "hidden" } document.onmousemove = d.getdistance; document.onmouseup = function () { if (t.contentarea.datatype == "iframe") { t.contentarea.style.backgroundColor = "white"; t.contentarea.style.visibility = "visible" } d.stop() }; return false }, getdistance: function (e) { var d = dhtmlwindow; var a = d.etarget; var e = window.event || e; d.distancex = e.clientX - d.initmousex; d.distancey = e.clientY - d.initmousey; if (a.className == "drag-handle") { d.move(a._0, e) } else { if (a.className == "drag-resizearea") { d.resize(a._0, e) } } return false }, getviewpoint: function () { var a = document.all && !window.opera; var b = document.documentElement && parseInt(document.documentElement.clientWidth) || 100000; this.standardbody = (document.compatMode == "CSS1Compat") ? document.documentElement : document.body; this.scroll_top = (a) ? this.standardbody.scrollTop : window.pageYOffset; this.scroll_left = (a) ? this.standardbody.scrollLeft : window.pageXOffset; this.docwidth = (a) ? this.standardbody.clientWidth : (/Safari/i.test(navigator.userAgent)) ? window.innerWidth : Math.min(b, window.innerWidth - 16); this.docheight = (a) ? this.standardbody.clientHeight : window.innerHeight }, rememberattrs: function (t) { this.getviewpoint(); t.lastx = parseInt((t.style.left || t.offsetLeft)) - dhtmlwindow.scroll_left; t.lasty = parseInt((t.style.top || t.offsetTop)) - dhtmlwindow.scroll_top; t.lastwidth = parseInt(t.style.width) }, move: function (t, e) { t.style.left = dhtmlwindow.distancex + dhtmlwindow.initx + "px"; t.style.top = dhtmlwindow.distancey + dhtmlwindow.inity + "px" }, resize: function (t, e) { t.style.width = Math.max(dhtmlwindow.width + dhtmlwindow.distancex, 150) + "px"; t.contentarea.style.height = Math.max(dhtmlwindow.contentheight + dhtmlwindow.distancey, 100) + "px" }, enablecontrols: function (e) { var d = dhtmlwindow; var a = window.event ? window.event.srcElement : e.target; if (/Minimize/i.test(a.getAttribute("title"))) { d.minimize(a, this._0) } else { if (/Restore/i.test(a.getAttribute("title"))) { d.restore(a, this._0) } else { if (/Close/i.test(a.getAttribute("title"))) { d.close(this._0) } } } return false }, minimize: function (a, t) { dhtmlwindow.rememberattrs(t); a.setAttribute("src", dhtmlwindow.imagefiles[2]); a.setAttribute("title", "Restore"); t.state = "minimized"; t.contentarea.style.display = "none"; t.statusarea.style.display = "none"; if (typeof t.minimizeorder == "undefined") { dhtmlwindow.minimizeorder++; t.minimizeorder = dhtmlwindow.minimizeorder } t.style.left = "10px"; t.style.width = "200px"; var b = t.minimizeorder * 10; t.style.top = dhtmlwindow.scroll_top + dhtmlwindow.docheight - (t.handle.offsetHeight * t.minimizeorder) - b + "px" }, restore: function (a, t) { dhtmlwindow.getviewpoint(); a.setAttribute("src", dhtmlwindow.imagefiles[0]); a.setAttribute("title", "Minimize"); t.state = "fullview"; t.style.display = "block"; t.contentarea.style.display = "block"; if (t.resizeBool) { t.statusarea.style.display = "block" } t.style.left = parseInt(t.lastx) + dhtmlwindow.scroll_left + "px"; t.style.top = parseInt(t.lasty) + dhtmlwindow.scroll_top + "px"; t.style.width = parseInt(t.lastwidth) + "px" }, close: function (t) { try { var a = t.onclose() } catch (err) { var a = true } finally { if (typeof a == "undefined") { alert("An error has occured somwhere inside your \"onclose\" event handler"); var a = true } } if (a) { if (t.state != "minimized") { dhtmlwindow.rememberattrs(t) } if (window.frames["_1-" + t.id]) { window.frames["_1-" + t.id].location.replace("about:blank") } else { t.contentarea.innerHTML = "" } t.style.display = "none"; t.isClosed = true } return a }, setopacity: function (a, b) { if (!a) { return } if (a.filters && a.filters[0]) { if (typeof a.filters[0].opacity == "number") { a.filters[0].opacity = b * 100 } else { a.style.filter = "alpha(opacity=" + b * 100 + ")" } } else { if (typeof a.style.MozOpacity != "undefined") { a.style.MozOpacity = b } else { if (typeof a.style.opacity != "undefined") { a.style.opacity = b } } } }, setfocus: function (t) { this.zIndexvalue++; t.style.zIndex = this.zIndexvalue; t.isClosed = false; this.setopacity(this.lastactivet.handle, 0.5); this.setopacity(t.handle, 1); this.lastactivet = t }, show: function (t) { if (t.isClosed) { alert("DHTML Window has been closed, so nothing to show. Open/Create the window again."); return } if (t.lastx) { dhtmlwindow.restore(t.controls.firstChild, t) } else { t.style.display = "block" } this.setfocus(t); t.state = "fullview" }, hide: function (t) { t.style.display = "none" }, ajax_connect: function (a, t) { var b = false; var c = ""; if (window.XMLHttpRequest) { b = new XMLHttpRequest() } else { if (window.ActiveXObject) { try { b = new ActiveXObject("Msxml2.XMLHTTP") } catch (e) { try { b = new ActiveXObject("Microsoft.XMLHTTP") } catch (e) { } } } else { return false } } t.contentarea.innerHTML = this.ajaxloadinghtml; b.onreadystatechange = function () { dhtmlwindow.ajax_loadpage(b, t) }; if (this.ajaxbustcache) { c = (a.indexOf("?") != -1) ? "&" + new Date().getTime() : "?" + new Date().getTime() } b.open("GET", a + c, true); b.send(null) }, ajax_loadpage: function (a, t) { if (a.readyState == 4 && (a.status == 200 || window.location.href.indexOf("http") == -1)) { t.contentarea.innerHTML = a.responseText } }, stop: function () { dhtmlwindow.etarget = null; document.onmousemove = null; document.onmouseup = null }, addEvent: function (a, b, c) { var c = (window.addEventListener) ? c : "on" + c; if (a.addEventListener) { a.addEventListener(c, b, false) } else { if (a.attachEvent) { a.attachEvent(c, b) } } }, cleanup: function () { for (var i = 0; i < dhtmlwindow.tobjects.length; i++) { dhtmlwindow.tobjects[i].handle._0 = dhtmlwindow.tobjects[i].resizearea._0 = dhtmlwindow.tobjects[i].controls._0 = null } window.onload = null } }; document.write("<div id=\"dhtmlwindowholder\"><span style=\"display:none\">.</span></div>"); window.onunload = dhtmlwindow.cleanup; if (typeof dhtmlwindow == "undefined") { alert("ERROR: Modal Window script requires all files from \"DHTML Window widget\" in order to work!") } var dhtmlmodal = { veilstack: 0, open: function (t, a, b, c, e, f) { var d = dhtmlwindow; this.interVeil = document.getElementById("interVeil"); this.veilstack++; this.loadveil(); if (f == "recal" && d.scroll_top == 0) { d.addEvent(window, function () { dhtmlmodal.adjustveil() }, "load") } var t = d.open(t, a, b, c, e, f); t.controls.firstChild.style.display = "none"; t.controls.onclick = function () { dhtmlmodal.close(this._0, true) }; t.show = function () { dhtmlmodal.show(this) }; t.hide = function () { dhtmlmodal.close(this) }; return t }, loadveil: function () { var d = dhtmlwindow; d.getviewpoint(); this.docheightcomplete = (d.standardbody.offsetHeight > d.standardbody.scrollHeight) ? d.standardbody.offsetHeight : d.standardbody.scrollHeight; this.interVeil.style.width = d.docwidth + "px"; this.interVeil.style.height = this.docheightcomplete + "px"; this.interVeil.style.left = 0; this.interVeil.style.top = 0; this.interVeil.style.visibility = "visible"; this.interVeil.style.display = "block" }, adjustveil: function () { if (this.interVeil && this.interVeil.style.display == "block") { this.loadveil() } }, closeveil: function () { this.veilstack--; if (this.veilstack == 0) { this.interVeil.style.display = "none" } }, close: function (t, a) { t.contentDoc = (t.contentarea.datatype == "iframe") ? window.frames["_1-" + t.id].document : t.contentarea; if (typeof a != "undefined") { t.onclose = function () { return true } } if (dhtmlwindow.close(t)) { this.closeveil() } }, show: function (t) { dhtmlmodal.veilstack++; dhtmlmodal.loadveil(); dhtmlwindow.show(t) } }; document.write("<div id=\"interVeil\"></div>"); dhtmlwindow.addEvent(window, function () { if (typeof dhtmlmodal != "undefined") { dhtmlmodal.adjustveil() } }, "resize"); function GetCookie(a) { var b = a + "="; var c = b.length; var d = document.cookie.length; var i = 0; while (i < d) { var j = i + c; if (document.cookie.substring(i, j) == b) { return getCookieVal(j) } i = document.cookie.indexOf(" ", i) + 1; if (i == 0) { break } } return null }; function getCookieVal(a) { var b = document.cookie.indexOf(";", a); if (b == -1) { b = document.cookie.length } return unescape(document.cookie.substring(a, b)) }; var xhReq = null; function createXMLHttpRequest() { try { return new ActiveXObject("Msxml2.XMLHTTP") } catch (e) { } try { return new ActiveXObject("Microsoft.XMLHTTP") } catch (e) { } try { return new XMLHttpRequest() } catch (e) { } alert("XMLHttpRequest not supported"); return null }; function toggleColors(a, b) { if (a.className != b) { a.className = b } }; var searchResultsInFocus = false; function txtAjaxSearchBoxOnBlur() { if (searchResultsInFocus == false) { document.getElementById("divSearchPanel").style.display = "none" } }; function setInFocus() { searchResultsInFocus = true; var a = document.getElementById("ctl00_Search1_txtAjaxSearchBox"); a.focus() }; function setNoFocus() { searchResultsInFocus = false }; function clearSearchText(a) { if (a != null && a.value == "Enter SKU# or Keyword") { a.value = ""; a.focus() } }; function checkRemarks(e, a) { if (window.ActiveXObject) { if ((event.keyCode == 13)) { return false } } else { if (window.XMLHttpRequest) { if (e.keyCode == 13) { return } } } var b = location.href; b = b.toLowerCase(); return StartSearch() }; function StartSearch() { txtAjaxSearchBox = document.getElementById("ctl00_Search1_txtAjaxSearchBox"); document.getElementById("ctl00_Search1_txtSearchBox").value = txtAjaxSearchBox.value; if (txtAjaxSearchBox.value == "" || txtAjaxSearchBox.value.length < 3) { return } if (xhReq == null) { xhReq = createXMLHttpRequest() } var a = "/kids-toys/toys-ajaxsearch.aspx?FS=1&N=26&Ntk=Product+Search&Nty=1&Ntt=" + txtAjaxSearchBox.value; xhReq.open("GET", a, true); xhReq.onreadystatechange = onReadyStateSearchDone; xhReq.send(null); return false }; function getposOffset(a, b) { return (a.offsetParent) ? a[b] + this.getposOffset(a.offsetParent, b) : a[b] }; function onReadyStateSearchDone() { if (xhReq.readyState == 4) { var a = ""; var b = document.getElementById("lnkClickMore"); var c = document.getElementById("searchResults"); var d = document.getElementById("divSearchPanel"); var e = document.getElementById("ctl00_Search1_txtAjaxSearchBox"); d.style.display = "none"; if (xhReq.responseText == "" || xhReq.responseText == null || xhReq.responseText.length == 0) { c.innerHTML = "" } else { var f = xhReq.responseText.split("#pd#"); for (i = 0; i < f.length - 1; i++) { var g = f[i].split("#123#"); var h = g[0]; var j = g[1]; var k = g[2]; var l = g[3]; var m = "<a href='../kids-toys/toys-detail.aspx?Product_ID=" + k + "'>"; a += "<div class='divSearchEntry' onmousedown='return false'>"; var n = m + "<img src='" + h + "' style='height:60px; width:60px; border:0px;'/><a/>"; var o = "<table width='100%'><tr><td valign='top' align='left'><label style='font-size:10px; font-weight:bold'>" + m + l + "</a></label></td></tr></table>"; a += "<table width='100%'><tr><td width='64px'>" + n + "</td><td valign='top'>" + o + "</td></tr></table></div>" } if (f.length > 1) { d.style.left = getposOffset(e, "offsetLeft") + "px"; d.style.top = getposOffset(e, "offsetTop") + "px"; c.style.display = "block"; c.innerHTML = a; d.style.display = "block" } if (f.length > 6) { b.innerHTML = "click here for more results<img src='/images/ajaxnext.gif' />"; b.setAttribute("href", "/kids-toys/toys-list.aspx?FS=1&N=26&Ntk=Product+Search&Nty=1&Ntt=" + document.getElementById("ctl00_Search1_txtAjaxSearchBox").value) } else { b.innerHTML = ""; b.removeAttribute("href") } } } }; function numbersonly() { if ((event.keyCode == 8) || (event.keyCode == 189 || event.keyCode == 109) || (event.keyCode >= 48 && event.keyCode <= 57) || (event.keyCode >= 96 && event.keyCode <= 105)) { return true } else { return false } }; function urlencode(a) { a = a.replace(/\//g, "%2F"); a = a.replace(/\?/g, "%3F"); a = a.replace(/=/g, "%3D"); a = a.replace(/&/g, "%26"); return a }; function BookmarkMe(a, b, c) { var d = urlencode(document.location.toString()); var e = escape(c); var f = escape(b); switch (a) { case "google": OpenNew("http://www.google.com/bookmarks/mark?op=edit&bkmk=" + d + "&t=" + f, 775, 650, "face", 1); break; case "twitter": OpenNew("http://twitter.com/home?status=" + d + "&t=" + f, 775, 650, "face", 1); break; case "facebook": OpenNew("http://www.facebook.com/sharer.php?u=" + d + "&t=" + f, 775, 650, "face", 1); break; case "digg": OpenNew("http://digg.com/submit?phase=2&url=" + d + "&title=" + f, 775, 650, "digg", 1); break; case "delicious": OpenNew("http://del.icio.us/post?v=4&noui&jump=close&url=" + d + "&title=" + f + "&bodytext=" + e, 775, 650, "delic", 1); break; case "yahoo": OpenNew("http://bookmarks.yahoo.com/?page=" + d, 775, 650, "yahoo", 1); break } }; function continueshopping() { window.location.href = "default.aspx" }; function catalogshopping() { window.location.href = "default.aspx" }; function deleteallcart(a) { var b; b = "Are you sure you want to delete everything from your cart?"; if (confirm(b)) { window.location.href = a } }; function showZipEntry() { var a = document.getElementById("divEnterZip"); a.style.display = "block"; if (getCookie("Site_ID") == "2") { var b = document.getElementById("divDaycare"); b.style.display = "block" } }; function closeZipEntry() { var a = document.getElementById("divEnterZip"); a.style.display = "none"; var b = document.getElementById("divReqFldValidator"); b.style.display = "none"; var c = document.getElementById("divRegExpValidator"); c.style.display = "none" }; function estimateTax() { var a = document.getElementById("txtShipZip").value; var b = document.getElementById("divReqFldValidator"); b.style.display = "none"; var c = document.getElementById("divRegExpValidator"); c.style.display = "none"; if (isEmpty(a)) { b.style.display = "block"; return } if (!isValidZipCode(a)) { c.style.display = "block"; return } if (xhReq == null) { xhReq = createXMLHttpRequest() } var d = "toys-cart.aspx?zipcode=" + a; if (getCookie("Site_ID") == "2") { var e = document.getElementById("txtDaycareTaxId").value; if (e != "Tax Id#") { d += "&daycaretaxid=" + e } } xhReq.open("POST", d, true); xhReq.onreadystatechange = onReadyStateEstimateTax; document.getElementById("outerTable").style.cursor = "wait"; xhReq.send(null) }; var xhReq = null; function createXMLHttpRequest() { try { return new ActiveXObject("Msxml2.XMLHTTP") } catch (e) { } try { return new ActiveXObject("Microsoft.XMLHTTP") } catch (e) { } try { return new XMLHttpRequest() } catch (e) { } alert("XMLHttpRequest not supported"); return null }; function onReadyStateEstimateTax() { if (xhReq.readyState != 4) { return } if (xhReq.status != 200) { return } if (xhReq !== null && xhReq.status == 200) { document.getElementById("outerTable").style.cursor = "default"; document.location = document.location.href } }; function isEmpty(a) { return (a == null) || (a.length == 0) }; function isValidZipCode(a) { var b = /^((\d{5}-\d{4})|(\d{5})|([AaBbCcEeGgHhJjKkLlMmNnPpRrSsTtVvXxYy]\d[A-Za-z]\s?\d[A-Za-z]\d))$/; return (b.test(a)) }; function KeyDownHandler(a) { if (event.keyCode == 13) { event.returnValue = false; event.cancel = true; estimateTax() } }; function getCookie(a) { if (document.cookie.length > 0) { c_start = document.cookie.indexOf(a + "="); if (c_start != -1) { c_start = c_start + a.length + 1; c_end = document.cookie.indexOf(";", c_start); if (c_end == -1) { c_end = document.cookie.length } return unescape(document.cookie.substring(c_start, c_end)) } } return "" };

function ChangeProductImage(a) { document.getElementById("BigImage").src = a };
function fireElement(objID) {
    var target = document.getElementById(objID);
    if (document.dispatchEvent) {
        var oEvent = document.createEvent("MouseEvents");
        oEvent.initMouseEvent("click", true, true, window, 1, 1, 1, 1, 1, false, false, false, false, 0, target);
        target.dispatchEvent(oEvent);
    }
    else if (document.fireEvent) {
        target.fireEvent("onclick");
    }
}
function HasWhiteSpace(s) {

    reWhiteSpace = new RegExp(/^\s+$/);

    // Check for white space
    if (reWhiteSpace.test(s)) {
        return false;
    }
    return true;
}
