function search_chkbForm(bForm) {
	var required = new Array();
	var reqcnt = 0;
	
	if(bForm.query.value == "" || bForm.query.value == lang.getLang(bForm.id+'_search')) {
		required[reqcnt++] = lang.getLang(bForm.id+'_enterkeywords');
	}
	
	return (dspRequired(required)) ? true : false;
}

var search_bForm = null;

window.addEvent('domready', function() {
	search_bForm = $('search_block');
	
	if(search_bForm != null) {
		if((txt_query = search_bForm.getElement('#query')) != null) {
			txt_query.addEvents({
				click: function () {
					if(this.value == lang.getLang(search_bForm.id+'_search')) this.value = '';
				},
				blur: function() {
					if(this.value == '') this.value = lang.getLang(search_bForm.id+'_search');
				}
			});
		}
		
		if((btn_go = search_bForm.getElement('#button_go')) != null) {
			btn_go.addEvents({
				click: function () {if(search_chkbForm(search_bForm)) {search_bForm.submit();}}
			});
		}
	}
});
