var km=new Array('0,0 - 5,0','5,1 - 10,0','10,1 - 15,0','15,1 - 20,0','20,1 - 25,0','25,1 - 30,0','30,1 - 35,0','35,1 - 40,0','40,1 - 45,0','45,1 - 50,0','50,1 - 60,0','60,1 - 70,0','70,1 - 80,0','80,1 - 90,0','90,1 - 100,0','100,1 - 120,0','120,1 - 140,0','140,1 - 160,0','160,1 - 180,0','180,1 - 200,0','200,1 - 220,0','220,1 - 240,0','240,1 - 260,0','260,1 - 280,0','280,1 - 300,0','300,1 - 350,0','350,1 - 400,0','400,1 - 450,0','450,1 - 500,0','500 felett');

var hkegy=new Array();
/* 100% új */
hkegy[1]=new Array('155','245','305','365','460','550','640','735','825','915','1100','1280','1470','1650','1830','2160','2480','2790','3080','3360','3630','3890','4130','4360','4580','5080','5500','5840','6110','6300');
/* 50%-os új */
hkegy[2]=new Array('80','125','155','185','230','275','320','370','415','460','550','640','735','825','915','1080','1240','1400','1540','1680','1820','1950','2070','2180','2290','2540','2750','2920','3060','3150');
/* 90%-os új */
hkegy[3]=new Array('15','25','30','35','45','55','65','75','85','90','110','130','145','165','185','215','250','280','310','335','365','390','415','435','460','510','550','585','610','630');

var kmb=new Array('0,0 - 5,0','5,1 - 10,0','10,1 - 15,0','15,1 - 20,0','20,1 - 25,0','25,1 - 30,0','30,1 - 35,0','35,1 - 40,0','40,1 - 45,0','45,1 - 50,0','50,1 - 60,0','60,1 - 70,0','70,1 - 80,0','80,1 - 90,0','90,1 - 100,0','100,1 - 120,0','120,1 - 140,0','140,1 - 150,0');

var hkber=new Array();
/* dolgozó havi */
hkber[0]=new Array('5940','9380','11700','14000','17600','21100','24500','28200','31600','35000','42100','49000','56300','63200','70100','82700','95000','106900','118000','128700','139000','149000','158200','167000','175400','194600','210700','223700','234000','241300');
/* dolgozó félhavi */
hkber[1]=new Array('2970','4690','5840','6990','8810','10500','12300','14100','15800','17500','21100','24500','28200','31600','35000','41400','47500','53400','59000','64300','69500','74500','79100','83500','87700','97300','105300','111800','117000','120600');
/* 67,5% havi */
hkber[2]=new Array('595','940','1170','1400','1760','2110','2450','2820','3160','3500','4210','4900','5630','6320','7010','8270','9500','10700','11800','12900','13900','14900','15800','16700','17500','19500','21100','22400','23400','24100');
/* 90% havi */
hkber[3]=new Array('295','470','585','700','880','1060','1230','1410','1580','1750','2110','2450','2820','3160','3510','4140','4750','5350','5900','6440','6950','7450','7910','8350','8770','9730','10500','11200','11700','12100');

var hkuti=new Array('155','195','270');

function hkpot(){
	hkpot=new Array("4000","6000","9000");
	for(i=0;i<3;i++){
		t=document.createTextNode(hkpot[i]+" ");
		adat=document.getElementById("hkpot"+i);
		adat.className="pj";
		adat.appendChild(t);
	}
}
function hkpotuj(){
	hkpot=new Array("500","8000","12000","1300");
	for(i=1;i<4;i++){
		t=document.createTextNode(hkpot[i]+" ");
		adat=document.getElementById("hkpot"+i);
		adat.className="pj";
		adat.appendChild(t);
	}
}

function hkvdegy(){
	d=document.getElementById("hkdij");
	var x=0;
	var y=0;
	var z=0;
	for(i=0;i<km.length;i++){
		div=document.createElement("div");
		div.setAttribute("id","dh0"+i);
		d.appendChild(div);
		di=document.getElementById("dh0"+i);
		span=document.createElement("span");
		span.setAttribute("id","kh0"+i);
		span.className="kmtav";
		di.appendChild(span);
		t=document.createTextNode(km[i]);
		p=document.getElementById("kh0"+i);
		p.appendChild(t);
		for(j=1;j<hkegy.length;j++){
			di=document.getElementById("dh0"+i);
			span=document.createElement("span");
			span.setAttribute("id","h"+j+i);
			span.className="uti0";
			di.appendChild(span);
			t=document.createTextNode(" "+hkegy[j][i]);
			p=document.getElementById("h"+j+i);
			p.appendChild(t);
		}
		di=document.getElementById("dh0"+i);
		span=document.createElement("span");
		span.setAttribute("id","hu"+i);	
		span.className="uti0";
		di.appendChild(span);
		t=document.createTextNode(" "+hkuti[x]);
		p=document.getElementById("hu"+i);
		p.appendChild(t);
		y++;
		if(y==10 || y==15){
			x++;
		}
		divcl=document.createElement("div");
		divcl.className="clleft";
		di.appendChild(divcl);
	}
}

function hkvdber(){
	d=document.getElementById("hkdij");
	var x=0;
	var y=0;
	var z=0;		
	for(i=0;i<km.length;i++){
		div=document.createElement("div");
		div.setAttribute("id","dh0"+i);
		d.appendChild(div);
		di=document.getElementById("dh0"+i);
		span=document.createElement("span");
		span.setAttribute("id","kh0"+i);
		span.className="kmtav";
		di.appendChild(span);
		t=document.createTextNode(km[i]);
		p=document.getElementById("kh0"+i);
		p.appendChild(t);
		for(j=0;j<hkber.length;j++){
			di=document.getElementById("dh0"+i);
			span=document.createElement("span");
			span.setAttribute("id","h"+j+i);	
			span.className="uti0";
			di.appendChild(span);
			t=document.createTextNode(" "+hkber[j][i]);
			p=document.getElementById("h"+j+i);
			p.appendChild(t);
		}
		/*di=document.getElementById("dh0"+i);
		span=document.createElement("span");
		span.setAttribute("id","hu"+i);	
		span.className="uti0";
		di.appendChild(span);
		t=document.createTextNode(" "+hkuti[x]);
		p=document.getElementById("hu"+i);
		p.appendChild(t);
		y++;
		if(y==10 || y==15){
			x++;
		}
		*/divcl=document.createElement("div");
		divcl.className="clleft";
		di.appendChild(divcl);
	}
}
