jQuery.fn.placeholder = function() 
{
    $('textarea').each(function()
    {
        var placeholder = $(this).attr("placeholder");
        if(($(this).attr("placeholder") !== undefined ))
        {
            $(this).html(placeholder);
            
            $(this).css({color:'#999', font: '14px Calibri'});
            
            $(this).bind('focus', function()
                {
                    if($(this).html()==placeholder)
                    {
                        $(this).html("");
                        $(this).css({color:'#000', font: '14px Calibri'});
                    }
                }
            );
            
            $(this).bind('blur', function()
                {
                    if($(this).html()=="")
                    {
                        $(this).html(placeholder);
                        $(this).css({color:'#000', font: '14px Calibri'});
                    }
                }
            );
        }
    }
    );
    
    var counter=0;
    
    $('input').each(function()
    {
        var id = $(this).attr("id");
        var placeholder = $(this).attr("placeholder");
        
        if(($(this).attr("type")=="text") && ($(this).attr("placeholder") !== undefined ))
        {
            $(this).val(placeholder);
            $(this).css({color:'#999', font: '14px Calibri'});
            $(this).bind('focus', function()
                {
                    if($(this).val()==placeholder)
                    {
                        $(this).val("");
                        $(this).css({color:'#000', font: '14px Calibri'});
                    }
                }
            );
            
            $(this).bind('blur', function()
                {
                    if($(this).val()=="")
                    {
                        $(this).val(placeholder);
                        $(this).css({color:'#000', font: '14px Calibri'});
                    }
                }
            );
        }
    }
    );
};
