var d=document;
document.ondragstart = no_select;
document.onselectstart = no_select;
document.oncontextmenu = no_select;

function no_select() {
	//return false
}
//no_select();

function ge(obj){
   if(document.getElementById(obj)) {
     obj = document.getElementById(obj);
     return obj;
   } else {
     return false;
   }

}
function check_str(){
    var str=d.forms['findform'].str.value;
    if(str.length<4) {
     alert('Слишком короткий запрос');
     return false;
    } else
    if(str == "Поиск") {
     alert('Неправильный запрос');
     return false;
    } else {
     ge('findform').submit();
    }
}
function new_window(alias)

{ 

        window.open(alias,'Text','toolbar=0,location=0,directories=0,menuBar=0,resizable=0,scrollbars=yes,width=980,height=600,left=32,top=16'); 

}


function ge(obj){
   if(document.getElementById(obj)) {
     obj = document.getElementById(obj);
     return obj;
   } else {
     return false;
   }

}

function HideBlock(id)
{
	ge(id).style.display='none';
}
function ShowBlock(id)
{
	ge(id).style.display='block';
}

function InvertBlock(id)
{
	if(ge(id))
	{
		if(ge(id).style.display=='block')
			HideBlock(id)
		else	
			ShowBlock(id)
	}
}
