Файл: gamele.ru/js/doctor.js
Строк: 69
<?php
var ActionFormUse;
function cdform()
{
document.all("doctordiv").style.visibility="hidden";
document.all("doctordiv").innerHTML = '<img src=http://image.gamele.ru/1x1.gif width=1 height=1>';
top.frames['ch_buttons'].document.FBT.text.focus();
ActionFormUse='';
}
function doctorform(duid,vcode,dtype,dcurs)
{
var add_txt = '';
switch(dtype)
{
case '1': add_txt = 'легкая травма'; break;
case '2': add_txt = 'средняя травма'; break;
case '3': add_txt = 'тяжёлая травма'; break;
case '4': add_txt = 'боевая травма'; break;
}
top.frames['ch_buttons'].document.FBT.text.focus();
document.all("doctordiv").innerHTML = '<form action=main.php method=POST><input type=hidden name=useaction value="addon-action"><input type=hidden name=dtype value="'+dtype+'"><input type=hidden name=addid value=2><input type=hidden name=post_id value=3><input type=hidden name=dcurs value="'+dcurs+'"><input type=hidden name=duid value='+duid+'><input type=hidden name=vcode value='+vcode+'><table cellpadding=0 cellspacing=0 border=0 width=100%><tr><td bgcolor=#B9A05C><table cellpadding=3 cellspacing=1 border=0 width=100%><tr><td width=100% bgcolor=#FCFAF3><font class=nickname><b>Кого лечить? ('+add_txt+')</b></font></div></td></tr><tr><td bgcolor=#FCFAF3><font class=nickname><b>Кому:</b> <INPUT TYPE="text" name=fnick class=LogintextBox maxlength=25> <input type=submit value="лечить" class=lbut> <input type=button class=lbut onclick="cdform()" value=" x "></td></tr></table></td></tr></table></FORM>';
document.all("doctordiv").style.visibility = "visible";
document.all("fnick").focus();
ActionFormUse='fnick';
}
?>