function weather()
{
 	top.fr1.location='http://www.meteoinfo.ru/informer/informer.php?ind='+top.city.value+'&type=3&color=167';
 	setc();
}
function setc()
{
today = new Date();
today.setTime(today.getTime());
expires = 10080 * 1000 * 60;
d = new Date(today.getTime() + (expires));
var coo = "pugoocity=" + top.city.value + "; path=/; expires="+d.toGMTString();
document.cookie = coo;
}

function getc()
{
c_name="pugoocity";
if (document.cookie.length > 0)
{
c_start=document.cookie.indexOf(c_name + "=")
if (c_start!=-1)
{
c_start=c_start + c_name.length+1
c_end=document.cookie.indexOf(";",c_start)
if (c_end==-1) c_end=document.cookie.length
coo=unescape(document.cookie.substring(c_start,c_end))
top.city.value=coo;
weather();
}
else {top.city.value=33345;weather();}
}
document.f.q.focus();
}
 function tip(txt)
 {
 h=document.body.clientHeight;
 if (parseInt(txt.length)<53) tips.style.width="";
 else tips.style.width=350;
 tips.style.visibility="hidden"; height=(parseInt(txt.length/53)+1)*15;
 tips.style.left=window.event.clientX+5; tips.style.top=window.event.clientY+10+document.body.scrollTop;; tips.style.opacity=1; tips.style.background="#DDFFDD"; dy=window.event.clientY+10+height-h;
 if (dy>0) tips.style.top=window.event.clientY-dy+document.body.scrollTop;
 tips.innerHTML=txt;
 tips.style.visibility="visible";
  }
 function tipout()
 {
 tips.style.visibility="hidden";
 }

function c1()
{
document.f.list.disabled=0;
document.f.r1.checked=0;
document.f.r2.checked=0;
document.f.r3.checked=0;
}
function c2()
{
document.f.list.disabled=1;
document.f.log.checked=0;
}

