$.fn.inputText = function(option)
{	
    /* option */
    option = jQuery.extend({
        color: 'white',
        inactiveClass: 'not'
    }, option);
    
    /* function */
    
    $(this).not('.'+option.inactiveClass).each(function(){
        $(this).addClass('input-change-text');
        var btntext = $(this).attr('value');
        if($(this).attr('id') == 'password' && !$.browser.msie){
            //$(this).attr('type', text); 
        }
        var defColor = $(this).css('color');
        var btntext = $(this).attr('value');
        $(this).focus(function(){ 
            text = $(this).attr('value');
            if( text == btntext ){
                $(this).attr('value', '');
                $(this).css('color', option.color);
                if($(this).attr('id') == 'password' && !$.browser.msie){
                    //$(this).attr('type', 'password'); 
                }
            }
        }).blur(function(){
            var text2 = $(this).attr('value'); 
            if( text2 == '' || text2 == undefined ){
                $(this).attr('value', btntext);
                $(this).css('color', defColor);
                if($(this).attr('id') == 'password' && !$.browser.msie){
                    //$(this).attr('type', 'text'); 
                }
            }
        });
        
        //.parents('form').css('background', 'red');
    });
    
  
    $(this).parents('form').each(function(){
        var el = $('.input-change-text', this).not('.'+option.inactiveClass);
        
        arrayId = new Array();
        for(i=0; i<$(el).size(); i++){
            arrayId[i]=$(el).eq(i).attr('id');
        }
        arrayDefValue = new Array();
        for(i=0; i<$(el).size(); i++){
            arrayDefValue[i]=$(el).eq(i).attr('value');
        }
        
        $(this).submit(function(){
            for(i=0; i<$(el).size(); i++){
                if($('input#'+arrayId[i]+'', this).attr('value') == arrayDefValue[i] ){
                    $('input#'+arrayId[i]+'', this).attr('value', '');
    		    }  
            }
        });	
	});
    
};
