  var dn
  c1=new Image(); c1.src="/img/c1.gif"
  c2=new Image(); c2.src="/img/c2.gif"
  c3=new Image(); c3.src="/img/c3.gif"
  c4=new Image(); c4.src="/img/c4.gif"
  c5=new Image(); c5.src="/img/c5.gif"
  c6=new Image(); c6.src="/img/c6.gif"
  c7=new Image(); c7.src="/img/c7.gif"
  c8=new Image(); c8.src="/img/c8.gif"
  c9=new Image(); c9.src="/img/c9.gif"
  c0=new Image(); c0.src="/img/c0.gif"

//  document.body.className+=' js';

function extract(h,m)
{
    if (!document.images)
      return
    if (h<=9)
    {
      document.images.a.src=c0.src
      document.images.b.src=eval("c"+h+".src")
    }
    else
    {
      document.images.a.src=eval("c"+Math.floor(h/10)+".src")
      document.images.b.src=eval("c"+(h%10)+".src")
    }
    if (m<=9)
    {
      document.images.d.src=c0.src
      document.images.e.src=eval("c"+m+".src")
    }
    else
    {
      document.images.d.src=eval("c"+Math.floor(m/10)+".src")
      document.images.e.src=eval("c"+(m%10)+".src")
    }
}

function showtime()
{
    if (!document.images)
       return
     var di=new Date()
     var h=di.getHours()
     var m=di.getMinutes()
     if (h==0) h=12
     extract(h,m)
     setTimeout("showtime()",60000)
}

function infolenta(k,i)
{
  document.getElementById("ai1").className="";
  document.getElementById("ai2").className="";
  document.getElementById("ai3").className="";
  document.getElementById("ai4").className="last";
  k.className="sel";
  document.images.info.src=document.getElementById("info"+i).src;
}

function infolenta1(k,i)
{
  document.getElementById("ai1").className="";
  document.getElementById("ai2").className="";
  document.getElementById("ai3").className="";
  document.getElementById("ai4").className="";
  document.getElementById("ai5").className="";
  document.getElementById("ai6").className="last";
  k.className="sel";
  document.images.info.src=document.getElementById("info"+i).src;
}

function infolenta2(k,i)
{
  document.getElementById("ai1").className="";
  document.getElementById("ai2").className="";
  document.getElementById("ai3").className="";
  document.getElementById("ai4").className="";
  document.getElementById("ai5").className="";
  document.getElementById("ai6").className="last";
  k.className="sel";
  document.images.info.src=document.getElementById("info"+i).src;
  document.getElementById("podpisinfo").innerHTML=document.getElementById("ikkd"+i).value;
}

function kompleks(n, k,i)
{
  for (j=1;j<n;j++)
    document.getElementById("ki"+j).className="";
  document.getElementById("ki"+n).className="last";
  k.className="selkomp";
  document.images.ik.src=document.getElementById("ik"+i).src;

  document.getElementById("podpis").innerHTML=document.getElementById("ikd"+i).value;
}

function checkid() 
{
  if (document.fq.fio.value == "") 
  {
    alert ("\nУкажите, пожалуйста, свое имя и фамилию!\t\n");
    document.fq.fio.focus();
    return false;      
  }
  if (document.fq.ul.value == "") 
  {
    alert ("\nПожалуйста, укажите свой адрес!\t\n")
    document.fq.ul.focus();
    return false;      
  }  
  if (document.fq.list.value == 0) 
  {
    alert ("\nВыберите, пожалуйста, тематику вопроса\t\n")
    document.fq.list.focus();
    return false;      
  }
  if (document.fq.txt.value == "") 
  {
    alert ("\nВпишите свой вопрос\t\n")
    document.fq.txt.focus();
    return false;      
  }
}

function checkid1() 
{
  if (document.fq.fio.value == "") 
  {
    alert ("\nУкажите, пожалуйста, свое имя и фамилию!\t\n");
    document.fq.fio.focus();
    return false;      
  }
  if (document.fq.tel.value == "") 
  {
    alert ("\nПожалуйста, укажите свой телефон!\t\n")
    document.fq.tel.focus();
    return false;      
  }
  if (document.fq.ul.value == "") 
  {
    alert ("\nПожалуйста, укажите свой адрес!\t\n")
    document.fq.ul.focus();
    return false;      
  }  
  if (document.fq.list1.value == 0) 
  {
    alert ("\nВыберите, пожалуйста, передачу\t\n")
    document.fq.list.focus();
    return false;      
  }
}

function checkid2() 
{
  if (document.fq.fio.value == "") 
  {
    alert ("\nУкажите, пожалуйста, свое имя и фамилию!\t\n");
    document.fq.fio.focus();
    return false;      
  }
  if (document.fq.tel.value == "") 
  {
    alert ("\nПожалуйста, укажите свой телефон!\t\n")
    document.fq.tel.focus();
    return false;      
  }
  if (document.fq.ul.value == "") 
  {
    alert ("\nПожалуйста, укажите свой адрес!\t\n")
    document.fq.ul.focus();
    return false;      
  }  
  if (document.fq.txt.value == "") 
  {
    alert ("\nОпишите, пожалуйста, свою проблему\t\n")
    document.fq.txt.focus();
    return false;      
  }
}

function checkid3() 
{
  if (document.fq.fio.value == "") 
  {
    alert ("\nУкажите, пожалуйста, свое имя и фамилию!\t\n");
    document.fq.fio.focus();
    return false;      
  }
  if (document.fq.ul.value == "") 
  {
    alert ("\nПожалуйста, укажите свой адрес!\t\n")
    document.fq.ul.focus();
    return false;      
  }  
  if (document.fq.txt.value == "") 
  {
    alert ("\nВпишите свой вопрос\t\n")
    document.fq.txt.focus();
    return false;      
  }
}
