На новую страницу ставим это:
Code
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<title>Mail.Ru Агент</title>
<link href="http://img.imgsmail.ru/ru/css/web_agent.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="http://js.imgsmail.ru/r/js/jsagent/mrim_utils.js" charset="windows-1251"></script>
<script language="JavaScript">
<!--
function CheckForm(form)
{
var i,j;
var str = '';
var bad_field;
var fields = new Array();
var prompts = new Array();
fields[fields.length] = 'Login';
prompts[prompts.length] = 'Логин';
fields[fields.length] = 'Password';
prompts[prompts.length] = 'Пароль';
for (i = 0; i < fields.length; i++){
var field = form[fields[i]];
var is_bad=0;
if(field.type == null)
{
is_bad=1;
for(j=0;j<field.length;++j)
{
if(field[j].checked==true)
is_bad=0;
}
if(is_bad==1 && str=='')
field=field[0];
}
else switch(field.type)
{
case 'select-one':
if(field[field.selectedIndex].value == '')
is_bad=1;
break;
default:
if (field.value == '') {
is_bad=1;
//if(uinfo.field[j].Choose.radio) is_bad=0;
}
}
if (is_bad == 1)
{
if (str != '')
{
str += '\n';
}else{
bad_field = field;
}
str += prompts[i];
}
}
if (str != ''){
alert("Не заполнены необходимые поля:\n" + str);
bad_field.focus();
return false;
}
if (window.RegExp){
var fields = new Array();
var prompts = new Array();
var patterns = new Array();
var minVal = new Array();
var maxVal = new Array();
var maxLen = new Array();
var minLen = new Array();
var errors = new Array();
fields[fields.length] = 'Login';
prompts[prompts.length] = 'Логин';
patterns[patterns.length] = '';
minVal[minVal.length] = 0;
maxVal[maxVal.length] = 0;
maxLen[maxLen.length] = 128;
minLen[minLen.length] = 1;
errors[errors.length] = 'Должен быть указан корректный логин.';
fields[fields.length] = 'Domain';
prompts[prompts.length] = 'Домен';
patterns[patterns.length] = '';
minVal[minVal.length] = 0;
maxVal[maxVal.length] = 0;
maxLen[maxLen.length] = 64;
minLen[minLen.length] = 0;
errors[errors.length] = 'Должен быть указан корректный домен.';
fields[fields.length] = 'Password';
prompts[prompts.length] = 'Пароль';
patterns[patterns.length] = '';
minVal[minVal.length] = 0;
maxVal[maxVal.length] = 0;
maxLen[maxLen.length] = 16;
minLen[minLen.length] = 0;
errors[errors.length] = 'Должен быть указан корректный пароль.';
fields[fields.length] = 'agent';
prompts[prompts.length] = 'agent';
patterns[patterns.length] = '';
minVal[minVal.length] = 0;
maxVal[maxVal.length] = 0;
maxLen[maxLen.length] = 256;
minLen[minLen.length] = 0;
errors[errors.length] = '';
for (i = 0; i < fields.length; i++){
var bad = false;
var field = form[fields[i]];
if (typeof field == 'undefined') continue;
if (field.value != ''){
if (field.value.length > maxLen[i] && maxLen[i] > 0) bad = true;
if (field.value.length < minLen[i] && minLen[i] > 0)
{
bad = true;
if(fields[i]=="Password")
errors[i]="Пароль должен быть не менее четырех символов.";
}
if (patterns[i] != ''){
var re = new RegExp(patterns[i]);
if (!re.test(field.value + "")) bad = true;
}
if ((minVal[i] > 0) || (maxVal[i] > 0)){
var val = parseInt(field.value,10);
if ((val < minVal[i]) || (val > maxVal[i])) bad = true;
}
if (bad){
alert("Неверно заполнено поле " + prompts[i] + "\n" + errors[i]);
field.focus();
return false;
}
}
}
}
return true;
}
// --></script>
</head>
<body marginwidth="0" marginheight="0" leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0">
<style>
body{background-color:#FEDBA6;padding:0px;margin:0px;font-weight:normal;font-family:arial,sans-serif;color:#333;}
</style>
<div id="logo">
<img src="http://img.imgsmail.ru/r/jsagent/logo.gif" width="146" height="15" alt="Веб-Агент@mail.ru">
</div>
<div><img src="http://img.imgsmail.ru/r/jsagent/0.gif" width="168" height="1"></div>
<table border="0" cellpadding="5" cellspacing="0" class="w100">
<form name="Compose" method="post" action="http://koi.mail.ru/cgi-bin/auth" onSubmit="return CheckForm(this);">
<input type="hidden" name="page" value="http://wmrim.mail.ru/win/contactlist.html">
<input type="hidden" name="FailPage" value="http://win.mail.ru/cgi-bin/loginagent">
<input type="hidden" name="post" value="">
<input type="hidden" name="login_from" value="">
<tr valign="middle">
<td>
<table border="0" cellpadding="1" cellspacing="0" class="w100 t70">
<tr valign="middle">
<td></td>
<td><a onclick="zoomMaximize(this.href);return false" href="http://win.mail.ru/cgi-bin/signup" target="_blank">Регистрация</a></td>
</tr>
<tr valign="middle">
<td width="0%">Email</td>
<td width="100%">
<table border="0" cellpadding="0" cellspacing="0" class="w100">
<tr valign="middle">
<td width="50%">
<input type="text" name="Login" value="" class="inp_phone">
</td>
<td width="50%">
<select name="Domain" class="inp_phone_2">
<option value="mail.ru" >@mail.ru</option><option value="inbox.ru" SELECTED>@inbox.ru</option><option value="bk.ru" >@bk.ru</option><option value="list.ru" >@list.ru</option>
</select>
</td>
</tr>
</table>
</td>
</tr>
<tr valign="middle">
<td width="0%">Пароль</td>
<td width="100%">
<table border="0" cellpadding="0" cellspacing="0" class="w100">
<tr valign="middle">
<td width="68%">
<input type="password" name="Password" class="inp_phone">
</td>
<td width="22%">
<a onclick="zoomMaximize(this.href);return false" href="http://www.mail.ru/pages/help/92.html" target="_blank">Забыли?</a>
</td>
</tr>
</table>
</td>
</tr>
<tr valign="middle">
<td></td>
<td><input name="level" value=1 type="checkbox" id="chekb1" > <label for="chekb1">Чужой компьютер</label></td>
</tr>
<tr valign="middle">
<td></td>
<td><input type=image src="http://img.imgsmail.ru/r/jsagent/vhod.gif" width="101" height="21" class="mt5"></td>
</tr>
<tr valign="middle">
<td></td>
<td>
<div class="mt15" style="display:none;">
<a href="#">Что такое веб-Агент?</a><br>
<a href="#">Зачем нужна авторизация?</a>
</div>
</td>
</tr>
</form>
</table>
</td>
</tr>
</table>
</body>
</html>