/**
 * トップページ
 * 
 * @version 2011-06
 * @since 2011-06
 */
if (typeof(QLife) == 'undefined') {
    var QLife = {};
}

QLife.Index = {
    /**
     * 検索テキストボックスのvalue値リセット判定
     */
    textCleared : false,
    /**
     * テキストボックスを初期化
     *
     * @param string txtId テキストボックスid属性値
     */
    clearTextbox : function(txtId, defaultVal)
    {
        if (this.textCleared) {
            return;
        }
        var txt = $(txtId);
        if (txt != null && txt.val() == defaultVal) {
            txt.val('');
            txt.css('color', '#000');
            this.textCleared = true;
        }
    },

    textCleared2 : false,
    /**
     * テキストボックスを初期化
     *
     * @param string txtId テキストボックスid属性値
     */
    clearTextbox2 : function(txtId, defaultVal)
    {
        if (this.textCleared2) {
            return;
        }
        var txt = $(txtId);
        if (txt != null && txt.val() == defaultVal) {
            txt.val('');
            txt.css('color', '#000');
            this.textCleared2 = true;
        }
    }


};

