function setBox(){var n=$f("nums"),t=n.scrollHeight;t>n.offsetHeight&&(t>64?$(n).height(64).css("overflow","auto"):$(n).height(t));setCount()}function sending(){if($("#nums").val().length<11)return showAndExit("请输入要发送到的电话号码！");var n=$.trim($("#smsBody").val());return n==""?showAndExit("请输入短信内容！"):n.length>500?showAndExit("短信内容最多允许500个字！"):($("#divMsg").attr("class","mtop_x center").html('<div class="loading"><div class="loadbar"><div><\/div><div><\/div><div><\/div><div><\/div><div><\/div><\/div><\/div>'),$("#btnArea,#sendBox").hide(),hideAlert(),!0)}function setCount(){var n=$.trim($("#smsBody").val());$("#count").text(500-n.length)}$(function(){$("#nums").val()==""?$("#nums").focus():$("#smsBody").focus()})