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>250?showAndExit("短信内容最多允许250个字符！"):($("#divMsg").html("<img src='images/loading.gif' align='absmiddle' />　正在发送，请稍候 …").attr("class","center mtop_x"),$("#btnArea,#sendBox").hide(),hideAlert(),!0)}function setCount(){var n=$.trim($("#smsBody").val());$("#count").text(250-n.length)}$(function(){$("#nums").val()==""?$("#nums").focus():$("#smsBody").focus()})