﻿/* Képfeltöltés közbeni adatmentés */
function shortSzamlalo() {
	len = document.getElementById("short").value.length;
	document.getElementById("shortSzam").innerHTML=len;
	if(len>42) {
		alert("A cím hossza nem haladhatja meg a 42 karaktert!");
		shr = document.getElementById("short").value;
		shr = shr.substring(0,42);
		document.getElementById("short").value = shr;
	}
}
function longSzamlalo() {
	len = document.getElementById("long").value.length;
	document.getElementById("longSzam").innerHTML=len;
	if(len>110) {
		alert("A szöveg hossza nem haladhatja meg a 110 karaktert!");
		lng = document.getElementById("long").value;
		lng = lng.substring(0,110);
		document.getElementById("long").value = lng;
	}
} 
function saveDatas() {
	document.cookie= "qshort = "+document.getElementById("short").value;
	document.cookie= "qlong = "+document.getElementById("long").value;
	document.cookie= "qlink = "+document.getElementById("link").value;
	document.cookie= "qteln = "+document.getElementById("teln").value;
	
	document.cookie= "qtemakor = "+document.getElementById("temakor").value;
	document.cookie= "qorszag = "+document.getElementById("orszag").value;
	document.cookie= "qev = "+document.getElementById("ev").value;
	document.cookie= "qho = "+document.getElementById("ho").value;
	document.cookie= "qnap = "+document.getElementById("nap").value;
}
function restoreDatas() {
	qshort = getCookie("qshort");
	if(qshort!="") {
		document.getElementById("short").value = qshort;
	}
	qlong = getCookie("qlong");
	if(qshort!="") {
		document.getElementById("long").value = qlong;
	}	
	
	qlink = getCookie("qlink");
	if(qlink!="") {
		document.getElementById("link").value = qlink;
	}
	
	qteln = getCookie("qteln");
	if(qteln!="") {
		document.getElementById("teln").value = qteln;
	}	
	
	qtemakor = getCookie("qtemakor");
	if(qtemakor!="") {
		document.getElementById("temakor").value = qtemakor;
	}
	
	qorszag = getCookie("qorszag");
	if(qorszag!="") {
		document.getElementById("orszag").value = qorszag;
	}
	
	qev = getCookie("qev");
	if(qev!="") {
		document.getElementById("ev").value = qev;
	}
	
	qho = getCookie("qho");
	if(qho!="") {
		document.getElementById("ho").value = qho;
	}
	
	qnap = getCookie("qnap");
	if(qnap!="") {
		document.getElementById("nap").value = qnap;
	}	
}
function getCookie(c_name)
{
var i,x,y,ARRcookies=document.cookie.split(";");
for (i=0;i<ARRcookies.length;i++)
{
  x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("="));
  y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1);
  x=x.replace(/^\s+|\s+$/g,"");
  if (x==c_name)
    {
    return unescape(y);
    }
  }
}
function getBex() {
	alert("Bigebcapix");
	alert(document.getElementById("short").value);
}
/* Vége Képfeltöltés közbeni adatmentés */
/* Kis reklámok */
function advertTipus() {
	var ajtipus  = document.getElementById("ajtipus").value;
	if(ajtipus!=null && ajtipus!="") {
		document.location='advertspage.php?ajtipus='+ajtipus;
	}
}
function advertKereso() {
	var ajkereso = document.getElementById("ajkereso").value;
	if(ajkereso!=null && ajkereso!="") {
		document.location='advertspage.php?ajkereso='+ajkereso;
	}
}
function advSubmitEnter(myfield,e) {
var keycode;
if (window.event) keycode = window.event.keyCode;
else if (e) keycode = e.which;
else return true;
if (keycode == 13)   {
   advertKereso();
   return false;
   }
}
function advertRegis() {
	var cegnev =document.getElementById("cegnev");
 	var orszag =document.getElementById("orszag");
	var nyelv =document.getElementById("nyelv");
	var varos =document.getElementById("varos");
	var cim =document.getElementById("cim");
	var nev =document.getElementById("nev");
	var telefon =document.getElementById("telefon");
	var email =document.getElementById("email");
	var felhasznalonev =document.getElementById("felhasznalonev");
	var advert =document.getElementById("advert"); 	
	var hibak = ""
	if(cegnev.value=="") { hibak = hibak+"Kérem a cégnevet kitölteni!\n";} 
	if(orszag.value=="0") { hibak = hibak+"Kérem az országot kiválasztani!\n";} 
	if(nyelv.value=="0") { hibak = hibak+"Kérem a nyelvet kiválasztani!\n";} 
	if(varos.value=="") { hibak = hibak+"Kérem a helységet kitölteni!\n";} 
	if(cim.value=="") { hibak = hibak+"Kérem a címet kitölteni!\n";} 
	if(nev.value=="") { hibak = hibak+"Kérem a kapcsolattartó nevét kitölteni!\n";} 
	if(telefon.value=="") { hibak = hibak+"Kérem a kapcsolattartó telefonszámát kitölteni!\n";} 
	if(email.value=="") { hibak = hibak+"Kérem a kapcsolattartó emailcímét kitölteni!\n";} 
	if(felhasznalonev.value=="") { hibak = hibak+"Kérem a felhaszbalónevet kitölteni!\n";}
    if(hibak!="") {
		alert(hibak);
	} else {
	var dokloc = "../cardemoworld/admin/ajanlatRegment.php";
		dokloc+="?cegnev='"+cegnev.value+"'";
		dokloc+="&orszag='"+orszag.value+"'";
		dokloc+="&nyelv='"+nyelv.value+"'";
		dokloc+="&varos='"+varos.value+"'";
		dokloc+="&cim='"+cim.value+"'";
		dokloc+="&nev="+nev.value;
		dokloc+="&telefon='"+telefon.value+"'";
		dokloc+="&email="+email.value;
		dokloc+="&felhasznalonev='"+felhasznalonev.value+"'";
		dokloc+="&advert="+advert.value;	
	document.location = dokloc;	
	}
}
function goAdvert(url, ajanlat) {
	/* A klick számolásához átvezetem az ajanlatClickCounter.php -n, ami átírányítja a megfelelő oldalra */
	dest = "../cardemoworld/admin/ajanlatClickCounter.php";
	dest+= "?finurl='"+url+"'";
	dest+= "&ajanlat="+ajanlat;
	window.open(dest);
}
function goAdvertRest(url, ajanlat) {
	/* A klick számolásához átvezetem az ajanlatClickCounter.php -n, ami átírányítja a megfelelő oldalra */
	dest = "../../../../cardemoworld/admin/ajanlatClickCounter.php";
	dest+= "?finurl='"+url+"'";
	dest+= "&ajanlat="+ajanlat;
	//alert("Bigzi:"+dest);	
	window.open(dest);
}
function setTemakor(tmk) {
	var temak = document.getElementById('temakor');
	for(i=0; i<=temak.length; i++) {
		if(temak.options[i].value==tmk) {
			temak.selectedIndex=i;
			break;
		}
	}
}
function setCountry(xCtr) {
	for(i=0;i<document.getElementById('orszag').length;i++) { 
		if(document.getElementById('orszag').options[i].text==xCtr) { 
			document.getElementById('orszag').selectedIndex=i; break;
		}
	}	
}
function setEv(xEv) {
	for(i=0;i<document.getElementById('ev').length;i++) { 
		if(document.getElementById('ev').options[i].text==xEv) { 
			document.getElementById('ev').selectedIndex=i; break;
		}
	}	
}
function setHo(xHo) {
	for(i=0;i<document.getElementById('ho').length;i++) { 
		if(document.getElementById('ho').options[i].value==xHo) { 
			document.getElementById('ho').selectedIndex=i; break;
		}
	}	
}
function setNap(xNap) {
	for(i=0;i<document.getElementById('nap').length;i++) { 
		if(document.getElementById('nap').options[i].value==xNap) {  
			document.getElementById('nap').selectedIndex=i; break;
		}
	}	
}
function setHatlan(xHatlan) {
	document.getElementById('hatlan').checked=xHatlan;
}
function advertMentes() {
	var aid = document.getElementById("aid").value;	
	var vshort = document.getElementById("short").value;
	var vlong = document.getElementById("long").value;
	var link = document.getElementById("link").value;
	var teln = document.getElementById("teln").value;
	var temakor = document.getElementById("temakor").value;
	var orszag = document.getElementById("orszag").value;
	var ev = document.getElementById("ev").value;
	var ho = document.getElementById("ho").value;
	var nap = document.getElementById("nap").value;		
	var imgfn = document.getElementById("imgfn").value;
	var hatlan = document.getElementById("hatlan").checked;
	var hibak = "";
	if(aid==null || aid=="") { hibak += "Ismeretlen hiba. Próbáld mégegyszer!\n"; }
	if(vshort==null || vshort=="" ) { hibak += "A címet ki kell tölteni!\n"; }
	if(vlong==null || vlong=="" ) { hibak += "A reklám szövegét ki kell tölteni!\n"; }
	if(teln==null || teln=="") {
		if(link==null || link=="" ) { hibak += "A linket ki kell tölteni!\n"; }
		if(link.indexOf("http://")<0) { hibak += "A link http:// -vel kell kezdődjön!\n"; } 		
	}
	if(temakor==0 ) { hibak += "A témakört ki kell választani!\n"; }
	if(orszag==0 ) { hibak += "Az országot ki kell választani!\n"; }
	if(ev==0 && hatlan==false) { hibak += "Az évet ki kell választani!\n"; }
	if(ho==0 && hatlan==false ) { hibak += "A hónapot ki kell választani!\n"; }
	if(nap==0 && hatlan==false ) { hibak += "A napot ki kell választani!\n"; }
	if(imgfn==null || imgfn=="" ) { hibak += "A képet fel kell tölteni!\n"; }
	if(trim(vshort).length>42) { hibak += "A cím legtöbb 42 karaktert tartalmazhat!\n"; }
	if(trim(vlong).length>110) { hibak += "A szöveg legtöbb 110 karaktert tartalmazhat!\n"; }
	if(trim(teln).length>22) { hibak += "A telefonszám legtöbb 22 karaktert tartalmazhat!\n"; }
	/* A linkben, short ée long szövegekben minden &-t át kell írni %26-tá */
	vshort = vshort.replace(/&/g,'%26');
	vlong = vlong.replace(/&/g,'%26');
	link = link.replace(/&/g,'%26');
	/* Vége link átírása */
	if(hibak!="") {
		alert(hibak);
	} else {
		var dokloc = "../cardemoworld/admin/ajanlatment.php";
			dokloc+="?aid="+aid;
			dokloc+="&short='"+vshort+"'";
			dokloc+="&long='"+vlong+"'";
			dokloc+="&link='"+link+"'";
			dokloc+="&teln='"+teln+"'";
			dokloc+="&temakor='"+temakor+"'";
			dokloc+="&orszag='"+orszag+"'";
			dokloc+="&ev="+ev;
			dokloc+="&nap="+nap;
			dokloc+="&ho="+ho;	
			dokloc+="&imgfn='"+imgfn+"'";	
			dokloc+="&hatlan='"+hatlan+"'";
			//alert(dokloc);		
		document.location = dokloc;
	}
}
/* Buborékok */
function buborek(melyik, mit) {
	var buborek = document.getElementById("buborek");
	var buborekszoveg = document.getElementById("buborekszoveg");
	if(melyik=="fuel") {
		buborek.style.marginTop=755+60-65;
		buborek.style.marginLeft=614+25;
		buborekszoveg.innerHTML = "&nbsp;&nbsp;&nbsp;P: Benzin<br/>&nbsp;&nbsp;&nbsp;D: Gázolaj<br/>&nbsp;&nbsp;&nbsp;H: Hidrogén<br/>&nbsp;&nbsp;&nbsp;G: Földgáz<br/>&nbsp;&nbsp;&nbsp;E: Elektromos áram<br/>&nbsp;&nbsp;&nbsp;B: BioEtanol";
	}
	if(melyik=="cylinders") {
		buborek.style.marginTop=773+60-65;
		buborek.style.marginLeft=614+25;	
		buborekszoveg.innerHTML = "&nbsp;&nbsp;&nbsp;L: Soros elrendezésű hengerek<br/>&nbsp;&nbsp;&nbsp;V: V elrendezésű hengerek<br/>&nbsp;&nbsp;&nbsp;W: W elrendezésű hengerek<br/>&nbsp;&nbsp;&nbsp;WA: Wankel (Rotor)<br/>&nbsp;&nbsp;&nbsp;B: Boxer";
	}
	if(melyik=="gearbox") {
		buborek.style.marginTop=871+60-65;
		buborek.style.marginLeft=614+25;	
		buborekszoveg.innerHTML = "&nbsp;&nbsp;&nbsp;M: Manuális<br/>&nbsp;&nbsp;&nbsp;A: Automata";
	}	
	if(melyik=="drivenwheels") {
		buborek.style.marginTop=889+60-65;
		buborek.style.marginLeft=614+25;	
		buborekszoveg.innerHTML = "&nbsp;&nbsp;&nbsp;F: Elsőkerék meghajtás<br/>&nbsp;&nbsp;&nbsp;R: Hátsókerék meghajtás<br/>&nbsp;&nbsp;&nbsp;A: Négykerék meghajtás";
	}
	if(melyik=="topspeed") {
		buborek.style.marginTop=945+60-65;
		buborek.style.marginLeft=614+25;	
		buborekszoveg.innerHTML = "&nbsp;&nbsp;&nbsp;*: Korlátozva";
	}	
	if(melyik=="datainformative") {
		buborek.style.marginTop=1005+60-65;
		buborek.style.marginLeft=614+25;			
		//buborek.style.marginLeft=644;	
		buborekszoveg.innerHTML = "&nbsp;&nbsp;&nbsp;Az adatok tájékoztató jellegűek!  A kivitelek nem minden országban elérhetők! Naprakész információt kérjen márkakereskedőtől, vagy a vezérképviselettől.";
	}
	if(melyik=="ingarage") {
		buborek.style.marginTop=1070+60-65;
		buborek.style.marginLeft=614+25;	
		buborekszoveg.innerHTML = "&nbsp;&nbsp;&nbsp;Ezzel a gombbal berakhatja a modellt a virtuális garázsába, ezáltal ott gyűjtheti össze a kedvenc modelljeit. Megtekintésükhöz használja a Menü Garázsom gombját. Csak regisztrált felhasználóknak tudjuk tárolni a garázs tartalmát! ";
    }	   
	if(melyik=="linksend") {
		buborek.style.marginTop=1220+60-60;
		buborek.style.marginLeft=693+5;	
		buborekszoveg.innerHTML = "&nbsp;&nbsp;&nbsp;Más internetes oldalakon található cikkeket ajánlhat, ha kimásolja annak URL címét (böngésző felső sávban megjelenő sor) és beilleszti az alábbi helyre. Kérjük csak releváns (kapcsolódó) cikket ajánljon!  ";
    }	   	
	if(mit!="on") {
		buborek.style.display="none";
	} else {
		buborek.style.display="";
		buborek.style.color="black";
		buborekszoveg.style.color="black";
	}
}
/* Vége buborékok */
/* What is Good For*/
function toggleWhatIsFor() {
	var whatgoodfor = document.getElementById('whatgoodfor');	
	if(whatgoodfor.style.display == "none") {
		whatgoodfor.style.display = ""
	} else {
		whatgoodfor.style.display = "none"
	}
}
/* Modellenként rövid/hosszú szöveg*/
function SwitchRovidHosszu() {
	//alert('Bubimex');
	var rovid = document.getElementById("rovid");
	var hosszu = document.getElementById("hosszu");
	var tovabb = document.getElementById("tovabb");
	if(rovid.style.display=="") {
		rovid.style.display="none";
		hosszu.style.display="";
		tovabb.innerHTML = "Vissza >>";
	} else {
		rovid.style.display="";
		hosszu.style.display="none";
		tovabb.innerHTML = "Tovább >>";	
	}
}
/* Header menüpontok */
function keresesHead() {
	var xtarget = document.getElementById('search');
	if(xtarget.style.display=="none") {
		xtarget.style.display='inline';
	} else {
		xtarget.style.display='none';
	}
}
function nyelvHead() {
	var xtarget = document.getElementById('languageSelector');
	if(xtarget.style.display=="none") {
		xtarget.style.display='inline';
	} else {
		xtarget.style.display='none';
	}	
}
function orszagHead() {
	var xtarget = document.getElementById('countrySelector');
	if(xtarget.style.display=="none") {
		xtarget.style.display='inline';
	} else {
		xtarget.style.display='none';
	}	
}
function belepesHead() {
	var xtarget = document.getElementById('login');
	if(xtarget.style.display=="none") {
		xtarget.style.display='inline';
	} else {
		xtarget.style.display='none';
	}	
}
function regisztracioHead() {
	var xtarget = document.getElementById('registration');
	if(xtarget.style.display=="none") {
		xtarget.style.display='inline';
	} else {
		xtarget.style.display='none';
	}	
}
/* Vége Header menüpontok */
/* Modell-oldal*/
function bckgPic(piki) {
}
function toggleShowAllPics() {
	var tsa = document.getElementById("showAllPics");
	var imgs = document.getElementById("allpicsModell");
	if(tsa.src.indexOf("dawn.png")>=0 ) {
		imgs.style.display="";
		tsa.src="../../../pictures/open.png";
	} else {
		imgs.style.display="none";
		tsa.src="../../../pictures/dawn.png";   
	}
}
function overCsill01() {
	document.getElementById("imgErtK01").src="../../../images/csillag_2.png";
    document.getElementById("imgErtK02").src="../../../images/csillag_1.png";
	document.getElementById("imgErtK03").src="../../../images/csillag_1.png";
	document.getElementById("imgErtK04").src="../../../images/csillag_1.png";
	document.getElementById("imgErtK05").src="../../../images/csillag_1.png";
}
function outCsill01() {
	document.getElementById("imgErtK01").src="../../../images/csillag_1.png";
    document.getElementById("imgErtK02").src="../../../images/csillag_1.png";
	document.getElementById("imgErtK03").src="../../../images/csillag_1.png";
	document.getElementById("imgErtK04").src="../../../images/csillag_1.png";
	document.getElementById("imgErtK05").src="../../../images/csillag_1.png";  
}
function overCsill02() {
	document.getElementById("imgErtK01").src="../../../images/csillag_2.png";
    document.getElementById("imgErtK02").src="../../../images/csillag_2.png";
	document.getElementById("imgErtK03").src="../../../images/csillag_1.png";
	document.getElementById("imgErtK04").src="../../../images/csillag_1.png";
	document.getElementById("imgErtK05").src="../../../images/csillag_1.png";  
}
function outCsill02() {
	document.getElementById("imgErtK01").src="../../../images/csillag_1.png";
    document.getElementById("imgErtK02").src="../../../images/csillag_1.png";
	document.getElementById("imgErtK03").src="../../../images/csillag_1.png";
	document.getElementById("imgErtK04").src="../../../images/csillag_1.png";
	document.getElementById("imgErtK05").src="../../../images/csillag_1.png";  
}
function overCsill03() {
	document.getElementById("imgErtK01").src="../../../images/csillag_2.png";
    document.getElementById("imgErtK02").src="../../../images/csillag_2.png";
	document.getElementById("imgErtK03").src="../../../images/csillag_2.png";
	document.getElementById("imgErtK04").src="../../../images/csillag_1.png";
	document.getElementById("imgErtK05").src="../../../images/csillag_1.png";  
}
function outCsill03() {
	document.getElementById("imgErtK01").src="../../../images/csillag_1.png";
    document.getElementById("imgErtK02").src="../../../images/csillag_1.png";
	document.getElementById("imgErtK03").src="../../../images/csillag_1.png";
	document.getElementById("imgErtK04").src="../../../images/csillag_1.png";
	document.getElementById("imgErtK05").src="../../../images/csillag_1.png";  
}
function overCsill04() {
	document.getElementById("imgErtK01").src="../../../images/csillag_2.png";
    document.getElementById("imgErtK02").src="../../../images/csillag_2.png";
	document.getElementById("imgErtK03").src="../../../images/csillag_2.png";
	document.getElementById("imgErtK04").src="../../../images/csillag_2.png";
	document.getElementById("imgErtK05").src="../../../images/csillag_1.png";  
}
function outCsill04() {
	document.getElementById("imgErtK01").src="../../../images/csillag_1.png";
    document.getElementById("imgErtK02").src="../../../images/csillag_1.png";
	document.getElementById("imgErtK03").src="../../../images/csillag_1.png";
	document.getElementById("imgErtK04").src="../../../images/csillag_1.png";
	document.getElementById("imgErtK05").src="../../../images/csillag_1.png";  
}
function overCsill05() {
	document.getElementById("imgErtK01").src="../../../images/csillag_2.png";
    document.getElementById("imgErtK02").src="../../../images/csillag_2.png";
	document.getElementById("imgErtK03").src="../../../images/csillag_2.png";
	document.getElementById("imgErtK04").src="../../../images/csillag_2.png";
	document.getElementById("imgErtK05").src="../../../images/csillag_2.png";  
}
function outCsill05() {
	document.getElementById("imgErtK01").src="../../../images/csillag_1.png";
    document.getElementById("imgErtK02").src="../../../images/csillag_1.png";
	document.getElementById("imgErtK03").src="../../../images/csillag_1.png";
	document.getElementById("imgErtK04").src="../../../images/csillag_1.png";
	document.getElementById("imgErtK05").src="../../../images/csillag_1.png";  
}
/* Vége modelloldal*/
/* Összehasonlítás oldal*/
/* Első */
function overCsill01_01() {
	document.getElementById("imgErtK0101").src="images/csillag_2.png";
    document.getElementById("imgErtK0201").src="images/csillag_1.png";
	document.getElementById("imgErtK0301").src="images/csillag_1.png";
	document.getElementById("imgErtK0401").src="images/csillag_1.png";
	document.getElementById("imgErtK0501").src="images/csillag_1.png";
}
function outCsill01_01() {
	document.getElementById("imgErtK0101").src="images/csillag_1.png";
    document.getElementById("imgErtK0201").src="images/csillag_1.png";
	document.getElementById("imgErtK0301").src="images/csillag_1.png";
	document.getElementById("imgErtK0401").src="images/csillag_1.png";
	document.getElementById("imgErtK0501").src="images/csillag_1.png";  
}
function overCsill02_01() {
	document.getElementById("imgErtK0101").src="images/csillag_2.png";
    document.getElementById("imgErtK0201").src="images/csillag_2.png";
	document.getElementById("imgErtK0301").src="images/csillag_1.png";
	document.getElementById("imgErtK0401").src="images/csillag_1.png";
	document.getElementById("imgErtK0501").src="images/csillag_1.png";  
}
function outCsill02_01() {
	document.getElementById("imgErtK0101").src="images/csillag_1.png";
    document.getElementById("imgErtK0201").src="images/csillag_1.png";
	document.getElementById("imgErtK0301").src="images/csillag_1.png";
	document.getElementById("imgErtK0401").src="images/csillag_1.png";
	document.getElementById("imgErtK0501").src="images/csillag_1.png";  
}
function overCsill03_01() {
	document.getElementById("imgErtK0101").src="images/csillag_2.png";
    document.getElementById("imgErtK0201").src="images/csillag_2.png";
	document.getElementById("imgErtK0301").src="images/csillag_2.png";
	document.getElementById("imgErtK0401").src="images/csillag_1.png";
	document.getElementById("imgErtK0501").src="images/csillag_1.png";  
}
function outCsill03_01() {
	document.getElementById("imgErtK0101").src="images/csillag_1.png";
    document.getElementById("imgErtK0201").src="images/csillag_1.png";
	document.getElementById("imgErtK0301").src="images/csillag_1.png";
	document.getElementById("imgErtK0401").src="images/csillag_1.png";
	document.getElementById("imgErtK0501").src="images/csillag_1.png";  
}
function overCsill04_01() {
	document.getElementById("imgErtK0101").src="images/csillag_2.png";
    document.getElementById("imgErtK0201").src="images/csillag_2.png";
	document.getElementById("imgErtK0301").src="images/csillag_2.png";
	document.getElementById("imgErtK0401").src="images/csillag_2.png";
	document.getElementById("imgErtK0501").src="images/csillag_1.png";  
}
function outCsill04_01() {
	document.getElementById("imgErtK0101").src="images/csillag_1.png";
    document.getElementById("imgErtK0201").src="images/csillag_1.png";
	document.getElementById("imgErtK0301").src="images/csillag_1.png";
	document.getElementById("imgErtK0401").src="images/csillag_1.png";
	document.getElementById("imgErtK0501").src="images/csillag_1.png";  
}
function overCsill05_01() {
	document.getElementById("imgErtK0101").src="images/csillag_2.png";
    document.getElementById("imgErtK0201").src="images/csillag_2.png";
	document.getElementById("imgErtK0301").src="images/csillag_2.png";
	document.getElementById("imgErtK0401").src="images/csillag_2.png";
	document.getElementById("imgErtK0501").src="images/csillag_2.png";  
}
function outCsill05_01() {
	document.getElementById("imgErtK0101").src="images/csillag_1.png";
    document.getElementById("imgErtK0201").src="images/csillag_1.png";
	document.getElementById("imgErtK0301").src="images/csillag_1.png";
	document.getElementById("imgErtK0401").src="images/csillag_1.png";
	document.getElementById("imgErtK0501").src="images/csillag_1.png";  
}
/* Második */
/**/
function overCsill01_02() {
	document.getElementById("imgErtK0102").src="images/csillag_2.png";
    document.getElementById("imgErtK0202").src="images/csillag_1.png";
	document.getElementById("imgErtK0302").src="images/csillag_1.png";
	document.getElementById("imgErtK0402").src="images/csillag_1.png";
	document.getElementById("imgErtK0502").src="images/csillag_1.png";
}
function outCsill01_02() {
	document.getElementById("imgErtK0102").src="images/csillag_1.png";
    document.getElementById("imgErtK0202").src="images/csillag_1.png";
	document.getElementById("imgErtK0302").src="images/csillag_1.png";
	document.getElementById("imgErtK0402").src="images/csillag_1.png";
	document.getElementById("imgErtK0502").src="images/csillag_1.png";  
}
function overCsill02_02() {
	document.getElementById("imgErtK0102").src="images/csillag_2.png";
    document.getElementById("imgErtK0202").src="images/csillag_2.png";
	document.getElementById("imgErtK0302").src="images/csillag_1.png";
	document.getElementById("imgErtK0402").src="images/csillag_1.png";
	document.getElementById("imgErtK0502").src="images/csillag_1.png";  
}
function outCsill02_02() {
	document.getElementById("imgErtK0102").src="images/csillag_1.png";
    document.getElementById("imgErtK0202").src="images/csillag_1.png";
	document.getElementById("imgErtK0302").src="images/csillag_1.png";
	document.getElementById("imgErtK0402").src="images/csillag_1.png";
	document.getElementById("imgErtK0502").src="images/csillag_1.png";  
}
function overCsill03_02() {
	document.getElementById("imgErtK0102").src="images/csillag_2.png";
    document.getElementById("imgErtK0202").src="images/csillag_2.png";
	document.getElementById("imgErtK0302").src="images/csillag_2.png";
	document.getElementById("imgErtK0402").src="images/csillag_1.png";
	document.getElementById("imgErtK0502").src="images/csillag_1.png";  
}
function outCsill03_02() {
	document.getElementById("imgErtK0102").src="images/csillag_1.png";
    document.getElementById("imgErtK0202").src="images/csillag_1.png";
	document.getElementById("imgErtK0302").src="images/csillag_1.png";
	document.getElementById("imgErtK0402").src="images/csillag_1.png";
	document.getElementById("imgErtK0502").src="images/csillag_1.png";  
}
function overCsill04_02() {
	document.getElementById("imgErtK0102").src="images/csillag_2.png";
    document.getElementById("imgErtK0202").src="images/csillag_2.png";
	document.getElementById("imgErtK0302").src="images/csillag_2.png";
	document.getElementById("imgErtK0402").src="images/csillag_2.png";
	document.getElementById("imgErtK0502").src="images/csillag_1.png";  
}
function outCsill04_02() {
	document.getElementById("imgErtK0102").src="images/csillag_1.png";
    document.getElementById("imgErtK0202").src="images/csillag_1.png";
	document.getElementById("imgErtK0302").src="images/csillag_1.png";
	document.getElementById("imgErtK0402").src="images/csillag_1.png";
	document.getElementById("imgErtK0502").src="images/csillag_1.png";  
}
function overCsill05_02() {
	document.getElementById("imgErtK0102").src="images/csillag_2.png";
    document.getElementById("imgErtK0202").src="images/csillag_2.png";
	document.getElementById("imgErtK0302").src="images/csillag_2.png";
	document.getElementById("imgErtK0402").src="images/csillag_2.png";
	document.getElementById("imgErtK0502").src="images/csillag_2.png";  
}
function outCsill05_02() {
	document.getElementById("imgErtK0102").src="images/csillag_1.png";
    document.getElementById("imgErtK0202").src="images/csillag_1.png";
	document.getElementById("imgErtK0302").src="images/csillag_1.png";
	document.getElementById("imgErtK0402").src="images/csillag_1.png";
	document.getElementById("imgErtK0502").src="images/csillag_1.png";  
}
/**/
/* Harmadik */
/**/
function overCsill01_03() {
	document.getElementById("imgErtK0103").src="images/csillag_2.png";
    document.getElementById("imgErtK0203").src="images/csillag_1.png";
	document.getElementById("imgErtK0303").src="images/csillag_1.png";
	document.getElementById("imgErtK0403").src="images/csillag_1.png";
	document.getElementById("imgErtK0503").src="images/csillag_1.png";
}
function outCsill01_03() {
	document.getElementById("imgErtK0103").src="images/csillag_1.png";
    document.getElementById("imgErtK0203").src="images/csillag_1.png";
	document.getElementById("imgErtK0303").src="images/csillag_1.png";
	document.getElementById("imgErtK0403").src="images/csillag_1.png";
	document.getElementById("imgErtK0503").src="images/csillag_1.png";  
}
function overCsill02_03() {
	document.getElementById("imgErtK0103").src="images/csillag_2.png";
    document.getElementById("imgErtK0203").src="images/csillag_2.png";
	document.getElementById("imgErtK0303").src="images/csillag_1.png";
	document.getElementById("imgErtK0403").src="images/csillag_1.png";
	document.getElementById("imgErtK0503").src="images/csillag_1.png";  
}
function outCsill02_03() {
	document.getElementById("imgErtK0103").src="images/csillag_1.png";
    document.getElementById("imgErtK0203").src="images/csillag_1.png";
	document.getElementById("imgErtK0303").src="images/csillag_1.png";
	document.getElementById("imgErtK0403").src="images/csillag_1.png";
	document.getElementById("imgErtK0503").src="images/csillag_1.png";  
}
function overCsill03_03() {
	document.getElementById("imgErtK0103").src="images/csillag_2.png";
    document.getElementById("imgErtK0203").src="images/csillag_2.png";
	document.getElementById("imgErtK0303").src="images/csillag_2.png";
	document.getElementById("imgErtK0403").src="images/csillag_1.png";
	document.getElementById("imgErtK0503").src="images/csillag_1.png";  
}
function outCsill03_03() {
	document.getElementById("imgErtK0103").src="images/csillag_1.png";
    document.getElementById("imgErtK0203").src="images/csillag_1.png";
	document.getElementById("imgErtK0303").src="images/csillag_1.png";
	document.getElementById("imgErtK0403").src="images/csillag_1.png";
	document.getElementById("imgErtK0503").src="images/csillag_1.png";  
}
function overCsill04_03() {
	document.getElementById("imgErtK0103").src="images/csillag_2.png";
    document.getElementById("imgErtK0203").src="images/csillag_2.png";
	document.getElementById("imgErtK0303").src="images/csillag_2.png";
	document.getElementById("imgErtK0403").src="images/csillag_2.png";
	document.getElementById("imgErtK0503").src="images/csillag_1.png";  
}
function outCsill04_03() {
	document.getElementById("imgErtK0103").src="images/csillag_1.png";
    document.getElementById("imgErtK0203").src="images/csillag_1.png";
	document.getElementById("imgErtK0303").src="images/csillag_1.png";
	document.getElementById("imgErtK0403").src="images/csillag_1.png";
	document.getElementById("imgErtK0503").src="images/csillag_1.png";  
}
function overCsill05_03() {
	document.getElementById("imgErtK0103").src="images/csillag_2.png";
    document.getElementById("imgErtK0203").src="images/csillag_2.png";
	document.getElementById("imgErtK0303").src="images/csillag_2.png";
	document.getElementById("imgErtK0403").src="images/csillag_2.png";
	document.getElementById("imgErtK0503").src="images/csillag_2.png";  
}
function outCsill05_03() {
	document.getElementById("imgErtK0103").src="images/csillag_1.png";
    document.getElementById("imgErtK0203").src="images/csillag_1.png";
	document.getElementById("imgErtK0303").src="images/csillag_1.png";
	document.getElementById("imgErtK0403").src="images/csillag_1.png";
	document.getElementById("imgErtK0503").src="images/csillag_1.png";  
}
/**/
/* Vége Összehasonlítás oldal*/
function langReload() {
	var urli = './index.php';
	document.location= urli;
}
function goModellGyorsKer() {
	var gyk4 = document.getElementById("gyk4");
	var gyk41 = gyk4.childNodes[0]; 
	var gyk42 = gyk41.childNodes[0];
	var urli = './modell.php/'+gyk42.innerHTML;
	//alert("Meghívás müködni fog, mikor teljesen kész a modell-oldal:"+urli);
	document.location= urli;
}
function garazsba(modell) {
	alert("Ön garázsba küldte a "+modell+" -t");
}
function szavazas(ert, modell) {
    var ertid = document.getElementById("ertid");
	var modid = document.getElementById("modid");
	//alert("Ön szavazott a "+modell+" modellre, értékelés:"+ert);
	ertid.innerHTML = ert;
	modid.innerHTML = modell;
}
function osszBigPic(pic, name) {
  //alert("BiiiigPiiig:"+pic+"--"+name);
  var a = document.getElementById("galeria");
  a.href = pic;
  a.title = name;
  $('a#galeria').trigger('click');
  return true;
}
function goModell(modellid, marka, modell) {
	// Valódi restful meghívások 
  var zmodi = modellid;
  var mrk = marka;
  mrk = mrk.replace(' ','_');
  var mod = modell;
  mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');
  mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');
  document.location='/cardemoworld/modelpage.php/'+zmodi+'/'+mrk+'/'+mod;
}
function openModell(modellid, marka, modell) {
	// Valódi restful meghívások 
  var zmodi = modellid;
  var mrk = marka;
  mrk = mrk.replace(' ','_');
  var mod = modell;
  mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');
  mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');
  window.open('/cardemoworld/modelpage.php/'+zmodi+'/'+mrk+'/'+mod);
}
function goModellOsszes(modellid, marka, modell) {
	// Valódi restful meghívások 
  var zmodi = modellid;
  var mrk = marka;
  mrk = mrk.replace(' ','_');
  var mod = modell;
  mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');
  mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');
  document.location='/cardemoworld/modelpage.php/'+zmodi+'/'+mrk+'/osszes';
}
function goModellNewWin(modellid, marka, modell) {
	// Valódi restful meghívások 
  var zmodi = modellid;
  var mrk = marka;
  mrk = mrk.replace(' ','_');
  var mod = modell;
  mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');
  mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');
  window.open('/cardemoworld/modelpage.php/'+zmodi+'/'+mrk+'/'+mod);
}
function goMarka(markaid, marka, modell) {
	// Valódi restful meghívások 
  var zmodi = markaid;
  var mrk = marka;
  mrk = mrk.replace(' ','_');
  var mod = modell;
  mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');
  mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');
  document.location='/cardemoworld/markpage.php/'+zmodi+'/'+mrk+'/'+mod;
}
function goMarkaOsszes(markaid, marka, modell) {
	// Valódi restful meghívások 
  var zmodi = markaid;
  var mrk = marka;
  mrk = mrk.replace(' ','_');
  var mod = modell;
  mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');
  mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');
  document.location='/cardemoworld/markpage.php/'+zmodi+'/'+mrk+'/osszes';
}
function goFelep(markaid, marka, modell) {
	goBodys(markaid, marka, modell);
}
function goBodys(markaid, marka, modell) {
	// Valódi restful meghívások 
  var zmodi = markaid;
  var mrk = marka;
  mrk = mrk.replace(' ','_');
  var mod = modell;
  mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');
  mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');
  document.location='/cardemoworld/bodyspage.php/'+zmodi+'/'+mrk+'/'+mod;
}
function goBodysOsszes(markaid, marka, modell) {
	// Valódi restful meghívások 
  var zmodi = markaid;
  var mrk = marka;
  mrk = mrk.replace(' ','_');
  var mod = modell;
  mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');
  mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');
  document.location='/cardemoworld/bodyspage.php/'+zmodi+'/'+mrk+'/osszes';
}
function goMeret(markaid, marka, modell) {
	goSizes(markaid, marka, modell);
}
function goSizes(markaid, marka, modell) {
	// Valódi restful meghívások 
  var zmodi = markaid;
  var mrk = marka;
  mrk = mrk.replace(' ','_');
  var mod = modell;
  mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');
  mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');
  document.location='/cardemoworld/sizespage.php/'+zmodi+'/'+mrk+'/'+mod;
}
function goSizesOsszes(markaid, marka, modell) {
	// Valódi restful meghívások 
  var zmodi = markaid;
  var mrk = marka;
  mrk = mrk.replace(' ','_');
  var mod = modell;
  mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');
  mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');mod = mod.replace(' ','_');
  document.location='/cardemoworld/sizespage.php/'+zmodi+'/'+mrk+'/osszes';
}
function goSearchrFilter(searchTxt, filterTxt, dumb) {
	// Valódi restful meghívások 
	document.location='/cardemoworld/searchrpage.php/'+searchTxt+'/'+filterTxt+'/'+dumb;
}
function goSearchr() {
	// Valódi restful meghívások 
	var srctxt = document.getElementById("txtid").value;
	if(srctxt==null || srctxt=="") {
		alert("Kérem, a keresni való szöveget kitölteni!");
	} else {
		document.location='/cardemoworld/searchrpage.php/'+srctxt+'/search/keresett';
	}
}
function goSearchrOsszes() {
	// Valódi restful meghívások 
	var srctxt = document.getElementById("txtid").value;
	if(srctxt==null || srctxt=="") {
		alert("Kérem, a keresni való szöveget kitölteni!");
	} else {
		document.location='/cardemoworld/searchrpage.php/'+srctxt+'/search/osszes';
	}
}
function goFavoritesOsszes() {
	// Valódi restful meghívások 
	var srctxt = document.getElementById("txtid").value;
	document.location='/cardemoworld/favoritespage.php/kedvencek/search/osszes';
}
function goSearchrAr() {
	// Valódi restful meghívások 
	var xtol = document.getElementById("tol");	
	var ytol = xtol.selectedIndex;
	var tol = xtol.options[ytol].text;

	var xig = document.getElementById("ig");
	var yig = xig.selectedIndex;
	var ig = xig.options[yig].text;
	/*
	var xmarka = document.getElementById("marka");
	var ymarka = xmarka.selectedIndex;
	var marka = xmarka.options[ymarka].text;	
	if(marka == "Bármelyik") { marka = "0";}

	var xbody = document.getElementById("body");
	var ybody = xbody.selectedIndex;
	var body = xbody.options[ybody].text;
	if(body == "Bármelyik") { body = "0";}
	
	var xsize = document.getElementById("size");
	var ysize = xsize.selectedIndex;
	var size = xsize.options[ysize].text;
	if(size == "Bármelyik") { size = "0";}

	var xfueltype = document.getElementById("fueltype");
	var yfueltype = xfueltype.selectedIndex;
	var fueltype = xfueltype.options[yfueltype].text;
	if(fueltype == "Bármelyik") { fueltype = "0";}

	var xfueltol = document.getElementById("fueltol");
	var yfueltol = xfueltol.selectedIndex;
	var fueltol = xfueltol.options[yfueltol].text;
	if(fueltol == "Bármelyik") { fueltol = "0";}

	var xfuelig = document.getElementById("fuelig");
	var yfuelig = xfuelig.selectedIndex;
	var fuelig = xfuelig.options[yfuelig].text;
	if(fuelig == "Bármelyik") { fuelig = "0";}

	var xajtok = document.getElementById("ajtok");
	var yajtok = xajtok.selectedIndex;
	var ajtok = xajtok.options[yajtok].text;
	if(ajtok == "Bármelyik") { ajtok = "0";}

	var xulesek = document.getElementById("ulesek");
	var yulesek = xulesek.selectedIndex;
	var ulesek = xulesek.options[yulesek].text;
	if(ulesek == "Bármelyik") { ulesek = "0";}

	var xcsucsseb = document.getElementById("csucsseb");
	var ycsucsseb = xcsucsseb.selectedIndex;
	var csucsseb = xcsucsseb.options[ycsucsseb].text;
	if(csucsseb == "Bármelyik") { csucsseb = "0";}
	*/
	qdest = '/cardemoworld/searchrpage.php/'+tol+'/'+ig+'/arszukites';
	/*
	qdest = qdest + "-"+marka;
	qdest = qdest + "-"+body;
	qdest = qdest + "-"+size;
	qdest = qdest + "-"+fueltype;
	qdest = qdest + "-"+fueltol;
	qdest = qdest + "-"+fuelig;
	qdest = qdest + "-"+ajtok;
	qdest = qdest + "-"+ulesek;
	qdest = qdest + "-"+csucsseb;
	*/
	document.location=qdest;
}
function goSearchrFoot() {
	// Valódi restful meghívások 
	var srctxt = document.getElementById("txtidFoot").value;
	if(srctxt==null || srctxt=="") {
		alert("Kérem, a keresni való szöveget kitölteni!");
	} else {
		document.location='/cardemoworld/searchrpage.php/'+srctxt+'/search/keresett';
	}
}
function goSearchrRest() {
	// Valódi restful meghívások 
	var srctxt = document.getElementById("txtidRest").value;
	if(srctxt==null || srctxt=="") {
		alert("Kérem, a keresni való szöveget kitölteni!");
	} else {
		document.location='/cardemoworld/searchrpage.php/'+srctxt+'/search/keresett';
	}
}
function goSearchrFootRest() {
	// Valódi restful meghívások 
	var srctxt = document.getElementById("txtidFootRest").value;
	if(srctxt==null || srctxt=="") {
		alert("Kérem, a keresni való szöveget kitölteni!");
	} else {
		document.location='/cardemoworld/searchrpage.php/'+srctxt+'/search/keresett';
	}
}
function m1over(obj) {
	m1onclick(obj);
}
function m1out(obj) {
	var m1 = document.getElementById("m1"); 
	m1.src = "../images/kisnyil_menusor_1.png";	
	var menu01 = document.getElementById("menua01");
	menu01.style.color = "white";	
}
function m2over(obj) {
	m2onclick(obj);
}
function m2out(obj) {
	var m2 = document.getElementById("m2"); 
	m2.src = "../images/kisnyil_menusor_1.png";	
	var menu02 = document.getElementById("menua02");
	menu02.style.color = "white";	
}
function m3over(obj) {
	m3onclick(obj);
}
function m3out(obj) {
	var m3 = document.getElementById("m3"); 
	m3.src = "../images/kisnyil_menusor_1.png";	
	var menu03 = document.getElementById("menua03");
	menu03.style.color = "white";	
}
function m4over(obj) {
	var menu04 = document.getElementById("menua04");
	menu04.style.color = "black";
}
function m4out(obj) {
	var menu04 = document.getElementById("menua04");
	menu04.style.color = "white";	
}
function m5over(obj) {
	var menu05 = document.getElementById("menua05");
	menu05.style.color = "black";
}
function m5out(obj) {
	var menu05 = document.getElementById("menua05");
	menu05.style.color = "white";	
}
function m6over(obj) {
	var menu06 = document.getElementById("menua06");
	menu06.style.color = "black";
}
function m6out(obj) {
	var menu06 = document.getElementById("menua06");
	menu06.style.color = "white";	
}
function m7over(obj) {
	var m7 = document.getElementById("m7"); 
	m7.src = "../images/kisnyil_menusor_2.png";
	var menu07 = document.getElementById("menua07");
	menu07.style.color = "black";
}
function m7out(obj) {
	var m7 = document.getElementById("m7"); 
	m7.src = "../images/kisnyil_menusor_1.png";	
	var menu07 = document.getElementById("menua07");
	menu07.style.color = "white";	
}
function m1onclick() {
	var m1 = document.getElementById("m1"); 
	m1.src = "../images/kisnyil_menusor_2.png";
	var menu01 = document.getElementById("menua01");
	menu01.style.color = "black";
	var markak = document.getElementById("markak");
	markak.style.display="block";
	felepitmenyek.style.display="none";
	meretek.style.display="none";
	var ccn = document.getElementById("content_container_noleft");  
	if(ccn) {	
		ccn.style.zIndex = -9999;
	}
	var fot = document.getElementById("footer");
	fot.style.zIndex = -9999;			
	var fba = document.getElementById("footerbanners");	
	fba.style.zIndex = -9999;								
	var fb7 = document.getElementById("footer-banner7");
	fb7.style.zIndex = -9999;									
	var fb8 = document.getElementById("footer-banner8");
	fb8.style.zIndex = -9999;									
	var fb9 = document.getElementById("footer-banner9");
	fb9.style.zIndex = -9999;
	var mov = document.getElementById("movetelytarsak");
	mov.style.zIndex = -9999;	
	var mts = document.getElementById("mtsor");
	mts.style.zIndex = -9999;	
	var mto = document.getElementById("mtoszl");
	mto.style.zIndex = -9999;	
}
function m2onclick() {
	var m2 = document.getElementById("m2"); 
	m2.src = "../images/kisnyil_menusor_2.png";
	var menu02 = document.getElementById("menua02");
	menu02.style.color = "black";
	var felepitmenyek = document.getElementById("felepitmenyek");
	felepitmenyek.style.display="block";	
	markak.style.display="none";
	meretek.style.display="none";	
	var ccn = document.getElementById("content_container_noleft");
	if(ccn) {	
		ccn.style.zIndex = -9999;
	}
	var fot = document.getElementById("footer");
	fot.style.zIndex = -9999;	
	var fba = document.getElementById("footerbanners");	
	fba.style.zIndex = -9999;								
	var fb7 = document.getElementById("footer-banner7");
	fb7.style.zIndex = -9999;									
	var fb8 = document.getElementById("footer-banner8");
	fb8.style.zIndex = -9999;									
	var fb9 = document.getElementById("footer-banner9");
	fb9.style.zIndex = -9999;		
	var mov = document.getElementById("movetelytarsak");
	mov.style.zIndex = -9999;
	var mts = document.getElementById("mtsor");
	mts.style.zIndex = -9999;	
	var mto = document.getElementById("mtoszl");
	mto.style.zIndex = -9999;		
}
function m3onclick() {
	var m3 = document.getElementById("m3"); 
	m3.src = "../images/kisnyil_menusor_2.png";
	var menu03 = document.getElementById("menua03");
	menu03.style.color = "black";
	var meretek = document.getElementById("meretek");
	meretek.style.display="block";	
	markak.style.display="none";
	felepitmenyek.style.display="none";
	var ccn = document.getElementById("content_container_noleft");
	if(ccn) {
		ccn.style.zIndex = -9999;	
	}
	var fot = document.getElementById("footer");
	fot.style.zIndex = -9999;
	var fba = document.getElementById("footerbanners");	
	fba.style.zIndex = -9999;								
	var fb7 = document.getElementById("footer-banner7");
	fb7.style.zIndex = -9999;									
	var fb8 = document.getElementById("footer-banner8");
	fb8.style.zIndex = -9999;									
	var fb9 = document.getElementById("footer-banner9");
	fb9.style.zIndex = -9999;	
	var mov = document.getElementById("movetelytarsak");
	mov.style.zIndex = -9999;	
	var mts = document.getElementById("mtsor");
	mts.style.zIndex = -9999;	
	var mto = document.getElementById("mtoszl");
	mto.style.zIndex = -9999;		
}
function m4onclick() {
}
function m5onclick() {
}
function m6onclick() {
}
function m7onclick() {
}
function markasel(markaid) {
	var m2 = document.getElementById("m2"); 
	m2.src = "../images/kisnyil_menusor_1.png";	
	document.location='./marka.php?markaid='+markaid;
}
function closeMarkak() {
	var markak = document.getElementById("markak");
	var zxcevt=window.event||arguments.callee.caller.arguments[0];
	if (zxcCkEventObj(zxcevt,markak)) {
		markak.style.display="none";
		var ccn = document.getElementById("content_container_noleft");
		if(ccn) {		
			ccn.style.zIndex = 9999;			
		}
		var fot = document.getElementById("footer");
		fot.style.zIndex = 9999;
		fba.style.zIndex = 9999;									
		var fb7 = document.getElementById("footer-banner7");
		fb7.style.zIndex = 9999;									
		var fb8 = document.getElementById("footer-banner8");
		fb8.style.zIndex = 9999;									
		var fb9 = document.getElementById("footer-banner9");
		fb9.style.zIndex = 9999;	
		var mov = document.getElementById("movetelytarsak");
		mov.style.zIndex = 9999;
		var mts = document.getElementById("mtsor");
		mts.style.zIndex = 9999;	
		var mto = document.getElementById("mtoszl");
		mto.style.zIndex = 9999;			
    }
}
function closeFelepitmenyek() {
	var felepitmenyek = document.getElementById("felepitmenyek");
	var zxcevt=window.event||arguments.callee.caller.arguments[0];
	if (zxcCkEventObj(zxcevt,felepitmenyek)) {
		felepitmenyek.style.display="none";
		var ccn = document.getElementById("content_container_noleft");
		if(ccn) {		
			ccn.style.zIndex = 9999;	
		}
		var fot = document.getElementById("footer");
		fot.style.zIndex = 9999;							
		var fba = document.getElementById("footerbanners");
		fba.style.zIndex = 9999;									
		var fb7 = document.getElementById("footer-banner7");
		fb7.style.zIndex = 9999;									
		var fb8 = document.getElementById("footer-banner8");
		fb8.style.zIndex = 9999;									
		var fb9 = document.getElementById("footer-banner9");
		fb9.style.zIndex = 9999;
		var mov = document.getElementById("movetelytarsak");
		mov.style.zIndex = 9999;	
		var mts = document.getElementById("mtsor");
		mts.style.zIndex = 9999;	
		var mto = document.getElementById("mtoszl");
		mto.style.zIndex = 9999;					
    }	
}
function closeMeretek() {
	var meretek = document.getElementById("meretek");
	var zxcevt=window.event||arguments.callee.caller.arguments[0];
	if (zxcCkEventObj(zxcevt,meretek)) {
		meretek.style.display="none";
		var ccn = document.getElementById("content_container_noleft");
		if(ccn) {
			ccn.style.zIndex = 9999;
		}
		var fot = document.getElementById("footer");
		fot.style.zIndex = 9999;
		fba.style.zIndex = 9999;									
		var fb7 = document.getElementById("footer-banner7");
		fb7.style.zIndex = 9999;									
		var fb8 = document.getElementById("footer-banner8");
		fb8.style.zIndex = 9999;									
		var fb9 = document.getElementById("footer-banner9");
		fb9.style.zIndex = 9999;
		var mov = document.getElementById("movetelytarsak");
		mov.style.zIndex = 9999;
		var mts = document.getElementById("mtsor");
		mts.style.zIndex = 9999;	
		var mto = document.getElementById("mtoszl");
		mto.style.zIndex = 9999;					
    }
}
function zxcCkEventObj(zxce,zxcp){
 if (!zxce) var zxce=window.event;
 zxce.cancelBubble=true;
 if (zxce.stopPropagation) zxce.stopPropagation();
 if (zxce.target) zxceobj=zxce.target;
 else if (zxce.srcElement) zxceobj=zxce.srcElement;
 if (zxceobj.nodeType==3) zxceobj=zxceobj.parentNode;
 var zxceobj=(zxce.relatedTarget)?zxce.relatedTarget:(zxce.type=='mouseout')?zxce.toElement:zxce.fromElement;
 if (!zxceobj||zxceobj==zxcp) return false;
 while (zxceobj.parentNode){
  if (zxceobj==zxcp) return false;
  zxceobj=zxceobj.parentNode;
 }
 return true;
}
function fel01over(obj) {
  var img = document.getElementById("fel01img");
	img.src = "../images/3door_2.png";
  var txt = document.getElementById("fel01txt");	
	txt.style.color="rgb(127,127,127)";
	obj.style.backgroundColor="white";
}
function fel01out(obj) {
  var img = document.getElementById("fel01img");
	img.src = "../images/3door_1.png";
  var txt = document.getElementById("fel01txt");	
	txt.style.color="white";
	obj.style.backgroundColor="rgb(255,102,0)";
}
function fel02over(obj) {
  var img = document.getElementById("fel02img");
	img.src = "../images/5door_2.png";
  var txt = document.getElementById("fel02txt");	
	txt.style.color="rgb(127,127,127)";
	obj.style.backgroundColor="white";
}
function fel02out(obj) {
  var img = document.getElementById("fel02img");
	img.src = "../images/5door_1.png";
  var txt = document.getElementById("fel02txt");	
	txt.style.color="white";
	obj.style.backgroundColor="rgb(255,102,0)";
}
function fel03over(obj) {
  var img = document.getElementById("fel03img");
	img.src = "../images/cabriolet_2.png";
  var txt = document.getElementById("fel03txt");	
	txt.style.color="rgb(127,127,127)";
	obj.style.backgroundColor="white";
}
function fel03out(obj) {
  var img = document.getElementById("fel03img");
	img.src = "../images/cabriolet_1.png";
  var txt = document.getElementById("fel03txt");	
	txt.style.color="white";
	obj.style.backgroundColor="rgb(255,102,0)";
}
function fel04over(obj) {
  var img = document.getElementById("fel04img");
	img.src = "../images/coupe_2.png";
  var txt = document.getElementById("fel04txt");	
	txt.style.color="rgb(127,127,127)";
	obj.style.backgroundColor="white";
}
function fel04out(obj) {
  var img = document.getElementById("fel04img");
	img.src = "../images/coupe_1.png";
  var txt = document.getElementById("fel04txt");	
	txt.style.color="white";
	obj.style.backgroundColor="rgb(255,102,0)";
}
function fel05over(obj) {
  var img = document.getElementById("fel05img");
	img.src = "../images/sedan_2.png";
  var txt = document.getElementById("fel05txt");	
	txt.style.color="rgb(127,127,127)";
	obj.style.backgroundColor="white";
}
function fel05out(obj) {
  var img = document.getElementById("fel05img");
	img.src = "../images/sedan_1.png";
  var txt = document.getElementById("fel05txt");	
	txt.style.color="white";
	obj.style.backgroundColor="rgb(255,102,0)";
}
function fel06over(obj) {
  var img = document.getElementById("fel06img");
	img.src = "../images/combi_2.png";
  var txt = document.getElementById("fel06txt");	
	txt.style.color="rgb(127,127,127)";
	obj.style.backgroundColor="white";
}
function fel06out(obj) {
  var img = document.getElementById("fel06img");
	img.src = "../images/combi_1.png";
  var txt = document.getElementById("fel06txt");	
	txt.style.color="white";
	obj.style.backgroundColor="rgb(255,102,0)";
}
function fel07over(obj) {
  var img = document.getElementById("fel07img");
	img.src = "../images/mpv_2.png";
  var txt = document.getElementById("fel07txt");	
	txt.style.color="rgb(127,127,127)";
	obj.style.backgroundColor="white";
}
function fel07out(obj) {
  var img = document.getElementById("fel07img");
	img.src = "../images/mpv_1.png";
  var txt = document.getElementById("fel07txt");	
	txt.style.color="white";
	obj.style.backgroundColor="rgb(255,102,0)";
}
function fel08over(obj) {
  var img = document.getElementById("fel08img");
	img.src = "../images/pickup_2.png";
  var txt = document.getElementById("fel08txt");	
	txt.style.color="rgb(127,127,127)";
	obj.style.backgroundColor="white";
}
function fel08out(obj) {
  var img = document.getElementById("fel08img");
	img.src = "../images/pickup_1.png";
  var txt = document.getElementById("fel08txt");	
	txt.style.color="white";
	obj.style.backgroundColor="rgb(255,102,0)";
}
function fel09over(obj) {
  var img = document.getElementById("fel09img");
	img.src = "../images/sport_cabriolet_2.png";
  var txt = document.getElementById("fel09txt");	
	txt.style.color="rgb(127,127,127)";
	obj.style.backgroundColor="white";
}
function fel09out(obj) {
  var img = document.getElementById("fel09img");
	img.src = "../images/sport_cabriolet_1.png";
  var txt = document.getElementById("fel09txt");	
	txt.style.color="white";
	obj.style.backgroundColor="rgb(255,102,0)";	
}
function fel10over(obj) {
  var img = document.getElementById("fel10img");
	img.src = "../images/sport_coupe_2.png";
  var txt = document.getElementById("fel10txt");	
	txt.style.color="rgb(127,127,127)";
	obj.style.backgroundColor="white";
}
function fel10out(obj) {
  var img = document.getElementById("fel10img");
	img.src = "../images/sport_coupe_1.png";
  var txt = document.getElementById("fel10txt");	
	txt.style.color="white";
	obj.style.backgroundColor="rgb(255,102,0)";	
}
function fel11over(obj) {
  var img = document.getElementById("fel11img");
	img.src = "../images/offroader_3door_2.png";
  var txt = document.getElementById("fel11txt");	
	txt.style.color="rgb(127,127,127)";
	obj.style.backgroundColor="white";
}
function fel11out(obj) {
  var img = document.getElementById("fel11img");
	img.src = "../images/offroader_3door_1.png";
  var txt = document.getElementById("fel11txt");	
	txt.style.color="white";
	obj.style.backgroundColor="rgb(255,102,0)";	
}
function fel12over(obj) {
  var img = document.getElementById("fel12img");
	img.src = "../images/offroader_5door_2.png";
  var txt = document.getElementById("fel12txt");	
	txt.style.color="rgb(127,127,127)";
	obj.style.backgroundColor="white";
}
function fel12out(obj) {
  var img = document.getElementById("fel12img");
	img.src = "../images/offroader_5door_1.png";
  var txt = document.getElementById("fel12txt");	
	txt.style.color="white";
	obj.style.backgroundColor="rgb(255,102,0)";	
}
function fel13over(obj) {
  var img = document.getElementById("fel13img");
	img.src = "../images/offroader_pickup_2.png";
  var txt = document.getElementById("fel13txt");	
	txt.style.color="rgb(127,127,127)";
	obj.style.backgroundColor="white";
}
function fel13out(obj) {
  var img = document.getElementById("fel13img");
	img.src = "../images/offroader_pickup_1.png";
  var txt = document.getElementById("fel13txt");	
	txt.style.color="white";
	obj.style.backgroundColor="rgb(255,102,0)";	
}
function mer01over(obj) {
  var img = document.getElementById("mer01img");
	img.src = "../images/also_kis_2.png";
  var txt = document.getElementById("mer01txt");	
	txt.style.color="rgb(127,127,127)";
	obj.style.backgroundColor="white";
}
function mer01out(obj) {
  var img = document.getElementById("mer01img");
	img.src = "../images/also_kis_1.png";
  var txt = document.getElementById("mer01txt");	
	txt.style.color="white";
	obj.style.backgroundColor="rgb(255,102,0)";	
}
function mer02over(obj) {
  var img = document.getElementById("mer02img");
	img.src = "../images/kis_2.png";
  var txt = document.getElementById("mer02txt");	
	txt.style.color="rgb(127,127,127)";
	obj.style.backgroundColor="white";
}
function mer02out(obj) {
  var img = document.getElementById("mer02img");
	img.src = "../images/kis_1.png";
  var txt = document.getElementById("mer02txt");	
	txt.style.color="white";
	obj.style.backgroundColor="rgb(255,102,0)";	
}
function mer03over(obj) {
  var img = document.getElementById("mer03img");
	img.src = "../images/felso_kis_2.png";
  var txt = document.getElementById("mer03txt");	
	txt.style.color="rgb(127,127,127)";
	obj.style.backgroundColor="white";
}
function mer03out(obj) {
  var img = document.getElementById("mer03img");
	img.src = "../images/felso_kis_1.png";
  var txt = document.getElementById("mer03txt");	
	txt.style.color="white";
	obj.style.backgroundColor="rgb(255,102,0)";	
}
function mer04over(obj) {
  var img = document.getElementById("mer04img");
	img.src = "../images/also_kozep_2.png";
  var txt = document.getElementById("mer04txt");	
	txt.style.color="rgb(127,127,127)";
	obj.style.backgroundColor="white";
}
function mer04out(obj) {
  var img = document.getElementById("mer04img");
	img.src = "../images/also_kozep_1.png";
  var txt = document.getElementById("mer04txt");	
	txt.style.color="white";
	obj.style.backgroundColor="rgb(255,102,0)";	
}
function mer05over(obj) {
  var img = document.getElementById("mer05img");
	img.src = "../images/kozep_2.png";
  var txt = document.getElementById("mer05txt");	
	txt.style.color="rgb(127,127,127)";
	obj.style.backgroundColor="white";
}
function mer05out(obj) {
  var img = document.getElementById("mer05img");
	img.src = "../images/kozep_1.png";
  var txt = document.getElementById("mer05txt");	
	txt.style.color="white";
	obj.style.backgroundColor="rgb(255,102,0)";	
}
function mer06over(obj) {
  var img = document.getElementById("mer06img");
	img.src = "../images/felso_kozep_2.png";
  var txt = document.getElementById("mer06txt");	
	txt.style.color="rgb(127,127,127)";
	obj.style.backgroundColor="white";
}
function mer06out(obj) {
  var img = document.getElementById("mer06img");
	img.src = "../images/felso_kozep_1.png";
  var txt = document.getElementById("mer06txt");	
	txt.style.color="white";
	obj.style.backgroundColor="rgb(255,102,0)";	
}
function mer07over(obj) {
  var img = document.getElementById("mer07img");
	img.src = "../images/also_nagy_2.png";
  var txt = document.getElementById("mer07txt");	
	txt.style.color="rgb(127,127,127)";
	obj.style.backgroundColor="white";
}
function mer07out(obj) {
  var img = document.getElementById("mer07img");
	img.src = "../images/also_nagy_1.png";
  var txt = document.getElementById("mer07txt");	
	txt.style.color="white";
	obj.style.backgroundColor="rgb(255,102,0)";	
}
function mer08over(obj) {
  var img = document.getElementById("mer08img");
	img.src = "../images/nagy_2.png";
  var txt = document.getElementById("mer08txt");	
	txt.style.color="rgb(127,127,127)";
	obj.style.backgroundColor="white";
}
function mer08out(obj) {
  var img = document.getElementById("mer08img");
	img.src = "../images/nagy_1.png";
  var txt = document.getElementById("mer08txt");	
	txt.style.color="white";
	obj.style.backgroundColor="rgb(255,102,0)";	
}
function mer09over(obj) {
  var img = document.getElementById("mer09img");
	img.src = "../images/felso_nagy_2.png";
  var txt = document.getElementById("mer09txt");	
	txt.style.color="rgb(127,127,127)";
	obj.style.backgroundColor="white";
}
function mer09out(obj) {
  var img = document.getElementById("mer09img");
	img.src = "../images/felso_nagy_1.png";
  var txt = document.getElementById("mer09txt");	
	txt.style.color="white";
	obj.style.backgroundColor="rgb(255,102,0)";	
}
function merENDover(obj) {
  var img = document.getElementById("merENDimg");
	img.src = "../images/up_button_2.png";
}
function merENDout(obj) {
  var img = document.getElementById("merENDimg");
	img.src = "../images/up_button_1.png";
}
function felENDover(obj) {
  var img = document.getElementById("felENDimg");
	img.src = "../images/up_button_2.png";
}
function felENDout(obj) {
  var img = document.getElementById("felENDimg");
	img.src = "../images/up_button_1.png";
}
function marENDover(obj) {
  var img = document.getElementById("marENDimg");
	img.src = "../images/up_button_2.png";
}
function marENDout(obj) {
  var img = document.getElementById("marENDimg");
	img.src = "../images/up_button_1.png";
}
function marover(obj, txtid) {
	obj.style.backgroundColor="white";
	var txt = document.getElementById(txtid);
	txt.style.color="rgb(127,127,127)";
}
function marout(obj, txtid) {
	obj.style.backgroundColor="rgb(255,102,0)";
	var txt = document.getElementById(txtid);
	txt.style.color="white";	
}
/* Left */
function gykover() {
	var gykimg = document.getElementById("gykimg");
	gykimg.src="../images/gyorskereso_2.png";
}
function gykout() {
	var gykimg = document.getElementById("gykimg");
	gykimg.src="../images/gyorskereso_1.png";
}
/* V�ge left */
/* Common functions */
function trim(s) {
	return rtrim(ltrim(s));
}
function ltrim(s) {
	var l=0;
	while(l < s.length && s[l] == ' ')
	{	l++; }
	return s.substring(l, s.length);
}
function rtrim(s) {
	var r=s.length -1;
	while(r > 0 && s[r] == ' ')
	{	r-=1;	}
	return s.substring(0, r+1);
}
/* Vége common functions */
