	function openpage(){
  	document.location='index.php?modul_id=1';
  }
  

	function my_openwindow(page, name, w, h, scroll) {
	  var winl = (screen.width - w) /2 ;
	  var wint = (screen.height - h) /2;
	  winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
	  win = window.open(page, name, winprops)
	  if (parseInt(navigator.appVersion) >= 4){
	    win.window.focus();
	  };
	};







var theObj="";

function toolTip(text,me) {
  theObj=me;
  theObj.onmousemove=updatePos;

  document.getElementById('toolTipBox').style.top  = 1;
  document.getElementById('toolTipBox').style.left = 1;

  document.getElementById('toolTipBox').innerHTML=text;
  document.getElementById('toolTipBox').style.display="block";
  window.onscroll=updatePos;
  updatePos;

}

function updatePos() {
  var ev=arguments[0]?arguments[0]:event;
  var x=ev.clientX;
  var y=ev.clientY;
  diffX=-100;
  diffY=10;
  document.getElementById('toolTipBox').style.top  = y+4+diffY+document.body.scrollTop+ "px";
  document.getElementById('toolTipBox').style.left = x+4+diffX+document.body.scrollLeft+"px";
  theObj.onmouseout=hideMe;
}



function hideMe() {
  document.getElementById('toolTipBox').style.display="none";
}



function check_att(fld){
	var str = fld.value;
  if (str.search(/.doc/) == -1 && str.search(/.xls/) == -1 && str.search(/.txt/) == -1 && str.search(/.pdf/) == -1 && str.length != 0){
  	alert("Csak .doc, .xls, .pdf és .txt fájlokat tölthet fel!");
  	return(false);
  }
  else
	if (str.length != 0){
  	alert("Az adatok továbbítása a feltöltött fájl méretétől függően akár több percig is eltarthat!");
  	return(true);
  }
  else{
  	return(true);
  }
}
