function new_window(url,w,h){
	

//height=height-70;

	
	st='top=0, left=0, menubar=0, toolbar=0, location=0, directories=0, status=0, scrollbars=0, resizable=0, width='+w+', height='+h;
	window.open( url,'newwin',st);
}
/**/
function new_window_des(url,w,h){
	
		if (self.screen) {     // aey NN4 e IE4
        width = screen.width
        height = screen.height
}
else if (self.java) {   // aey NN3 n ?aai?ei Java
       var jkit = java.awt.Toolkit.getDefaultToolkit();
       var scrsize = jkit.getScreenSize();       
       width = scrsize.width; 
       height = scrsize.height; 
}else{
       width = height = 'x' // aey inoaeuiuo a?aoca?ia
}
left=(width-width*0.9)/2;

width=width*0.9;
height=height-60;


if(w==0 && h==0){
w=width;
h=height;	
	

}	
	
	
	st='top=0, left='+left+', menubar=0, toolbar=0, location=0, directories=0, status=0, scrollbars=1, resizable=1, width='+w+', height='+h;
	window.open( url,'newwin',st);
}

function ValidateForm() {
	var Check = 0;
	if (document.auth.login.value == '') { Check = 1; }
	else
	{
		if(document.auth.login.value.length <3){ Check = 1;  }
		
	}
	if (document.auth.pasw.value == '') { Check = 1; }
	else
	{
		if(document.auth.pasw.value.length <3){ Check = 1;  }
		
	}
	if (Check == 1) {

alert("Перед продолжением, введите ваше имя пользователя и пароль");

		return false;
	} else {
		document.auth.submit.disabled = true;
		///var a = document.auth.login.value;
		//var b = document.auth.login.value.length;
		
		return true;
	
		
		
		}

	
	
	
	}
	
	
	
	function showpt(id){
if(document.getElementById(id).style.display=='none')
document.getElementById(id).style.display = 'block';

else
document.getElementById(id).style.display = 'none';

}






function NavigateThrough (event)
{

	switch (event.keyCode ? event.keyCode : event.which ? event.which : null)
	{
		case 0x25:
			link = document.getElementById ('PrevLink');
			break;
		case 0x27:
			link = document.getElementById ('NextLink');
			break;
		case 0x38:
			link = document.getElementById ('PrevHead');
			break;
		case 0x40:
			link = document.getElementById ('NextHead');
			break;
	}
	if (link && link.href) document.location = link.href;	
}




function defScroll() {
      var x = y = 0;
      // Gecko поддерживает свойства scrollX(scrollY)
      // Для IE & Opera приходится идти в обход
      x = (window.scrollX) ? window.scrollX : document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft;
      y = y = (window.scrollY) ? window.scrollY : document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop;
     // return {x:x, y:y};
	  alert (x);
	  
}
// Проверка, вывод методом alert
