$(document).ready(function(){
    var i = $('.ghost_input');

    i.css({  'color' : '#cccccc' });
    i.each(function(){ this.value = this.getAttribute('title'); });

    i.focus(function(){ 
        if(this.value == this.getAttribute('title'))
        {
            $(this).css({  'color' : 'white'  });
            this.value = '';
        }
    });

    i.blur(function(){
        if(this.value == '')
        {
            $(this).css({ 'color' : '#cccccc'  });
            this.value = this.getAttribute('title');
        }
    });

})

function ghost_submit()
{
    var ret = true;

    $('.ghost_input').each(function(){
        if(this.value == this.getAttribute('title'))
            this.value = '';

        if(ghost_need[this.name] && (this.value == ''))
        {
            this.value = this.getAttribute('title');
            $(this).css({ 'color' : 'red'  });
            if(ret)
            {
                this.focus();
                ret = false;
            }
        }
    });

    return ret;
}

