
function _loadExtendedInputs(){
    // Things common to every input, no need to iterate.
    $("input").bind("focus", function(){ 
            //CSS properties
            $(this).addClass("focus");

            //Default input value
            var emptyValue = $(this).attr("emptyValue");
            if(this.value == emptyValue){
                this.value = "";
            }
            $(this).removeClass("empty");
    });
    $("input").bind("blur", function(){ 
            //CSS properties
            $(this).removeClass("focus");

            //Default input value
            var emptyValue = $(this).attr("emptyValue");
            if(typeof emptyValue != "undefined" && this.value == ""){
                this.value = emptyValue;
                $(this).addClass("empty");
            }
    });
    
    // Things we have to check one input at a time since their values and/or properties matter
    $("input").each(
        function(intIndex){
            // Assign hints to inputs
            var hint = $("#"+$(this).attr("hintId"));
            if( typeof hint != "undefined" ){
                hint.append(' <span class="hintPointer">&nbsp;</span>');
                hint.css("display","none");
                $(this).bind(
                    "focus", function(){ hint.css("display","inline"); }
                );
                $(this).bind(
                    "blur", function(){ hint.css("display","none"); }
                );
            }

            //Set the default input value if empty.
            var emptyValue = $(this).attr("emptyValue");
            if(typeof emptyValue != "undefined" && (this.value == "" || this.value == emptyValue)){
                this.value = emptyValue;
                $(this).addClass("empty");
            }
            if($(this).hasClass("focus")){
                if(typeof emptyValue != "undefined" && this.value == emptyValue)
                    this.value = "";
                $(this).removeClass("empty");
            }
        }
    ); 

}
