//ДЛЯ ВЫВОДА ОТДЕЛЬНОГО ОКНА
function w8x6(url_it) {
  window.open(url_it, 'win2', 'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=800,height=600,directories=no,location=no');
}
function w5x5(url_it) {
  window.open(url_it, 'win2', 'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=550,height=550,directories=no,location=no');
}

function wx_y(url_it, x_, y_) {
  window.open(url_it, 'win2', 'status=no,toolbar=no,scrollbars=no,titlebar=no,menubar=no,resizable=no,width='+x_+',height='+y_+',directories=no,location=no');
}

//ДЛЯ ПРОСМОТРА БОЛЬШОГО ИЗОБРАЖЕНИЯ
function resizeOuterTo(w,h) {
 if (parseInt(navigator.appVersion)>3) {
   if (navigator.appName=="Netscape") {
    top.outerWidth=w+8;
    top.outerHeight=h+29;
   }else{
    top.resizeTo(400,300);
    wd = 400-document.body.clientWidth;
    hd = 300-document.body.clientHeight;
    top.resizeTo(w+wd,h+hd);
   }
 }
}

function init()
{
  resizeOuterTo(document.images['LargeImg'].width, document.images['LargeImg'].height);
}

//ДЛЯ АВТОРИЗАЦИИ МИНИ-ПРОФИЛЬ
function showlogin(){
    document.getElementById('login_miniprofile').style.display = 'block';
    return false;
}
function hidelogin(){
    document.getElementById('login_miniprofile').style.display = 'none';
    return false;
}
function validlogin(){
    thee = document.getElementById('login_form');
    if (thee && thee.loginbox){ if (thee.loginbox.value!='' && thee.password && thee.password.value!=''){
        return true;
    } else {
        alert("Необходимо ввести логин и пароль!");
        return false;
    }
  }else{ return true; }
}
