function check22(f) {
  if (f.nam.value == "") {alert("Представтесь, пожалуйста!"); return false;}
  if (f.email.value == "") {alert("Укажите Ваш Email!"); return false;}
  if (f.mess.value == "") {alert("Вы забыли написать сообщение!"); return false;}
  return true;
}

function showwin(id){
  var name='/page/podr.php?'+id;
  imageWindow=window.open(name,1,'status=no, toolbar=no, menubar=no, resizable=yes, scrollbars=1, width=400, height=550');
}
function check(f) {
  if (f.user.value == "") {alert("Name is required!"); return false;}
  if (f.mess.value == "") {alert("Null message body!"); return false;}
  return true;
}

function showbigm(id){
  var name='/page/bigm.php?'+id;
  imageWindow=window.open(name,'','status=no, toolbar=no, menubar=no, resizable=yes, scrollbars=1, width=400, height=500');
}
function abc(id) {
  var ob=document.getElementById(id);
  if (ob.style.display=='none') ob.style.display='';
  else ob.style.display='none';
}
function sendFeed(f) {
//if (f.iLogin.value == '') {alert("Введите Ваш логин");f.iLogin.focus();return false;}
//if (f.iPass.value == '') {alert("Введите  пароль");f.iPass.focus();return false;}
if (f.iLast.value == '') {alert("Введите Вашу фамилию");f.iLast.focus();return false;}
if (f.iName.value == '') {alert("Введите Ваше имя");f.iName.focus();return false;}
if (f.iPhone.value == '') {alert("Введите Ваш личный телефон");f.iPhone.focus();return false;}
if (f.iEmail.value == '') {alert("Введите Ваш E-mail");f.iEmail.focus();return false;}
if (f.iOrg.value == '') {alert("Введите название Вашей компании");f.iOrg.focus();return false;}
if (f.iDolg.value == '') {alert("Введите Вашу должность");f.iDolg.focus();return false;}
if (f.iTel.value == '') {alert("Введите Ваш рабочий телефон");f.iTel.focus();return false;}
return (true);
}
function sendFeed2(f) {
if (f.ser_cat.value == 'Поиск' ) {alert("Введите запрос");f.ser_cat.focus();return false;}
return (true);
}
function fAll(obj, objName){
    var result = "";
    for (var i in obj)
        result += objName + "." + i + " = " + obj[i] + "<br />\n";
    document.write(result);
}
function search_sw(f){
  var ser=document.getElementById('serc');
  var seach=document.getElementById('search_table').style;
  if (f=='si' || f=='ou') {
    var out=document.getElementById('exit');
    var exit=document.getElementById('out_table').style;
  }
  if (f=='in' || f=='se') {
    var inp=document.getElementById('inpt');
    var enter=document.getElementById('enter_table').style;
  }
  if (f=='in'){
    ser.className='pas';
    inp.className='act';
    enter.display='';
    seach.display='none'
//fAll(enter,'enter');
  }
  if (f=='se'){
    ser.className='act';
    inp.className='pas';
    enter.display='none';
    seach.display=''
  }
  if (f=='si'){
    ser.className='act';
    out.className='pas';
    seach.display=''
    exit.display='none'
  }
  if (f=='ou'){
    ser.className='pas';
    out.className='act';
    seach.display='none'
    exit.display=''
  }
}
