function relocate(url) {
    window.location.href = url;
}

function getE(id) {
    return document.getElementById(id);
}

    function changeZip() {
        var thisUrl=document.location.href;
        $('#url').val(thisUrl);
        $('#zipCodeEnteredForm').submit();
        return false;
    }

    //function ID(id){return document.getElementById(id);}
    var shownId = null;
    function Hide(obj_) {
        var obj = obj_;
        if (Ext.isIE) {
            setTimeout(function() {
                if (shownId != obj) {
                    obj='#'+obj; $(obj).hide();
                }
            }, 1);
            shownId = null;
        } else {
            obj='#'+obj; $(obj).hide();
        }
    }
    function Show(obj) {
        if (Ext.isIE) {
            if (shownId == obj) return;
            shownId = obj;
        }
        obj='#'+obj;
        $(obj).show();
        if ($(obj)[0] != null) {
            var ul = $('#'+$(obj)[0].id+"_ul");
            if (ul != null) {
                $(obj)[0].style.width = ul.width();
                var lt = $("#left_top");
                if (ul.width() + (ul.offset().left - lt.offset().left) > 885) {
                    $(obj)[0].style.marginLeft = ($(obj).parent().width() - ul.width())+"px";
                }
            }
        }
    }

    var img =  new Image();
    img.src = "/images/website/mainMenuActiveMenuItem.jpg";


function test(arg) {
    var out="";
    for(var i in arg) {
        if(arg[i] == null || arg[i].toString == null || arg[i].toString() == null || arg[i].toString().indexOf("function") > -1) continue;
        out += i+":"+arg[i].toString()+"\n";
    }
    alert(out);
}

