/**
 * @author cruise
 */


function left_CheckTextSearchBox() {
        
	var validator = new ValidateText();        
        var inputed_text = validator.checkTextAndPoint(document.left_quick_search.left_key_id.value, true);
        
        if (inputed_text == null) {
                window.alert("Special characters can't be used to search.");
        } else if (inputed_text == "") {
                window.alert("A search box is empty.");
        } else if (inputed_text.length < 3) {
                window.alert("Use word that is consist of tree character over.");
        } else {
                document.left_quick_search.submit();
        }
}


function left_CheckPressedKeyOnSearch() {

        if (window.event.keyCode == 13) {
                left_CheckTextSearchBox();
        }
}


