/*
 * jfwPholder 
 * by jatt www.w3page.eu
 */
(function($) 
{
    $.fn.showPholder = function() {
        return  this.each( sph ) // initialize each control on page load
                    .blur( sph )
                    .focus( hph );

    };
    $.fn.hidePholder = function() {
        return  this.each( hph ) ;
    }
})(jQuery);

function hph() {
    var $elem = $(this);
    if ( $elem.val() === $elem.attr("title") ) {
        $elem.removeClass("phactive");
        $elem.val("");
    }
};
function sph() {
    var $elem = $(this);
    var pholderText = $elem.attr("title");
    if ( $elem.val() === "" || $elem.val() === pholderText ) {
        $elem.addClass("phactive");
        $elem.val(pholderText);
    }
};

//onload
$(document).ready(function(){
    $(".pholder").showPholder();
    $("form").submit( function() {
        $( ".pholder", this ).each( hph );
    });
});
