var nn4 = (document.layers) ? true : false
var ie = (document.all) ? true : false
var dom = (document.getElementById && !document.all) ? true : false

function browser(id){
  if(nn4) {
  path = document.layers[id]
  }
  else if(ie) {
  path = document.all[id]
  } 
  else {
  path = document.getElementById(id)
  }
return path  //return the path to the css layer depending on which browser is looking at the page
}


function go(box) {
	if(box != "" )
	top.location = "../"+box;
	}

function checkvalues(c) {
if (c.value==""){ alert("Nem adott meg kulcsszót!");return false;} else return true;
}
function submitForm(c) {
if (document.forms[0].kwd.value==""){ alert("Nem adott meg kulcsszót!");return false;} else document.forms[0].submit();
}

function windowResized(){
var xpos=document.body.clientWidth/2-70;
var layer = browser('quicklinks');
   if(nn4){
   layer.left =0;
   }
   else {
   layer.style.left = xpos+"px";
   }
}

window.onresize=windowResized;