function bindcallback(){
    $("#edfrm input[type=text]").each(function(){
        if ($(this).parents("#group-contacts").length) {
            $(this).val($(this).attr("title"));
        }
        $(this).blur();
    })
    .focus(function(){
        if (!$(this).val() || $(this).val() == $(this).attr("title")) {
            $(this).css({
                color:"#000"
            }).val('');
        }
    }).blur(function(){
        if (!$(this).val()) {
            $(this).addClass("error");
            if($(this).parents("#group-contacts").length) {
                $(this).css({
                    color:"#818181"
                }).val($(this).attr("title"));
            }
        } else {
            $(this).removeClass("error");
        }
//        var filled = new Array;
//        $("#webform_callback input[type=text]").each(function(){
//            if (!$(this).val() || $(this).val() == $(this).attr("title")) {
//                filled.push($(this).attr("name"));
//            }
//        });
//        $("#webform_callback button[type=submit]").attr("disabled",filled.length ? true : false);
    });
    $("#edfrm").submit(function(){
        var filled = new Array;
        $("#edfrm input[type=text]").each(function(){
            if (!$(this).val() || $(this).val() == $(this).attr("title")){
                $(this).addClass("error");
//                if ($(this).val() == $(this).attr("title")) {
//                    $(this).val('');
//               }
                filled.push($(this).attr("name"));
            }
        });
        return filled.length ? false : data2sugar($(this).serializeObject());

//        var url = $(this).attr("action");
//        $.ajax({
//            url: url,
//            success: function(msg){
//                alert(msg);
//            }
//        });
//        return false;
    });
}
