﻿(function(){
    if(!document.getElementById('subSearch'))return;
    var t = document.getElementById('subSearch').getElementsByTagName('input')[8];
    t.onfocus = function(){
        this.className='inpTextVal';
    }
    t.onblur = function(){
        if(this.value==''){this.className='inpText';}
        else{this.className='inpTextVal';}
    }
    t.check = function(){
        if(this.value!=''){this.className='inpTextVal';}
    }
    t.check();
})();
