function gcov(i){
var e=document.cookie.indexOf(";",i);
if(e==-1)e=document.cookie.length;
return unescape(document.cookie.substring(i,e));
}

function gcoo(n){
var a,i,j;
a=n+"=";
i=0;
while(i<document.cookie.length){
j=i+a.length;
if(document.cookie.substring(i,j)==a)return gcov(j);
i=document.cookie.indexOf(" ",i)+1;
if(i==0)break;
}
return null;
}

function scoo(n,v){
var a,l,c;
a=scoo.arguments;
l=scoo.arguments.length;
c=n+"="+escape(v);
if(l>2)c+='; expires='+a[2].toGMTString();
if(l>3)c+='; path='+a[3];
if(l>4)c+='; domain='+a[4];
if(l>5)c+='; secure';
document.cookie=c;
}

function loadf(f){
var i,n,c,g,r;
n=gcoo('n');
if(n!=null)f.nick.value=n;
c=gcoo('c');
if(c!=null)for(i=0;i<f.color.length;i++)if(f.color.options[i].value==c){f.color.selectedIndex=i;break;}
g=gcoo('g');
if(g!=null)for(i=0;i<f.gender.length;i++)if(f.gender.options[i].value==g){f.gender.selectedIndex=i;break;}
if(f.newroom){
r=gcoo('r');
if(r!=null){
for(i=0;i<f.room.length;i++)if(f.room.options[i].value==r){f.room.selectedIndex=i;break;}
if(i==f.room.length)f.newroom.value=r;
}
}
}

function valid(f){
if(f.nick.value==''){
alert('Введи свой псевдоним !');
return false;
}else{
var d=new Date();
d.setTime(d.getTime()+2592000000);
scoo('n',f.nick.value,d,'/');
scoo('c',f.color.options[f.color.selectedIndex].value,d,'/');
scoo('g',f.gender.options[f.gender.selectedIndex].value,d,'/');
if(f.newroom){
if(f.newroom.value!='')scoo('r',f.newroom.value,d,'/');
else scoo('r',f.room.options[f.room.selectedIndex].value,d,'/');
return true;
}
}
}

function rnd(){
return Math.round(Math.random()*100000);
}

function a468(){
document.write('<img src="http://c.mystat-in.net/i050901221553&t0&g1&j0" width="1" height="1">');
document.write('<img src="http://counter.rambler.ru/top100.cnt?495132" width="1" height="1">');
document.write('<img src="http://top.list.ru/counter?id=864386" width="1" height="1">');
var r=rnd();
}

function b468(){
document.write('<img src="http://c.mystat-in.net/i050901221553&t0&g1&j0" width="1" height="1" border="0">');
document.write('<img src="http://counter.rambler.ru/top100.cnt?495132" width="1" height="1" border="0">');
document.write('<img src="http://top.list.ru/counter?id=864386" width="1" height="1">');
document.write('<a href="http://b468.abn.com.ua/nsanchor?t=468&id=100832" target="_blank"><img src="http://b468.abn.com.ua/nsimg?t=468&w=468&h=60&id=100832" width="468" height="60" border="0"></a>');
}

function a600(){
var r=rnd();
}

function a88(){
document.write('<a href="http://wwwomen.ru/php/wg.php?agent=28-9522" target="_blank"><img src="http://wwwomen.ru/php/wi.php?agent=28-9522&i=0" border="0" width="88" height="31" alt="WWWomen.ru WWWomen online!"></a> ');
document.write('<a href="http://flirtlist.ru/cgi/in.cgi?id=406" target="_blank"><img src="http://flirtlist.ru/logo/flirtlist.gif" alt="Знакомства - ЛУЧШИЕ сайты знакомств от FlirtList!" width="88" height="31" border="0"></a> ');
document.write('<a href="http://top100.rambler.ru/top100/" target="_blank"><img src="http://top100-images.rambler.ru/top100/banner-88x31-rambler-gray2.gif" alt="Rambler\'s Top100" width="88" height="31" border="0"></a> ');
document.write('<a href="http://top.mail.ru/jump?from=864386" target="_blank"><img src="http://top.list.ru/counter?id=864386;t=69;l=1" border="0" height="31" width="38" alt="Рейтинг@Mail.ru"></a> ');
document.write('<img src="http://poboltaem.com/pr.gif" width="88" height="31"> ');
document.write('<img src="http://www.yandex.ru/cycounter?poboltaem.com" width="88" height="31"> ');
}

function err(){
var e=['','Введи свой псевдоним !','',
'Ресурс недоступен.',
'Это имя уже занято или введен неправильный пароль','',
'Недопустимый символ в псевдониме',
'Имя не может состоять из комбинации русских и латинских символов. Пожалуйста, используй либо только русские, либо только латинские символы.',
'Имя не может содержать цифры. Пожалуйста, выбери себе имя без цифр.',
'Имя должно начинаться с буквы и заканчиваться буквой. Пожалуйста, выбери себе другое имя.',
'Это имя уже занято или введен неправильный пароль',
'Недопустимый символ в названии темы',
'Название темы не может состоять из комбинации русских и латинских символов. Пожалуйста, используй либо только русские, либо только латинские символы.',
'Название темы должно начинаться с буквы или цифры и заканчиваться буквой или цифрой. Пожалуйста, выбери другую тему.',
'Название темы содержит незензурные слова. Пожалуйста, выбери другую тему.'];
var u,i,p,n;
u=document.URL;
i=u.indexOf('poboltaem=');
if(i>0){
p=u.substring(i+10,u.length);
n=p.indexOf('&');
if(n>0)p=p.substring(0,n);
if(p!='')alert(e[p]);
}
}

setTimeout('err()',1000);

