// JavaScript Document
	function wm_remove_space (wm_value) {
					wm_strlen_value = wm_value.length;
					for(i=0;i<wm_strlen_value;i++) {
						wm_value = wm_value.replace(" ", "");
					}
					wm_strlen_value = wm_value.length;
					wm_arr["value"] = wm_value;
					wm_arr["strlen"] = wm_strlen_value;
					
					return wm_arr;
	}
	
	function wm_search() {
		var theform = document.wm_form_search;
		wm_arr = Array();
		
		wm_arr = wm_remove_space(theform.searchbox.value)
		
		if ( 3 > wm_arr["strlen"] ) {
			alert("Phải có ít nhất 3 ký tự tìm kiếm");
			theform.searchbox.value = "";
			theform.searchbox.focus();
			return false;
		}
	}
