function lcs(){
	if(document.getElementById('quality').value == -1) {       
		alert("对不起，‘口味/质量’选项不能为空！");
       return false;                                                                          
   }        
	if(document.getElementById('condition').value == -1) {       
		alert("对不起，‘环境’选项不能为空！");
       return false;                                                                          
   }    
	if(document.getElementById('service').value == -1) {       
		alert("对不起，‘服务’选项不能为空！");
       return false;                                                                          
   }     
 	if(document.getElementById('average').value.length == 0) {       
		alert("对不起，‘人均’内容不能为空！");
       return false;                                                                          
   }       
 	if(document.getElementById('txtComments').value.length < 15) {       
		alert("对不起，‘评论’内容不能少能少于15个字！");
       return false;                                                                          
   }     
	dishinput=(typeof($("dishinput"))=="undefined"?"":$("dishinput").value);
var opt = {
    method: 'post',
    postBody: 'quality='+$("quality").value+'&condition='+$("condition").value+'&service='+$("service").value+'&average='+$("average").value+'&txtComments='+$("txtComments").value+'&enjoy='+$("enjoy").value+'&dishinput='+dishinput+'&taginput='+$("taginput").value+'&park='+$("park").value+'&id='+$("id_q").value+'&kind='+$("kind_q").value,
    onSuccess: udc
}
new Ajax.Request('/shopcomm_save_do.php', opt);
}

function udc(req){
	 var ir=req.responseText;
	 if(ir=="-1"){loginDlg.show(); return;}
	t=document.createElement("div");
	oDivc=$("comments");
		oDivc.appendChild(t);
	t.innerHTML=ir+t.innerHTML;
	$("txtComments").value="";
	$('average').value="";
}
