//presun na URL
function h4t3k() {
self.location.href="/new/index.php";
}
function o1() {
self.location.href="?web=all";
}
//prepnuti stylu
function Swap(obj, new_style) {
    obj.className = new_style;
}

//otevre odkaz v novem okne (misto _blank, ktery je v HTML 4.01 strict zapovezen)
function externalLinks() { 
 if (!document.getElementsByTagName) return; 
 var anchors = document.getElementsByTagName("a"); 
 for (var i=0; i<anchors.length; i++) { 
   var anchor = anchors[i]; 
   if (anchor.getAttribute("href") && 
       anchor.getAttribute("rel") == "external") 
     anchor.target = "_blank"; 
 } 
} 

//otevre nove - vycentrovane okno
function PopUp(theURL, winName, wi, he) 
{
   var x=(screen.width-wi)/2;
   var y=(screen.height-he)/2;
   winpa='height='+he+',width='+wi+',top='+y+',left='+x+'scrollbars=no, toolbar=no, resizable=no, menubar=yes';
   win=window.open(theURL, winName, winpa);

verze = parseInt(navigator.appVersion);
  if(verze >= 4) {
   if (typeof(win.document) == "object") win.focus();
  }
}

//natahne browser na fullscreen 
function fullScreen() 
{
   window.resizeTo(screen.width, screen.height);
   window.moveTo(0,0);
}

//zmena velikosti okna 
function windowResize() 
{
   window.resizeTo(380, 190);
}



//zruseni framu
function noframes() {
	if (top.location != self.location) {
		top.location.href = self.location.href;
	}
}


// kontrola vyplneni logovaciho formulare
function logformcontrol(){
	Ctrl=document.forms["logform"];

	if(Ctrl.usr.value>"") {
		if(Ctrl.psw.value>"") {
				return true;
			} else {
				Message="bez hesla to nepůjde ;-)";
				Field=Ctrl.psw;
			}
			
	} else {
		Message="není zadáno jméno uživatele";
		Field=Ctrl.usr;
	}
	alert(Message);
	Field.focus();
	if(Field.type=="text"){
		Field.select();
	}
	return false;
}




