HTTP/1.1 400 Bad Request
Set-Cookie: sessid=UFgBfIzlRnOM3x8tkxnNrA##;path= /
pragma: no-cache
Cache-Control: no-store, no-cache, max-age=0
expires: Thu,01 Jan 1970 00:00:00 GMT
Accept-Ranges: bytes
Connection: close
<HTML>
<HEAD>
<TITLE> 400 Bad Request </TITLE>
</HEAD>
<BODY>
<H1> Bad Request </H1>
<HR>
</BODY>
</HTML>
Используется следующий скрипт и запускается в командной строке php curl.php. Пытаюсь установить 40 копий.
<?php
Submit('i0017=2&i0019=1&submitButton=Вход в систему', 'http://192.168.1.102', 'http://192.168.1.102/checkLogin.cgi', 1);
Submit('i0014=40&submitButton=OK', 'http://192.168.1.102/f_copy_edit.html', 'http://192.168.1.102/cgi/f_copy_edit.cgi', 2);
function Submit($PostFields, $Referer, $URL, $cookie)
{
if( $curl = curl_init() )
{
if ($cookie==1) curl_setopt($curl, CURLOPT_COOKIEJAR, '/srv/www/htdocs/php/test/sessid');
if ($cookie==2) curl_setopt($curl, CURLOPT_COOKIEFILE, '/srv/www/htdocs/php/test/sessid');
curl_setopt($curl, CURLOPT_POSTFIELDS, $PostFields);
curl_setopt($curl, CURLOPT_USERAGENT,'Mozilla 4.0 (compatible; MSIE 6.0; Win32');
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($curl, CURLOPT_URL, $URL);
curl_setopt($curl, CURLOPT_HEADER, true);
curl_setopt($curl, CURLOPT_REFERER, $Referer);
curl_setopt($curl, CURLOPT_RETURNTRANSFER,true);
curl_setopt($curl, CURLOPT_POST, true);
$out = curl_exec($curl);
echo $out;
curl_close($curl);
}
}
?>
Исходный код главной страницы, с которой работает вход в систему.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="content-script-type" content="text/javascript" />
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache,no-store,max-age=0" />
<meta http-equiv="expires" content="Thu, 01 Jan 1970 00:00:00 GMT" />
<link rel="shortcut icon" type="image/x-icon" href="/media/favicon.ico" />
<link rel="icon" type="image/x-icon" href="/media/favicon.ico" />
<link rel="stylesheet" type="text/css" media="all" href="/css/common.css" />
<link rel="stylesheet" type="text/css" media="all" href="/css/login.css" />
<link rel="stylesheet" type="text/css" media="all" href="/css/ot.css" />
<script type="text/javascript" src="/js/rui.js"></script>
<script language="javascript">
<!--
function unloadFunc(e){}
registEvent(window,"unload",unloadFunc);
// -->
</script>
<script language="javascript">
<!--
function validate(e){
buttonDisabled();
document.forms[0].submit();
return true;
}
function changeMode(obj){
if(obj.name=="i0012" || obj.name=="i0016" || obj.name=="i0014"){
document.forms[0].i0012A.checked=true;
document.forms[0].i0017A.checked=false;
}
else{
document.forms[0].i0012A.checked=false;
document.forms[0].i0017A.checked=true;
}
}
function initControls(e){
var errCd = getQueryValue("err", "");
if(errCd == "1"){
alert("Неправильные сведения для аутентификации.\nВведите заново.");
document.location="/";
}
registEvent($I("submitButton"),"click",validate);
}
registEvent(window,"load",initControls);
// -->
</script>
<title>Удаленный ИП: Вход в системуimageRUNNER1133 series:imageRUNNER1133 series</title>
</head>
<body>
<div id="container">
<div id="loginWindow">
<div id="loginHeader">
<div id="corporateBranding">
<img src="/media/canonlogo.gif" alt="" title="" />
</div>
<div id="windowTitle">
<h1>Вход в систему</h1>
<p id="deviceType">
<span id="deviceName">imageRUNNER1133 series / imageRUNNER1133 series / </span>
</p>
</div>
<hr />
</div>
<form name="loginFrm" action="/checkLogin.cgi" autocomplete="off" method="post" onsubmit="return false;">
<input type="hidden" name="iToken" id="iToken" value="" />
<div id="login_contentsArea">
<div id="loginContentsWrapper">
<div id="loginContents">
<div class="LoginModule">
<table class="PropertyListComponent">
<tbody>
<tr>
<th colspan="2"><input type="radio" name="i0012" id="i0012A" value="1" onclick="changeMode(this)" /><label for="i0012A">Режим управления</label><br />
</th>
</tr>
<tr class="Sub">
<th>ИД администратора системы:</th>
<td><input type="text" name="i0014" id="i0014" class="Size_shortest" value="" maxlength="7" onfocus="changeMode(this)" autocomplete="off" />
</td>
</tr>
<tr class="Sub">
<th>PIN администратора системы:</th>
<td><input type="password" name="i0016" id="i0016" class="Size_shortest" value="" maxlength="7" onfocus="changeMode(this)" autocomplete="off" />
</td>
</tr>
<tr>
<th colspan="2"><input type="radio" name="i0017" id="i0017A" value="2" checked='checked' onclick="changeMode(this)" /><label for="i0017A">Режим пользователя</label><br />
</th>
</tr>
<tr class="Sub">
<th>Имя пользователя:</th>
<td><input type="text" name="i0019" id="i0019" class="Size_shortest" value="" maxlength="32" onfocus="changeMode(this)" autocomplete="off" />
</td>
</tr>
<!--
<tr>
<th></th>
<td></td>
</tr>
<tr>
<th></th>
<td></td>
</tr>
-->
</tbody>
</table>
</div>
<div class="LoginOperation">
<fieldset>
<input type="submit" id="submitButton" class="ButtonEnable" value="Вход в систему" />
</fieldset>
</div>
</div>
</div>
</div>
</form>
<hr />
<div id="applicationInfo">
<address class="SiteInforLegal">Copyright CANON INC. 2011 All Rights Reserved</address>
</div>
</div>
</div>
</body>
</html>
Она запускает файл checkLogin.cgi, который перенаправляет на страницу portal_top.html
Со страницы f_copy_edit.html не работает переход через CURL на страницу f_copy.html с помощью файла f_copy_edit.cgi Осторожно, длинный код.
Исходный код в браузере страницы f_copy_edit.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="content-script-type" content="text/javascript" />
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache,no-store,max-age=0" />
<meta http-equiv="expires" content="Thu, 01 Jan 1970 00:00:00 GMT" />
<link rel="shortcut icon" type="image/x-icon" href="/media/favicon.ico" />
<link rel="icon" type="image/x-icon" href="/media/favicon.ico" />
<link rel="stylesheet" type="text/css" media="all" href="/css/common.css" />
<link rel="stylesheet" type="text/css" media="all" href="/css/system_default.css" />
<link rel="stylesheet" type="text/css" media="all" href="/css/ot.css" />
<script type="text/javascript" src="/js/layoutFix_ie6.js"></script>
<script type="text/javascript" src="/js/rui.js"></script>
<script language="javascript">
<!--
function unloadFunc(e){}
registEvent(window,"unload",unloadFunc);
// -->
</script>
<script language="javascript">
<!--
function setControl001(){
setControls(true, "i0020B", "i0029", "i0031", "i0033", "i0035");
}
function setControl002(){
if(document.forms[0].i0024A){
setControls(false, "i0024A", "i0025");
if(document.forms[0].i0024A.checked == true){
document.forms[0].i0047.value = 1;
setControl004();
}
}
}
function setControl003(){
setControls(true, "i0024B", "i0025");
}
function setControl004(){
setControls(16, "i0047", "i0050A", "i0050B", "i0050C", "i0050D", "i0050E", "i0050F", "i0050G", "i0050H", "i0050I");
if(document.forms[0].i0050A.disabled == true){
setControls(18, "i0047", "i0050A", "i0050B", "i0050C", "i0050D", "i0050E", "i0050F", "i0050G", "i0050H", "i0050I");
}
if(document.forms[0].i0024B){
if(document.forms[0].i0047.value != 1){
document.forms[0].i0024B.checked = true;
setControl003();
}
}
}
function setControl009(){
setControls(0, "i0062", "i0063");
if(document.forms[0].i0053){
if(($IV("i0062",0) == 6) || (($IV("i0062",0)==0)&&($IV("i0063",25)==100))){
if(document.forms[0].i0053.value == 0){
setSelectMagnification();
} else {
setSelectDuplex(document.forms[0]);
}
} else {
setSelectMagnification();
}
} else {
setSelectMagnification();
}
}
function setControl010(){
setControls(3, "i0069", "i0071");
if(document.forms[0].i0071.disabled == true) {
setControls(4, "i0069", "i0071");
}
setControls(3, "i0069", "i0002A", "i0002B");
if(document.forms[0].i0002A.disabled == false){
document.forms[0].i0002A.checked = true;
}
setControls(4, "i0069", "i0002C", "i0002D", "i0002E", "i0002F");
if(document.forms[0].i0002C.disabled == false){
document.forms[0].i0002C.checked = true;
}
setControls(2, "i0069", "i0078", "i0053", "i0055A", "i0055B", "i0057A", "i0057B", "i0059A", "i0059B", "i0062", "i0063");
if(document.forms[0].i0062.disabled == true) {
setControls(3, "i0069", "i0053", "i0055A", "i0055B", "i0057A", "i0057B", "i0059A", "i0059B", "i0062", "i0063");
if(document.forms[0].i0062.disabled == true) {
setControls(4, "i0069", "i0053", "i0055A", "i0055B", "i0057A", "i0057B", "i0059A", "i0059B", "i0062", "i0063");
}
}
if(document.forms[0].i0053) {
if(document.forms[0].i0053.disabled == false) {
setControl007();
}
}
if(document.forms[0].i0062) {
if(document.forms[0].i0062.disabled == false) {
setControl009();
}
}
if((document.forms[0].i0069.value == 3) || (document.forms[0].i0069.value == 4)) {
setMagnification(document.forms[0]);
}
}
function setControl011(){
setControls(3, "i0069", "i0071");
if(document.forms[0].i0071.disabled == true) {
setControls(4, "i0069", "i0071");
}
setControls(3, "i0069", "i0002A", "i0002B");
setControls(4, "i0069", "i0002C", "i0002D", "i0002E", "i0002F");
setControls(2, "i0069", "i0078", "i0053", "i0055A", "i0055B", "i0057A", "i0057B", "i0059A", "i0059B", "i0062", "i0063");
if(document.forms[0].i0062.disabled == true) {
setControls(3, "i0069", "i0053", "i0055A", "i0055B", "i0057A", "i0057B", "i0059A", "i0059B", "i0062", "i0063");
if(document.forms[0].i0062.disabled == true) {
setControls(4, "i0069", "i0053", "i0055A", "i0055B", "i0057A", "i0057B", "i0059A", "i0059B", "i0062", "i0063");
}
}
if(document.forms[0].i0053) {
if(document.forms[0].i0053.disabled == false) {
setControl007();
}
}
if(document.forms[0].i0062) {
if(document.forms[0].i0062.disabled == false) {
setControl009();
}
}
}
function setControl015(){
setControls(1, "i0078", "i0069");
setControls(3, "i0078", "i0081", "i0086", "i0091", "i0096");
}
function setControl007(){
if(document.forms[0].i0053) {
setControls(2, "i0053", "i0055A", "i0055B", "i0057A", "i0057B", "i0059A", "i0059B");
check = new Number(document.forms[0].i0053.value);
if(check == 1) {
setControls(1, "i0053", "i0055A", "i0055B", "i0059A", "i0059B");
}
else if(check == 3) {
setControls(3, "i0053", "i0055A", "i0055B", "i0057A", "i0057B");
}
if(document.forms[0].i0055A){
if(document.forms[0].i0055A.disabled == false){
if((document.forms[0].i0055A.checked == false) && (document.forms[0].i0055B.checked == false)){
document.forms[0].i0055A.checked = true;
}
}
}
if(document.forms[0].i0057A){
if(document.forms[0].i0057A.disabled == false){
if((document.forms[0].i0057A.checked == false) && (document.forms[0].i0057B.checked == false)){
document.forms[0].i0057A.checked = true;
}
}
}
if(document.forms[0].i0059A){
if(document.forms[0].i0059A.disabled == false){
if((document.forms[0].i0059A.checked == false) && (document.forms[0].i0059B.checked == false)){
document.forms[0].i0059A.checked = true;
}
}
}
if(document.forms[0].i0053.value == 0){
if(document.forms[0].i0062.value == 6){
setSelectDuplex(document.forms[0]);
} else {
setSelectMagnification();
}
} else {
setSelectDuplex(document.forms[0]);
}
}
}
function validate(e) {
var frm=document.forms[0];
var result=true;
var customResult=true;
var errs=[];
var errsIP=[];
var checkparam=[
[1,1,"1","99",frm.i0014,"Кол-во копий:","i6001"],
[1,1,"25","400",frm.i0063,"Коэффициент масшт.:","i6002"],
[1,1,"1","50",frm.i0081,"Указать ширину рамки:","i6003"]
];
var customErrSetParam=[
[0,"Указать ширину рамки:","i6003"]
];
var errorMsg=["Правильно введите следующие позиции:","Правильно введите следующий IP-адрес:"];
if(frm!=null) {
customResult = setInchValidate(frm);
setCustomErrMsg(customResult, customErrSetParam[0], errs, errsIP);
result = comValidate(frm, checkparam, errs, errsIP, errorMsg);
}
if(result==true){
buttonDisabled();
document.forms[0].submit();
}
return result;
}
function setInchValidate(frm) {
if((frm.i0086)&&(frm.i0096)){
if((frm.i0086.disabled==false)&&(frm.i0096.disabled==false)){
if((frm.i0086.value==0)&&(frm.i0096.value==0)){
return false;
}
}
}
return true;
}
function setViewFine(){
setViewFineValue(document.forms[0].i0029.value, document.forms[0].i0031);
setViewFineValue(document.forms[0].i0029.value, document.forms[0].i0033);
setViewFineValue(document.forms[0].i0029.value, document.forms[0].i0035);
}
function setViewFineValue(value, obj){
param = new Number(value);
for(count = 0; count < obj.options.length; count++) {
check = new Number(obj.options[count].value);
if(param == (check - 6)) {
obj.options[count].selected = true;
break;
}
}
}
function changeDensityAdjust(valColor) {
var count;
for(count = 0; count < document.forms[0].i0029.options.length; count++){
var val=document.forms[0].i0029.options[count].value;
if(val == (valColor - 6)){
document.forms[0].i0029.options[count].selected = true;
}
}
}
function setDensityAdjust() {
var valR=document.forms[0].i0031.value;
var valG=document.forms[0].i0033.value;
var valB=document.forms[0].i0035.value;
if((valR==valG) && (valG==valB)){
changeDensityAdjust(valR);
}
}
function setSelectDuplex(frm){
tray0_0 = [
["Выкл.","2"],
["2 на 1","3"],
["4 на 1","4"],
["Копирование ИД-карточки","255"]];
tray0_1 = [
["Выкл.","2"],
["2 на 1","3"],
["4 на 1","4"]];
tray0_2 = [
["Выкл.","2"],
["2 на 1","3"],
["4 на 1","4"]];
tray0_3 = [
["Выкл.","2"],
["2 на 1","3"],
["4 на 1","4"]];
tray0 = [
["0",tray0_0],
["1",tray0_1],
["2",tray0_2],
["3",tray0_3]];
comSelSelect(tray0, frm.i0053, frm.i0069);
}
function setSelectMagnification(){
if(($IV("i0062",0)==0)&&($IV("i0063",25)==100)) {
tray2_0 = [
["Выкл.","2"],
["2 на 1","3"],
["4 на 1","4"],
["Копирование ИД-карточки","255"]];
tray2 = [
["0",tray2_0]];
comSelSelect(tray2, $I("i0062"), $I("i0069"));
}else{
tray1_0 = [
["Выкл.","2"],
["2 на 1","3"],
["4 на 1","4"]];
tray1_21 = [
["Выкл.","2"],
["2 на 1","3"],
["4 на 1","4"]];
tray1_11 = [
["Выкл.","2"],
["2 на 1","3"],
["4 на 1","4"]];
tray1_9 = [
["Выкл.","2"],
["2 на 1","3"],
["4 на 1","4"]];
tray1_20 = [
["Выкл.","2"],
["2 на 1","3"],
["4 на 1","4"]];
tray1_8 = [
["Выкл.","2"],
["2 на 1","3"],
["4 на 1","4"]];
tray1_7 = [
["Выкл.","2"],
["2 на 1","3"],
["4 на 1","4"]];
tray1_6 = [
["Выкл.","2"],
["2 на 1","3"],
["4 на 1","4"],
["Копирование ИД-карточки","255"]];
tray1_5 = [
["Выкл.","2"],
["2 на 1","3"],
["4 на 1","4"]];
tray1_4 = [
["Выкл.","2"],
["2 на 1","3"],
["4 на 1","4"]];
tray1_18 = [
["Выкл.","2"],
["2 на 1","3"],
["4 на 1","4"]];
tray1_3 = [
["Выкл.","2"],
["2 на 1","3"],
["4 на 1","4"]];
tray1_16 = [
["Выкл.","2"],
["2 на 1","3"],
["4 на 1","4"]];
tray1_1 = [
["Выкл.","2"],
["2 на 1","3"],
["4 на 1","4"]];
tray1_15 = [
["Выкл.","2"],
["2 на 1","3"],
["4 на 1","4"]];
tray1 = [
["0",tray1_0],
["21",tray1_21],
["11",tray1_11],
["9",tray1_9],
["20",tray1_20],
["8",tray1_8],
["7",tray1_7],
["6",tray1_6],
["5",tray1_5],
["4",tray1_4],
["18",tray1_18],
["3",tray1_3],
["16",tray1_16],
["1",tray1_1],
["15",tray1_15]];
comSelSelect(tray1, $I("i0062"), $I("i0069"));
}
}
function setMagnification(frm){
var trayList = [
[7,2100,2970],
[101,2100,2970]];
var readList = [
[2,2100,2970],
[3,1480,2100],
[7,1820,2570],
[14,1000,1480],
[13,2159,2794],
[12,2159,3556],
[60,1397,2159]];
var trayListCnt = trayList.length;
var readListCnt = readList.length;
var tray = 0;
var read = frm.i0071.value;
var numberUp = Number(frm.i0069.value);
var mag = 0;
var magX = 0;
var magY = 0;
var trayX = 0;
var trayY = 0;
var readX = 0;
var readY = 0;
var count;
if((numberUp != 3) && (numberUp != 4)) {
return;
}
if(frm.i2000A.checked) {
tray = frm.i2000A.value;
} else if(frm.i2000B.checked) {
tray = frm.i2000B.value;
} else if(frm.i2000C.checked) {
tray = frm.i2000C.value;
} else {
tray = 0;
}
for(i = 0; i < trayListCnt; i++) {
if(tray == trayList[i][0]) {
trayX = trayList[i][1];
trayY = trayList[i][2];
}
}
for(i = 0; i < readListCnt; i++) {
if(read == readList[i][0]) {
readX = readList[i][1];
readY = readList[i][2];
}
}
if((readX != 0) && (readY != 0)) {
switch(numberUp){
case 3:
if(trayX > trayY){
magX = (trayX * 100) / (readX * 2);
magY = (trayY * 100) / readY;
}else{
magX = (trayY * 100) / (readX * 2);
magY = (trayX * 100) / readY;
}
break;
case 4:
if(((trayX > trayY) && (readX > readY)) || ((trayX < trayY) && (readX < readY))) {
magX = (trayX * 100) / (readX * 2);
magY = (trayY * 100) / (readY * 2);
}else{
magX = (trayY * 100) / (readX * 2);
magY = (trayX * 100) / (readY * 2);
}
break;
default:
break;
}
}
mag = Math.min(magX, magY);
mag = Math.floor(mag);
if(mag < 25){
mag = 25;
}
if(mag > 400){
mag = 400;
}
for(count = 0; count < frm.i0062.options.length; count++){
var val=frm.i0062.options[count].value;
if(val == 0){
frm.i0062.options[count].selected = true;
setControl009();
frm.i0063.value = mag;
break;
}
}
setSelectMagnification();
}
function addEvent() {
var obj = document.getElementById("i0063");
if(obj){
if(obj.attachEvent){
obj.attachEvent("onchange",setControl009);
}else if(obj.addEventListener){
obj.addEventListener("change",setControl009,false);
}
}
}
function initControls(e){
setControl001();
setControl002();
setControl003();
setControl004();
setControl009();
setControl011();
setControl015();
setControl007();
addEvent();
registEvent($I("submitButton"),"click",validate);
}
registEvent(window,"load",initControls);
// -->
</script>
<title>Удаленный ИПИзменить настройки копирования:imageRUNNER1133 series:imageRUNNER1133 series</title>
</head>
<body>
<div id="container">
<div id="ruiCommons">
<div class="Wrapper">
<div id="commonBranding">
<h1 id="deviceLogo">
<a href="/portal_top.html"><span>imageRUNNER</span></a>
</h1>
<p id="deviceType">
<span id="deviceName">imageRUNNER1133 series / imageRUNNER1133 series / </span>
</p>
</div>
<div id="commonTools">
<fieldset id="moveTools">
<p>
<a href="/portal_top.html"><span class="Name">К порталу</span></a>
</p>
</fieldset>
<fieldset id="authTools">
<p id="loginUserData">
<span class="Supplement"></span>
<span id="userName"></span>
</p>
<p>
<a href="/logout.cgi"><span class="Name">Выход из системы</span></a>
</p>
</fieldset>
</div>
</div>
<hr />
</div>
<div id="applications">
<div id="applicationBranding">
<div class="Wrapper">
<h1 id="applicationLogo">
<img src="/media/app_icon_default.png" alt="Параметры/Регистрация" title="Параметры/Регистрация" />
<span class="BrandingName">Параметры/Регистрация</span></h1>
<div id="appTools">
<table>
<tr>
<td><a href="mailto:"><span class="Name">Отправить эл. почтой администратору системы</span></a></td>
</tr>
</table>
</div>
</div>
</div>
<hr />
<div id="applicationContents">
<div class="Wrapper">
<div id="contentsWrapper">
<div id="contents">
<div id="navTopicPath">
<a href="/f_copy.html">Параметры/Регистрация: Настройки функций: Настройки копирования</a> > Изменить настройки копирования
</div>
<div id="contentHeading">
<h2 class="PageName">Изменить настройки копирования</h2>
<div id="contentHeadingTools">
</div>
</div>
<div id="contentInformation">
Измените следующие настройки.
</div>
<form name="fCopyEdit" id="0" action="/cgi/f_copy_edit.cgi" method="post" onsubmit="return false;">
<input type="hidden" name="iToken" id="iToken" value="3553590444" />
<div class="ContentOperation">
<fieldset>
<input type="button" id="submitButton" class="ButtonEnable" value="OK" />
<input type="button" class="ButtonEnable" value="Отмена" onclick="document.location='/f_copy.html'"/>
</fieldset>
</div>
<div id="" class="ContentModuleEditable">
<div class="ModuleHeading">
<h4>Настройки копирования</h4>
</div>
<div id="" class="ModuleElement">
<table class="PropertyListComponent" rules="groups">
<tbody>
<tr>
<th>Кол-во копий:<span class="Vali_part" id="i6001">Ошибка!</span></th>
<td><input type="text" name="i0014" id="i0014" class="Size_figure" value="35" maxlength="2" onfocus="" autocomplete="off" />
Копий (1-99)</td>
</tr>
</tbody>
<tbody>
<tr>
<th>Плотность:</th>
<td><select name="i0018" id="i0018" onchange="">
<option value="1">-4</option>
<option value="2">-3</option>
<option value="3">-2</option>
<option value="4">-1</option>
<option value="5" selected='selected'>0</option>
<option value="6">1</option>
<option value="7">2</option>
<option value="8">3</option>
<option value="9">4</option>
</select>
</td>
</tr>
<!--
<tr class="Sub">
<th colspan="2"></th>
</tr>
-->
<tr class="Sub">
<th>Фон:</th>
<td><input type="radio" name="i0024" id="i0024A" value="4" onclick="setControl002()" /><label for="i0024A">Авто</label><br />
<input type="radio" name="i0024" id="i0024B" value="2" checked='checked' onclick="setControl003()" /><label for="i0024B">Настройка:</label><br />
<select name="i0025" id="i0025" onchange="">
<option value="-6">-6</option>
<option value="-5">-5</option>
<option value="-4">-4</option>
<option value="-3">-3</option>
<option value="-2">-2</option>
<option value="-1">-1</option>
<option value="0" selected='selected'>0</option>
<option value="1">1</option>
<option value="2">2</option>
</select>
</td>
</tr>
<!--
<tr class="Sub2">
<th></th>
<td></td>
</tr>
<tr class="Sub3">
<th></th>
<td></td>
</tr>
<tr class="Sub3">
<th></th>
<td></td>
</tr>
<tr class="Sub3">
<th></th>
<td></td>
</tr>
<tr class="Sub">
<th colspan="2"></th>
</tr>
<tr class="Sub2">
<th></th>
<td></td>
</tr>
<tr class="Sub2">
<th></th>
<td></td>
</tr>
<tr class="Sub2">
<th></th>
<td></td>
</tr>
<tr class="Sub2">
<th></th>
<td></td>
</tr>
-->
</tbody>
<tbody>
<tr>
<th>Тип оригинала:</th>
<td><select name="i0047" id="i0047" onchange="setControl004()">
<option value="1">Текст</option>
<option value="4" selected='selected'>Текст/Фото</option>
<option value="18">Текст/Фото (Качество)</option>
<option value="3">Фото</option>
</select>
</td>
</tr>
<tr class="Sub">
<th>Настройка уровня:</th>
<td>Приоритет текста<br /><input type="radio" name="i0050" id="i0050A" value="1" onclick="" /><label for="i0050A">4</label><br />
<input type="radio" name="i0050" id="i0050B" value="2" onclick="" /><label for="i0050B">3</label><br />
<input type="radio" name="i0050" id="i0050C" value="3" onclick="" /><label for="i0050C">2</label><br />
<input type="radio" name="i0050" id="i0050D" value="4" onclick="" /><label for="i0050D">1</label><br />
<input type="radio" name="i0050" id="i0050E" value="5" checked='checked' onclick="" /><label for="i0050E">0</label><br />
<input type="radio" name="i0050" id="i0050F" value="6" onclick="" /><label for="i0050F">1</label><br />
<input type="radio" name="i0050" id="i0050G" value="7" onclick="" /><label for="i0050G">2</label><br />
<input type="radio" name="i0050" id="i0050H" value="8" onclick="" /><label for="i0050H">3</label><br />
<input type="radio" name="i0050" id="i0050I" value="9" onclick="" /><label for="i0050I">4</label><br />
Приоритет фото</td>
</tr>
</tbody>
<tbody>
<tr>
<th>2-сторонняя:</th>
<td><select name="i0053" id="i0053" onchange="setControl007()">
<option value="0" selected='selected'>Выкл.</option>
<option value="1">1->2 стороны</option>
</select>
</td>
</tr>
<tr class="Sub">
<th>Ориентация оригинала:</th>
<td><input type="radio" name="i0055" id="i0055A" value="6" onclick="" /><label for="i0055A">Книжная</label><br />
<input type="radio" name="i0055" id="i0055B" value="7" onclick="" /><label for="i0055B">Альбомная</label><br />
</td>
</tr>
<!--
<tr class="Sub">
<th></th>
<td></td>
</tr>
-->
<tr class="Sub">
<th>Формат конечной обработки:</th>
<td><input type="radio" name="i0059" id="i0059A" value="4" onclick="" /><label for="i0059A">Тип книги</label><br />
<input type="radio" name="i0059" id="i0059B" value="3" onclick="" /><label for="i0059B">Тип календаря</label><br />
</td>
</tr>
</tbody>
<tbody>
<tr>
<th>Коэффициент масшт.:<span class="Vali_part" id="i6002">Ошибка!</span></th>
<td><select name="i0062" id="i0062" onchange="setControl009()">
<option value="0">Польз. коэфф.</option>
<option value="21">400% максимум</option>
<option value="11">200%</option>
<option value="9">141% A5->A4</option>
<option value="6" selected='selected'>100% 1:1</option>
<option value="3">70% A4->A5</option>
<option value="1">50%</option>
<option value="15">25% минимум</option>
</select>
<input type="text" name="i0063" id="i0063" class="Size_figure" value="100" maxlength="3" onfocus="" autocomplete="off" />
% (25-400)</td>
</tr>
</tbody>
<tbody>
<tr>
<th>Источник бумаги:</th>
<td><input type="radio" name="i2000" id="i2000A" value="7" onclick="setMagnification(document.forms[0])" /><label for="i2000A">Универсальный лоток</label><br />
<input type="radio" name="i2000" id="i2000B" value="101" checked='checked' onclick="setMagnification(document.forms[0])" /><label for="i2000B">Кассета 1</label><br />
</td>
</tr>
</tbody>
<tbody>
<tr>
<th>N на 1:</th>
<td><select name="i0069" id="i0069" onchange="setControl010()">
<option value="2" selected='selected'>Выкл.</option>
<option value="3">2 на 1</option>
<option value="4">4 на 1</option>
<option value="255">Копирование ИД-карточки</option>
</select>
</td>
</tr>
<tr class="Sub">
<th>Формат сканирования:</th>
<td><select name="i0071" id="i0071" onchange="setMagnification(document.forms[0])">
<option value="2" selected='selected'>A4</option>
<option value="3">A5</option>
</select>
</td>
</tr>
<tr class="Sub">
<th>Выбор макета:</th>
<td><input type="radio" name="i0002" id="i0002A" value="52" checked='checked' /><img src="/media/2in1_layout1.gif" /><label for="i0002A">2 на 1 (1)</label><br />
<input type="radio" name="i0002" id="i0002B" value="53" /><img src="/media/2in1_layout2.gif" /><label for="i0002B">2 на 1 (2)</label><br />
<input type="radio" name="i0002" id="i0002C" value="66" /><img src="/media/4in1_layout1.gif" /><label for="i0002C">4 на 1 (1)</label><br />
<input type="radio" name="i0002" id="i0002D" value="67" /><img src="/media/4in1_layout2.gif" /><label for="i0002D">4 на 1 (2)</label><br />
<input type="radio" name="i0002" id="i0002E" value="68" /><img src="/media/4in1_layout3.gif" /><label for="i0002E">4 на 1 (3)</label><br />
<input type="radio" name="i0002" id="i0002F" value="69" /><img src="/media/4in1_layout4.gif" /><label for="i0002F">4 на 1 (4)</label><br />
</td>
</tr>
</tbody>
<tbody>
<tr>
<th>Сортировка:</th>
<td><select name="i0076" id="i0076" onchange="">
<option value="8" selected='selected'>Выкл.</option>
<option value="11">Вкл.</option>
</select>
</td>
</tr>
</tbody>
<tbody>
<tr>
<th>Стирание рамки:</th>
<td><select name="i0078" id="i0078" onchange="setControl015()">
<option value="1" selected='selected'>Выкл.</option>
<option value="3">Вкл.</option>
</select>
</td>
</tr>
<tr class="Sub">
<th>Указать ширину рамки:<span class="Vali_part" id="i6003">Ошибка!</span></th>
<td><input type="text" name="i0081" id="i0081" class="Size_figure" value="4" maxlength="2" onfocus="" autocomplete="off" />
мм (1-50)</td>
<!--
<td> </td>
-->
</tr>
<tr class="Sub">
<th>Формат сканирования:</th>
<td><select name="i0091" id="i0091" onchange="">
<option value="2" selected='selected'>A4</option>
<option value="3">A5</option>
</select>
</td>
</tr>
</tbody>
<tbody>
<tr>
<th>Резкость:</th>
<td><select name="i0093" id="i0093" onchange="">
<option value="1">-3</option>
<option value="2">-2</option>
<option value="3">-1</option>
<option value="4" selected='selected'>0</option>
<option value="5">1</option>
<option value="6">2</option>
<option value="7">3</option>
</select>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</form>
<div id="tmpFooter">
<hr />
<div class="GotoTop">
<a href="javascript:scrollTo(0,0);"><img src="/media/ba_ptp.gif" alt="В начало страницы" title="В начало страницы" /></a>
</div>
</div>
</div>
</div>
<hr />
<div id="navigationWrapper">
<div id="navigation">
<ul class="Main">
<li class="MainItem">
<span class="GroupTitle">Настройки</span>
<ul class="Sub">
<li class="Standby"><a href="/p_paper.html">Установки бумаги</a></li>
<li class="Standby"><a href="/p_preference.html">Рег. громкости звука / Настройки отображения</a></li>
<li class="Standby"><a href="/p_timer.html">Настройки таймера</a></li>
</ul>
</li>
</ul>
<ul class="Main">
<li class="MainItem">
<span class="GroupTitle">Настройки функций</span>
<ul class="Sub">
<li class="Standby"><a href="/f_common.html">Общие настройки</a></li>
<li class="Selected"><a href="/f_copy.html">Настройки копирования</a></li>
<!--
<li class=""><a href=""></a></li>
-->
<li class="Standby"><a href="/f_scan.html">Настройки сканирования</a></li>
<li class="Standby"><a href="/f_external_interface.html">Настройки прямой печати из устр-ва USB</a></li>
<li class="Standby"><a href="/f_printer.html">Настройки принтера</a></li>
<!--
<li class=""><a href=""></a></li>
-->
</ul>
</li>
</ul>
<ul class="Main">
<li class="MainItem">
<span class="GroupTitle">Настройки системы</span>
<ul class="Sub">
<li class="Standby"><a href="/m_system.html">Настройки системы</a></li>
<!--
<li class=""><a href=""></a></li>
<li class=""><a href=""></a></li>
<li class=""><a href=""></a></li>
<li class=""><a href=""></a></li>
<li class=""><a href=""></a></li>
<li class=""><a href=""></a></li>
-->
</ul>
</li>
</ul>
</div>
</div>
</div>
</div>
<hr />
<div id="applicationInfo">
<address class="SiteInforLegal">Copyright CANON INC. 2011 All Rights Reserved</address>
</div>
</div>
</div>
</body>
</html>
В чем здесь может быть дело, почему в первом случае работает, а во втором случае не работает?