<!--c1--><div class='codetop'>Код</div><div class='codemain'><!--ec1--><TD BGCOLOR="#F1C42E" VALIGN="MIDDLE" WIDTH="471"><b>Отправка SMS:</b> простая форма</TD>
<TD><IMG SRC="/images/y_right.gif" WIDTH="20" HEIGHT="30" ALT=""></TD>
</TR>
<TR>
<TD COLSPAN="3" BACKGROUND="/images/h_point.gif"><IMG SRC="/images/blank.gif" WIDTH="511" HEIGHT="1" ALT=""></TD>
</TR>
<TR>
<TD><IMG SRC="/images/crn_top_left_b.gif" WIDTH="20" HEIGHT="18" ALT=""></TD>
<TD WIDTH="471" BACKGROUND="/images/point_top_b.gif"><IMG SRC="/images/blank.gif" WIDTH="1" HEIGHT="18" ALT=""></TD>
<TD><IMG SRC="/images/crn_top_right_b.gif" WIDTH="20" HEIGHT="18" ALT=""></TD>
</TR>
<TR>
<TD BACKGROUND="/images/point_left_b.gif"><IMG SRC="/images/blank.gif" WIDTH="20" HEIGHT="1" ALT=""></TD>
<TD WIDTH="471">
<DIV ID="main" STYLE="border: 0; padding: 0px 5px; margin: 0; width: 461px; background-color: #ffffff;">
<script language="JavaScript" type="text/javascript">
<!--
var MESSPREFIX = 4;
var WITHTRANSLIT = 160;
var WITHOUTTRANSLIT = 70;
var REPLYPREFIX = 14;
var maxLen = WITHTRANSLIT - MESSPREFIX;
var send_form = false;
function checkLength(obj) {
var messMaxLength = WITHTRANSLIT - MESSPREFIX;
if (obj.translit.checked)
messMaxLength = WITHOUTTRANSLIT - MESSPREFIX;
if ((obj.send_email.checked) || (obj.phone_answer.checked))
messMaxLength = messMaxLength - REPLYPREFIX;
var text=obj.message.value;
var length=messMaxLength+1;
var truncated=false;
while (length>messMaxLength) {
length=text.length;
if (!obj.translit.checked) {
var find=text.match(/[ёжчшюяЁЖЧШЮЯ]/g);
if (find!=null)
length+=find.length;
find=text.match(/[щЩ]/g);
if (find!=null)
length+=find.length*2;
}
if ( length > messMaxLength ) {
text = text.substr(0, text.length-1);
truncated = true;
}
}
if (truncated)
obj.message.value=text;
obj.mlength.value=messMaxLength-length;
return length < messMaxLength;
}
function onSend() {
document.forms.sendsms.send.value='send';
document.forms.sendsms.submit();
return false;
}
//-->
</script>
<FORM METHOD="post" action="http://www.beonline.ru/portal/comm/send_sms/simple_send_sms.sms" name="sendsms" id="sendsms">
<input type="hidden" name="deferto" value="">
<input type="hidden" name="adv_year" value="">
<input type="hidden" name="send" value="">
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
<TR>
<TD COLSPAN="4" CLASS="btext">Функции <b>Записная книжка</b> и <b>Получить
ответ на телефон</b> доступны для зарегистрированных пользователей.</TD>
</TR>
<TR>
<TD COLSPAN="4"> </TD>
</TR>
<TR>
<TD COLSPAN="4">
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD ALIGN="RIGHT" CLASS="btext">Для отправки сообщения введите код, указанный на картинке</TD>
<TD> <IMG SRC="/servlet/send/confirm_code/vYiC7OvmvK.gif" WIDTH="146" HEIGHT="46"> </TD>
<TD>
<INPUT TYPE="hidden" NAME="confirm_key" VALUE="vYiC7OvmvK" MAXLENGTH="4">
<INPUT STYLE="width: 55px;" SIZE="14" CLASS="btext" TYPE="text" NAME="confirm_code" VALUE="" MAXLENGTH="4"></TD>
<TD> </TD>
</TR>
</TABLE>
</TD>
</TR>
<TR>
<TD COLSPAN="4"> </TD>
</TR>
<TR>
<TD COLSPAN="4" BGCOLOR="#D0C8BA"><IMG SRC="/images/blank.gif" WIDTH="1" HEIGHT="5" ALT=""></TD>
</TR>
<TR BGCOLOR="#D0C8BA">
<TD> </TD>
<TD COLSPAN="3" CLASS="stext">Укажите <a href="http://www.beonline.ru/portal/comm/send_sms/description.sms?section=recipient"><u>номер телефона (последние 10 цифр)</u></a> или <a href="http://www.beonline.ru/portal/comm/send_sms/description.sms?section=recipient"><u>псевдоним</u></a> получателя или выберите запись из записной книжки</TD>
</TR>
<TR BGCOLOR="#D0C8BA">
<TD><IMG SRC="/images/blank.gif" WIDTH="30" HEIGHT="1" ALT=""></TD>
<TD>
<TABLE BORDER="0" CELLSPACING="2" CELLPADDING="1" WIDTH="100%">
<TR>
<TD>
<input type="radio" name="destination_number_from" class="formimage" disabled
value="address_book"
onClick="document.forms['sendsms'].address_book_phones.disabled=false;
document.forms['sendsms'].phone.disabled=true;
document.forms['sendsms'].nick_value.disabled=true;
document.forms['sendsms'].phone.value = '';
document.forms['sendsms'].nick_value.value = '';">
</TD>
<TD CLASS="stext" NOWRAP ALIGN="RIGHT"> Записная книжка: </TD>
</TR>
</TABLE>
</TD>
<TD><IMG SRC="/images/blank.gif" WIDTH="10" HEIGHT="1" ALT=""></TD>
<TD WIDTH="100%">
<SELECT NAME="address_book_phones" STYLE="width: 240px;" ROWS="10" CLASS="stext" DISABLED>
<OPTION VALUE=""></OPTION>
</SELECT>
</TD>
</TR>
<TR BGCOLOR="#D0C8BA">
<TD> </TD>
<TD colspan=2>
<TABLE BORDER="0" CELLSPACING="2" CELLPADDING="1" WIDTH="100%">
<TR>
<TD>
<INPUT TYPE="radio" NAME="destination_number_from" CLASS="formimage"
VALUE="ordinary" CHECKED
onClick="document.forms['sendsms'].address_book_phones.disabled=true;
document.forms['sendsms'].address_book_phones.value = '';
document.forms['sendsms'].nick_value.value = '';
document.forms['sendsms'].phone.disabled=false;
document.forms['sendsms'].nick_value.disabled=true;
document.forms['sendsms'].phone.focus();">
</TD>
<TD CLASS="stext" NOWRAP ALIGN="RIGHT"> Номер телефона (10 цифр): </TD>
</TR>
</TABLE>
</TD>
<TD WIDTH="100%">
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">
<TR>
<TD CLASS="btext" colspan=3>
<INPUT TYPE="text" NAME="phone" MAXLENGTH="10" SIZE="11" STYLE="width: 70px;" VALUE="">
</TD>
<TD><IMG SRC="/images/blank.gif" WIDTH="5" HEIGHT="1" ALT="" BORDER="0"></TD>
</TR>
</TABLE>
</TD>
</TR>
<TR BGCOLOR="#D0C8BA">
<TD> </TD>
<TD>
<TABLE BORDER="0" CELLSPACING="2" CELLPADDING="1" WIDTH="100%">
<TR>
<TD>
<input type="radio" name="destination_number_from" class="formimage"
value="nick_name"
onClick="document.forms['sendsms'].address_book_phones.disabled=true;
document.forms['sendsms'].address_book_phones.value='';
document.forms['sendsms'].phone.disabled=true;
document.forms['sendsms'].phone.value='';
document.forms['sendsms'].nick_value.disabled=false;
document.forms['sendsms'].nick_value.focus();">
</TD>
<TD CLASS="stext" NOWRAP ALIGN="RIGHT"> Псевдоним получателя: </TD>
</TR>
</TABLE>
</TD>
<TD> </TD>
<TD WIDTH="100%">
<INPUT TYPE="text" NAME="nick_value" STYLE="width: 239px;" SIZE="20" VALUE=""
DISABLED>
</TD>
</TR>
<TR>
<TD COLSPAN="4" BGCOLOR="#D0C8BA"><IMG SRC="/images/blank.gif" WIDTH="1" HEIGHT="3" ALT=""></TD>
</TR>
<TR>
<TD COLSPAN="4"><IMG SRC="/images/blank.gif" WIDTH="1" HEIGHT="5" ALT=""></TD>
</TR>
<TR>
<TD> </TD>
<TD CLASS="stext" COLSPAN="3">
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">
<TR>
<TD>
<INPUT TYPE="checkbox" NAME="translit"
VALUE="1"
onClick="checkLength(document.forms['sendsms']);" CLASS="formimage">
</TD>
<TD CLASS="stext" NOWRAP> Отключить автоматическую транслитерацию сообщения</TD>
</TR>
</TABLE>
</TD>
</TR>
<TR>
<TD COLSPAN="4"><IMG SRC="/images/blank.gif" WIDTH="1" HEIGHT="5" ALT=""></TD>
</TR>
<TR>
<TD> </TD>
<TD ALIGN="RIGHT" CLASS="stext" VALIGN="TOP">Сообщение: </TD>
<TD> </TD>
<TD WIDTH="100%">
<TEXTAREA STYLE="width: 240px;" CLASS="stext"
NAME="message" COLS="20" ROWS="5" WRAP="soft"
onkeyup="return checkLength(document.forms['sendsms']);"
onkeypress="return this.onkeyup();"
onChange="this.onkeyup();"
onFocus="this.onkeyup();"
onBlur="this.onkeyup();"
onSelect="this.onkeyup();"
onMouseOut="this.onkeyup();"
onMouseMove="this.onkeyup();"></TEXTAREA>
</TD>
</TR>
<TR>
<TD COLSPAN="4"><IMG SRC="/images/blank.gif" WIDTH="1" HEIGHT="3" ALT=""></TD>
</TR>
<TR>
<TD> </TD>
<TD ALIGN="RIGHT" CLASS="stext">Осталось: </TD>
<TD> </TD>
<TD WIDTH="100%">
<TABLE CELLSPACING="1" CELLPADDING="0" BORDER="0">
<TR>
<TD CLASS="btext">
<INPUT STYLE="width: 40px;" TYPE="text" NAME="mlength" readonly MAXLENGTH="3" SIZE="3" VALUE="156">
</TD>
<TD CLASS="stext"> символов </TD>
</TR>
</TABLE>
</TD>
</TR>
<TR>
<TD> </TD>
<TD CLASS="stext" COLSPAN="3">
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">
<TR>
<TD>
<INPUT TYPE="checkbox" NAME="status"
VALUE="on" CLASS="formimage" >
</TD>
<TD CLASS="stext" NOWRAP> Отслеживать статус сообщения</TD>
</TR>
</TABLE>
</TD>
</TR>
<TR>
<TD COLSPAN="4" BGCOLOR="#D0C8BA">
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="5" CELLPADDING="0">
<TR>
<TD><IMG SRC="/images/blank.gif" WIDTH="20" HEIGHT="1" ALT=""></TD>
<TD>
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">
<TR>
<TD>
<INPUT TYPE="checkbox" NAME="send_email"
VALUE="1"
onClick="document.forms['sendsms'].reply_addr.disabled = !this.checked;
if (!this.checked) {
document.forms['sendsms'].reply_addr.value = '';
} else {
document.forms['sendsms'].phone_answer.checked=false;
document.forms['sendsms'].phone_answer_number.value='';
document.forms['sendsms'].reply_addr.focus();
}; checkLength(document.forms['sendsms']);
" CLASS="formimage">
</TD>
<TD CLASS="stext" NOWRAP> Получить ответ на <a href="http://www.beonline.ru/portal/comm/send_sms/description.sms?section=email"><U><B>e-mail</B></U></A></TD>
</TR>
</TABLE>
</TD>
<TD WIDTH="100%"> </TD>
<TD>
<INPUT SIZE="14" STYLE="width: 150px;" TYPE="text" NAME="reply_addr" VALUE="" disabled>
</TD>
<TD> </TD>
</TR>
<TR>
<TD> </TD>
<TD>
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">
<TR>
<TD>
<INPUT TYPE="checkbox" NAME="phone_answer" VALUE="1"
disabled
onClick="if (!this.checked) {
document.forms['sendsms'].phone_answer_number.value = '';
} else {
document.forms['sendsms'].phone_answer_number.value = null;
document.forms['sendsms'].send_email.checked=false;
document.forms['sendsms'].reply_addr.disabled=true;
document.forms['sendsms'].reply_addr.value = '';
}; checkLength(document.forms['sendsms']);
" CLASS="formimage">
</TD>
<TD CLASS="stext" NOWRAP> Получить ответ на Ваш <a href="http://www.beonline.ru/portal/comm/send_sms/description.sms?section=response"><U><B>телефон</B></U></A></TD>
</TR>
</TABLE>
</TD>
<TD> </TD>
<TD>
<INPUT STYLE="width: 150px;" SIZE="14" CLASS="btext" readonly TYPE="text" NAME="phone_answer_number" VALUE="">
</TD>
<TD> </TD>
</TR>
</TABLE>
</TD>
</TR>
<TR>
<TD COLSPAN="4"> </TD>
</TR>
<TR>
<TD> </TD>
<TD>
</TD>
<TD> </TD>
<TD ALIGN="RIGHT"><a href="javascript:;" onclick="return onSend();"><IMG SRC="/images/btn/btn_send.gif" BORDER="0" WIDTH="80" HEIGHT="20" CLASS="formimage" ALT="отправить"></a>
</TD>
</TR>
<TR><TD COLSPAN="4"> </TD></TR>
<TR>
<TD COLSPAN="4" CLASS="btext">Вы можете управлять приемом сообщений с сайта. Для этого можно использовать специальную опцию в
<a href="http://www.beonline.ru/portal/mybol/settings"><u>персональных настройках</u></a>
в разделе Мой БиОнЛайн или воспользоваться следующими номерами (бесплатно):<ul style="margin-left:30">
<li><b>0684002</b> разрешить прием сообщений с сайта от всех пользователей
<li><b>0684003</b> запретить прием сообщений с сайта от всех пользователей
<li><b>0684004</b> разрешить прием сообщений с сайта только от зарегистрированных пользователей
</ul>
</TD>
</TR>
</TABLE>
</FORM>
<BR>
</DIV>
</TD>
<TD ALIGN="RIGHT" VALIGN="TOP" BACKGROUND="/images/point_right_b.gif" WIDTH="20"><IMG SRC="/images/blank.gif" WIDTH="20" HEIGHT="1" ALT=""></TD>
</TR><!--c2--></div><!--ec2-->
Вот скрипт с Belline.ru, можете работает, я не пробовал.