jQuery(function($) {
    $("#header input[name=q]").keypress(function(e) {
        if (e.keyCode == 13 && $.trim($(this).val())) {
            location.href = "/search.aspx?q=" + escape($(this).val());
            return false;
        }
    });
    $("#header").append('<a href="/" class="home">Virtua Home Page</a>');
    $("a.go-back").click(function() {
        history.go(-1);
        return false;
    });
    $("a.new-window").click(function() {
        window.open($(this).attr("href"));
        return false;
    });
});
