////////////////////////////////////////////////
var DOM = (document.getElementById)?true:false;
var NN = (document.layers)?true:false;
var IE = (document.all)?true:false;
var NN6 = DOM;
var Opera = DOM && window.opera;

function getElement(objname)
{
  if (IE) return document.all[objname];
  if (NN) return getNNElement(null, objname);
  if (DOM) return document.getElementById(objname);
}

function datapage(url,data)
{
   if(data)
  {
var el=getElement("data_frame")
el.src=url+"&data="+data;

//strFeatures="top=3000px; left=3000px; width=1px; height=1px; scrollbars=no; status=no; resizable=no; maximize=no;";
//strFeatures="scrollbars=no; status=no; resizable=no; maximize=no;";
//window.open(url+"&data="+data,"win", strFeatures);
}
}

function returndata(datas)
{
el=getElement("city");
el.innerHTML=datas;
}

///////////////////////////////


function big_pic(x_size,y_size,address,pic_id)
{
status_str='toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,width='+x_size+',height='+y_size+',top=80,left=80';
win='win'+pic_id;
window.open('/php/big_pic.php?url='+address, win, status_str);
}
function login_form()
{
document.write('<div id="loginfly">');
document.write('<div id=login-panel><div class=login_ins>');
document.write('<a href="#" id="log" ');
document.write('onclick="if(getElementById(\'form_login\').style.display==\'block\'){ getElementById(\'form_login\').style.display=\'none\'; } ');
document.write('else { getElementById(\'form_login\').style.display=\'block\'; }"/>');
document.write('Вход</a> ');
document.write('<a href="/firms/php/registration.php" id="reg">Регистрация</a>');
document.write('<div id="form_login">');
document.write('<table width="205" height="80" border=0 cellpadding="4" cellspacing="0" bgcolor="#DBDBDB">');
document.write('<form action="/firms/php/office.php" method="post"><tr><td align="right" valign=middle class=t11>Логин</td>');
document.write('<td valign=middle><input type="text" name="login_client" size="16" maxlength="80" value=""></td></tr><tr>');
document.write('<td align="right" valign=middle class=t11>Пароль</td><td valign=middle><input type="Password" name="password_client" size="16" maxlength="80" value=""></td>');
document.write('</tr><tr><td colspan="2" align=right style="padding-right:22px;">');
/*document.write('<span class=forget><a href="/catalog/php/forget.php">забыли пароль?</a></span>');*/
document.write('<input type=hidden name=action value="edit"><input type="submit" class="cmd" value="войти">');
document.write('</td>');
document.write('</tr></form></table></div></div>');
document.write('</div></div>');
}
