function openPopup(url, w, h) {
    width = w;
    height = h;
    x = parseInt(screen.width / 2.0) - (width / 2.0);
    y = parseInt(screen.height / 2.0) - (height / 2.0);

    var win = window.open(url, "editorPopup", "top=" + y + ",left=" + x + ",scrollbars=no,dialog=yes,minimizable=no,modal=yes,width=" + width + ",height=" + height + ",resizable=no");
}

function deleteZoneContent(ZoneArea, PageID) {

    ret = henderson.DeleteContent.DeleteZone(ZoneArea, PageID, OnComplete, OnTimeOut, OnError);
    return (true);

}

function OnComplete(args) {
    alert(args);
}

function OnTimeOut(args) {
    alert("ERROR : Service call timed out. Possbily content area has no content.");

}

function OnError(args) {
    alert("Error calling service method.");
}

    function addVidLink() {
        if (window.location.href.match("http://www.vebra.com/phillipssmithdunn/property/20455836")) {

        // Get list object        
        var list = document.getElementById("s-dtbuttonlist");

        // Create list item instance
        var li = document.createElement("li");

        // Add HTML
        li.innerHTML = "<a href=\"http://www.phillipsland.com/virtual-tours\"><span style=\"color:Red;\">Exclusive</span> Video Tour</a>";

        // Add to ul
        list.appendChild(li);

    }

    if (document.location.href.indexOf("/property/search/results/") > 0) {
        $(".PropStatus").parent().parent().next().next().append('<img src="http://www.phillipsland.com/graphics/under_offer.gif" class="offer"/>');
    }else{
        $(".PropStatus").parent().parent().next().find("#s-dtimg").append('<img src="http://www.phillipsland.com/graphics/under_offer.gif" class="offer"/>');
    }

    $('ul#fade').innerfade({speed: 1000,timeout: 5000,type: 'sequence',containerheight: '267px'});
    //$('#letting').hide();
    $('link[type=text/css]').attr("href", "http://www.phillipsland.com/css/vebra.css");
    elem = $("#results");
    if (elem.hasClass("db2")) {
        $("#menu").children().each(function () {
            $("#menu").children("li").removeClass("on");
            $("#letting").addClass("on");
        });
        $("#rightCol h1").text("Lettings Search");
    } else {
        $("#rightCol h1").text("Sales Search");
        $("#letting").removeClass("on");
    }
}

1.
jQuery(document).ready(function () {
    jQuery('#qs-rentals').change(function () {
        jQuery('#qs-regions').hide();
    });
    jQuery('#qs-sales').change(function () {
        jQuery('#qs-regions').show();
    });
    $("label[for='qs-rentals']").text("Lettings");
}); 