function check(){
if ($('#kw').val() == ""){
layer.open({
content: '请输入关键词'
,skin: 'msg'
,time: 2 //2秒后自动关闭
});
return false;
};
if (document.form1.kw.value.length<2){
layer.open({
content: '关键词不能少于2个字符'
,skin: 'msg'
,time: 2 //2秒后自动关闭
});
document.form1.kw.focus();
return (false);
};
};