<!DOCTYPE html>
<html>
<head>
</head>
<body>
<div class="frm_place">
<div>
<p class="warn">Введите номер!</p>
<input type="text" name="login" id="login" value="" />
<p class="warn">Введите пароль!</p>
<input type="text" name="pas" id="pas" value="" />
</div>
<div id="subm_div2">
<input type="submit" onclick="CheckPassword()"/>
</div>
</div>
<script>
login="1"
pass="1"
var aLogin = document.getElementById("login");
var pasCode = document.getElementById("pas");
function CheckPassword(){
if(aLogin.value===login && pasCode.value===pass){
return window.location.href = "http://www.___.html";
}
else{
alert('Вы ввели неправильные данные!')
return false;
}
}
</script>
</body>
</html>