window.onresize=load2
	document.oncontextmenu=new Function("return false");
	function load(){  
	userAgent=navigator.userAgent.toLowerCase();
 	browsers=true;
 	if(userAgent.indexOf("opera")>0){browsers=false;}
	load2()
	}
	
	function load2(){
	if(browsers){
	bw=document.documentElement.clientWidth;
	bh=document.documentElement.clientHeight;	
	}else{
	bw=self.innerWidth;
	bh=self.innerHeight
	}
	
	ww=(bw-936)/2;
	hh=(bh-590)/2;
	if(ww<0){
	document.getElementById("body").style.left=0+"px";
	}else{
	document.getElementById("body").style.left=ww-25+"px";
	}
	if(hh<0){
	document.getElementById("body").style.top=0+"px";
	}else{
	document.getElementById("body").style.top=hh-25+"px";
	}
	document.getElementById("body").style.display="block";
	if(lengBut=="geo"){
	document.getElementById("lengENG").style.visibility="visible"
	document.getElementById("lengGEO").style.visibility="hidden";	
	}
	if(lengBut=="eng"){
	document.getElementById("lengGEO").style.visibility="visible";
	document.getElementById("lengENG").style.visibility="hidden";
	}
	}

	
	function overi(x){document.getElementById("menuDiv"+x).style.visibility="visible"}
    function outi(x){ document.getElementById("menuDiv"+x).style.visibility="hidden"}
	
	function divShow(nam){
	document.getElementById(nam).style.visibility="visible";
	}
	
	function CloseDiv(nam){
	document.getElementById(nam).style.visibility="hidden";
	document.forms["npas"].usname.value="";
	document.forms["npas"].uspass.value="";
	document.forms["npas"].usrepPas.value="";	
	}
	
	function changes(){
st="";
if(document.forms["npas"]["usname"].value==""){
st+="﻿სახელი არ არის ჩაწერილი!\n";
}
if(document.forms["npas"]["uspass"].value==""){
st+="შეამოწმეთ პაროლი!\n";
}
if(document.forms["npas"]["usrepPas"].value!=document.forms["npas"]["uspass"].value){
st+="შეამოწმეთ პაროლი!\n";
}
if(st!=""){
alert(st);
}else{
document.forms["npas"].submit();
}
}

function helpi(){
	w=screen.availWidth;
	h=screen.availHeight;
	ww=(w-970)/2;
	hh=(h-730)/2;
	l=(ww<0)?0:ww;
	t=(hh<0)?0:hh;
	scr=(h<700)?"yes":"no";
	wedit="width=970, height=650, left="+l+", top="+t+", status=no, toolbar=no, menubar=no, scrollbars="+scr+", resizable=no";
}

function del(x){
de=confirm("Are you sure you want to delete this file?");
if(de){
x["delAct"].value="yes";
x.submit();
}
}
