function regw(url, w, h) {
var wn = window.open(url,'video','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,width='+w+',height='+h+',resizable=yes');
}

function img(name,stat,sw){
if(!sw){
document.images[name].src='/i/'+name+'_'+stat+'.gif';
} else
{
document.images[name].src='/i/button_'+stat+'.gif';
}
}

function ValidateForumForm(){

if(document.forms["ForumPosting"].elements[0].value.length == 0){
alert("Заполните, пожалуйста, тему сообщения!");
}
else if (document.forms["ForumPosting"].elements[1].value.length == 0){
alert("Пожалуйста, напишите текст сообщения!");
}
else{
document.forms["ForumPosting"].submit();
}

}

function preload(){
var arr = new Array('reg','home','conf','cont','search','map','where');
var imgs = new Array();
for(i=0;i<arr.length;i++){
imgs[i] = new Image();
imgs[i].src='/i/'+arr[i]+'.gif';
}
}

var t,i=0,delay=10;

ie = (document.all) ? true : false;
nn4 = (document.layers) ? true : false;


function moveUp(div_id){
did = (div_id) ? div_id : '';
if(nn4){
if(document.layers['divScrollTextCont'+did].document.layers['divText'+did].top>(-1)*(document.layers['divScrollTextCont'+did].document.layers['divText'+did].clip.height-document.layers['divScrollTextCont'+did].clip.height)){
document.layers['divScrollTextCont'+did].document.layers['divText'+did].top -= 1;
}
}
if(ie){
if(document.all['divText'+did].style.pixelTop>(-1)*(document.all['divText'+did].offsetHeight-document.all['divScrollTextCont'+did].offsetHeight)){
document.all['divText'+did].style.pixelTop -= 1;
}
}
t=setTimeout('moveUp('+did+')',delay);
}

function moveDown(div_id){
did = (div_id) ? div_id : '';
if(nn4){
if(document.layers['divScrollTextCont'+did].document.layers['divText'+did].top<0){
document.layers['divScrollTextCont'+did].document.layers['divText'+did].top += 1;
}
}
if(ie){
if(document.all['divText'+did].style.pixelTop<0){
document.all['divText'+did].style.pixelTop += 1;
}
}
t=setTimeout('moveDown('+did+')',delay);
}

function stop(){
clearTimeout(t);
}


if(typeof(main_page)=="undefined"){
if(!nn4){
document.write('<link rel=stylesheet href="/ie_other.css">');
} else
{
document.write('<link rel=stylesheet href="/nn4_other.css">');
}
}

document.write("<img src=http://dpstat.2sun.ru/show.asp?"+document.location.href+" width=1 height=1 border=0>");