	var gB = getBrowser();
	
	function setLocation( path )
	{
		window.location.href	=	path;
	}
	
	function openNewWin( path, children )
	{
		parametre = "top=0,left=0,height=" + window.screen.height + ",width=" + window.screen.width + ",scrollbars=yes,status=yes,toolbar=yes,menubar=yes,location=yes,resizable=yes";
		window.open(path,children,parametre,true);				
	}
	
	function callMailer( param, subject, body )
	{
		var path;
		path = "mailto: " + param + "@abnet.sk?subject=" + subject + "&body=" + body;
		window.open(path,"SALES","",true);			
	}
	
	function globalMailer( param, subject )
	{
		var path;
		path = "mailto: " + param + "&subject=" + subject;
		window.open(path,"SALES","",true);			
	}
	
	function openMailSuransky()
	{
		var path;
		path = "mailto: pavol.suransky@abnet.sk";
		window.open(path,"KOBELA","",true);		
	}
	
	function openMailKobela()
	{
		var path;
		path = "mailto: peter.kobela@abnet.sk";
		window.open(path,"KOBELA","",true);		
	}
	
	function setW3CValidation( x, y, z, s ,from)
	{
		var path;
		path = "http://validator.w3.org/check?uri=http://abnet.aoi.sk?x=" + x + "&y=" + y + "&z=" + z + "&s=" + s + "&from=" + from;
		parametre = "top=0,left=0,height=" + window.screen.height + ",width=" + window.screen.width + ",scrollbars=yes,status=yes,toolbar=yes,menubar=yes,location=yes,resizable=yes";
		window.open(path,"ABNET",parametre,true);			
	}
	
	function setUserAccess()
	{
		document.FORMIX.SETUSERACCESS.value	=	1;
		document.FORMIX.submit();
	}
		
	function controlFind( length )
	{
		var searchString	=	document.FORMIX.SEARCHSTRING.value;
		
		if(searchString.length	>	length)
		{
			document.FORMIX.STARTSEARCH.disabled	=	false;
		}
		else
		{
			document.FORMIX.STARTSEARCH.disabled	=	true;
		}
	}
		
	function openMailRAR()
	{
		var path;
		path = "mailto: rasto@abnet.sk";
		window.open(path,"EMAIL","",true);		
	}		
		
	function clickFind(x, _value)
	{
		if(x.value	==	_value)	{x.value	=	'';}
	}
		
	function stdOverON(x, stav, under)
	{
		if(stav)
		{
			if(under)	{x.style.textDecoration = 'underline';}
				
			if(gB == 1 || gB == 3) {x.style.cursor = 'hand';}
			if(gB == 2 || gB == 4) {x.style.cursor = 'pointer';}
		}
		else
		{
			x.style.textDecoration = 'none';
			x.style.cursor = 'none';
		}
	}
		
	function systemMouseOver(x, stav, under, ID, current)
	{
		if(stav)
		{
			if(under)	{x.style.textDecoration = 'underline';}
				
			eval("SYS_" + ID + ".style.fontWeight	=	'bold';");
			eval("SYS_" + ID + ".style.color		=	'#FFFFFF';");
				
			if(gB == 1 || gB == 3) {x.style.cursor = 'hand';}
			if(gB == 2 || gB == 4) {x.style.cursor = 'pointer';}
		}
		else
		{
			if(ID	!=	current)
			{
				eval("SYS_" + ID + ".style.fontWeight	=	'normal';");
				eval("SYS_" + ID + ".style.color		=	'#E3F1FF';");
			}
			x.style.textDecoration = 'none';
			x.style.cursor = 'none';
		}		
	}		
		
	function isEnter()
	{
		if(window.event.keyCode	==	13)
		{
			SEARCHSTRING	=	document.FORMIX.SEARCHSTRING.value;
			
			if(SEARCHSTRING.length	>	3)
			{
				document.FORMIX.YESSEARCH.value	=	1;
				document.FORMIX.submit();
			}
		}
	}
		
	function setOtherDomainView(param)
	{
		document.FORMIX.YESDOMAINVIEW.value	=	param;
		document.FORMIX.submit();		
	}
		
	function ownerDomain( domain )		
	{
		pointer	=	domain.indexOf(".");
		domain	=	domain.substr(0,pointer);
		
		document.FORMIX.BUFFERDOMAIN.value	=	domain;
		document.FORMIX.YESDOMAINVIEW.value	=	1;
		document.FORMIX.submit();
	}
		
	function setDomainView()
	{
		DOMAIN	=	document.FORMIX.DOMAIN.value;
			
		if(DOMAIN.length	>	1)
		{
			document.FORMIX.YESDOMAINVIEW.value	=	1;
			document.FORMIX.BUFFERDOMAIN.value	=	DOMAIN;
			document.FORMIX.submit();
		}
	}
		
	function pressEnter(param)
	{
		if(window.event.keyCode	==	13)
		{
			if(param	==	1)	{setSearch();}
			if(param	==	2)	{setDomainView();}
		}
	}
		
	function setSearch()
	{
			
		SEARCHSTRING	=	document.FORMIX.SEARCHSTRING.value;
			
		if(SEARCHSTRING.length	>	3)
		{
			document.FORMIX.YESDOMAINVIEW.value	=	0;
			document.FORMIX.BUFFERDOMAIN.value	=	'';
			document.FORMIX.YESSEARCH.value	=	1;
			document.FORMIX.submit();
		}
	}
	
	function callUp(x, y, z, s, from)
	{
		window.location.href = "ABNet.php?x=" + x + "&y=" + y + "&z=" + z + "&s=" + s + "&from=" + from + "#UP";
	}

	function callSiteFollowPlus(x, y, z, s, from, _class)
	{
	
		classParam	=	"";
		if(_class	>	0)	{classParam	=	"&class=1";}
	
		document.FORMIX.YESDOMAINVIEW.value	=	0;
		document.FORMIX.BUFFERDOMAIN.value	=	'';
		window.location.href = "ABNet.php?x=" + x + "&y=" + y + "&z=" + z + "&s=" + s + "&from=" + from + classParam;
	}	
	
	
	function callSiteFollow(x, y, z, s, from)
	{
		document.FORMIX.YESDOMAINVIEW.value	=	0;
		document.FORMIX.BUFFERDOMAIN.value	=	'';
		window.location.href = "ABNet.php?x=" + x + "&y=" + y + "&z=" + z + "&s=" + s + "&from=" + from;
	}
		
	function openMainPage(language)
	{
		document.FORMIX.SETLANGUAGE.value = language;
		document.FORMIX.submit();
	}
		
	function stdMenuOver( x, stav, under)
	{
		if(stav)
		{
			if(under)	{x.style.textDecoration = 'underline';}
				
			if(gB == 1 || gB == 3) {x.style.cursor = 'hand';}
			if(gB == 2 || gB == 4) {x.style.cursor = 'pointer';}
		}
		else
		{
			x.style.textDecoration = 'none';
			x.style.cursor = 'none';
		}
	}		
		
	function openABNET()
	{
		var path;
		path = "http://www.abnet.sk"
		parametre = "top=0,left=0,height=" + window.screen.height + ",width=" + window.screen.width + ",scrollbars=yes,status=yes,toolbar=yes,menubar=yes,location=yes,resizable=yes";
		window.open(path,"ABNET",parametre,true);	
	}
		
	function callWeb( web )
	{
		var path;
		path = web;
		parametre = "top=10,left=10,height=700,width=900,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,resizable=yes";
		window.open(path,"EXTERNALWEB",parametre,true);
	}

	function otherCountry( webPath, newWin )
	{
		if(newWin == 1)
		{
			path = webPath;
			parametre = "top=0,left=0,height=" + window.screen.height + ",width=" + window.screen.width + ",scrollbars=yes,status=yes,toolbar=yes,menubar=yes,location=yes,resizable=yes";
			window.open(path,"OTHERCOUNTRY",parametre,true);				
		}
		else
		{
			window.location.href	=	webPath;
		}
	}
	
	function stdMouseOverOther( x, over )
	{
		if(over)
		{
			if(gB == 1 || gB == 3) {x.style.cursor = 'hand';}
			if(gB == 2 || gB == 4) {x.style.cursor = 'pointer';}
		}
		else
		{
			x.style.cursor = 'none';
		}
	}

	function stdMouseOverFollow( x, over, under, current, color )
	{
		if(over)
		{
			if(under)	{x.style.textDecoration = 'underline';}
					
			if(gB == 1 || gB == 3) {x.style.cursor = 'hand';}
			if(gB == 2 || gB == 4) {x.style.cursor = 'pointer';}
				
			x.style.color	=	current;
		}
		else
		{
			x.style.textDecoration = 'none';
			x.style.cursor = 'none';
				
			x.style.color	=	color;
		}
	}
	
	function submit()
	{
		document.FORMIX.submit();
	}
	
	function test()
	{
		alert("JAVA Script is OK");
	}
