$(document).ready(function() {

    // Auto erase input values on click
    $("input[type!=textfield]").focus(function() {
        if ($(this).val() == $(this).attr('defaultValue'))
            $(this).val("");
    })

    // Restore default text if no text is entered
    .blur(function() {
        if ($(this).val() == "")
            $(this).val($(this).attr('defaultValue'));
    });

    $("a[rel*=external]").click(function(){
        window.open(this.href);
        return false;
    });
});
