function onlyNumbers(mibe){
	x=mibe.value;
	ki="";
		for(i=0;i<x.length;i++){
			if (x.substr(i,1)>='0' && x.substr(i,1)<='9' || x.substr(i,1)=="." || x.substr(i,1)==","){
				ki+=x.substr(i,1);
			 }
		}
	mibe.value=ki;
}

function ezresek(szam,szep){
	mit0=szep;
	if(mit0==".") mit0="[.]"; //mivel a sima pontnak van jelentőssége
	mit=new RegExp(mit0,"ig")
	szam=szam.replace(mit,"");
	
	n = szam.length;
	uj = szam.substr(0, n%3);
	for(i=n%3; i<n; i+=3) uj = uj+szep+szam.substr(i,3);
	
	if(uj.substr(0, 1)==szep){//Leszedjük a legelső karakter, ha az egy szeparátor
		n = uj.length;
		uj=uj.substr(1, n);
	}
	return uj;
}

//Képernyő dimenziói Pl: Screen.width() visszaadja a szélességet
var Screen = {
  width: function() {
    return self.innerWidth || (document.documentElement.clientWidth || document.body.clientWidth);
  },

  height: function() {
    return self.innerHeight || (document.documentElement.clientHeight || document.body.clientHeight);
  }
};

function getPageXY(){
	if (window.innerHeight && window.scrollMaxY) {// Firefox
		yWithScroll = window.innerHeight + window.scrollMaxY;
		xWithScroll = window.innerWidth + window.scrollMaxX;
	} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
		yWithScroll = document.body.scrollHeight;
		xWithScroll = document.body.scrollWidth;
	} else { // works in Explorer 6 Strict, Mozilla (not FF) and Safari
		yWithScroll = document.body.offsetHeight;
		xWithScroll = document.body.offsetWidth;
  	}
	arrayPageSizeWithScroll = new Array(xWithScroll,yWithScroll);
	return arrayPageSizeWithScroll;
}
