	function windowopener2(smap)
	{
	newwindow=window.open(smap,'x','width=350,height=330,resizable=0,status=0,scrollbars=0,top=0,left=0,toolbar=0');
	}

	function termekkep(alany,x,y)
	{
	newwindow=window.open(alany,'termek','width='+x+',height='+y+',resizable=0,status=0,scrollbars=0,top=0,left=0,toolbar=0');
	}

	function MM_jumpMenu(targ,selObj,restore){ //v3.0
		eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
		if (restore) selObj.selectedIndex=0;
	}

	function MM_openBrWindow(theURL,winName,features) { //v2.0
	  window.open(theURL,winName,features);
	}

	function refer(x) {
		newwindow=window.open('ajanlas.php?lang_id='+x+'','Ajánlás','width=320,height=220,resizable=0,status=0,scrollbars=0,top=0,left=0,toolbar=0');
	}

	function MM_swapImgRestore() { //v3.0
	  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
	}

	function MM_preloadImages() { //v3.0
	  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
		var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
		if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
	}

	function MM_findObj(n, d) { //v4.01
	  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
		d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	  if(!x && d.getElementById) x=d.getElementById(n); return x;
	}

	function MM_swapImage() { //v3.0
	  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
	   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
	}
	
	function formcheck() {
		var returnval=true;
		var ert = eval("document.regform");

		if(ert.name.value==""){
			alert('Az Ön neve hiányzik!');
			ert.name.focus();
			returnval=false;
			return returnval;
		}

		if(ert.partnername.value==""){
			alert('A partnercég neve hiányzik!');
			ert.partnername.focus();
			returnval=false;
			return returnval;
		}

		if(ert.address.value==""){
			alert('Cég telephelyének címe hiányzik!');
			ert.address.focus();
			returnval=false;
			return returnval;
		}

		if(ert.phone.value==""){
			alert('Telefonszáma hiányzik!');
			ert.phone.focus();
			returnval=false;
			return returnval;
		}

		if(ert.email.value==""){
			alert('E-mail címe hiányzik!');
			ert.email.focus();
			returnval=false;
			return returnval;
		}

		if (ert.email.value!="") {
			goodEmail = ert.email.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\..{2,2}))$)\b/gi)
			if (goodEmail){
			} else {
				alert('E-mail címe hibás!');
				ert.email.focus();
				return false;
			}
		}

		if(ert.ceginfo.value==""){
			alert('A rövid céginformáció hiányzik!');
			ert.ceginfo.focus();
			returnval=false;
			return returnval;
		}

		if(ert.txtCode.value=="") {
			alert('Kérem írja be a biztonsági kódot!');
			ert.txtCode.focus();
			returnval=false;
			return returnval;
		}

		return returnval;
	}
	
	/* pp_car_search_small_form.template.php -ben volt,
	   egy expand function azonban már van.
	function expand(id){
		item_obj = document.getElementById(id);
		if(item_obj.className == 'extra_gif'){
			item_obj.className = 'hidden';
		}else{
			item_obj.className = 'extra_gif';
		}
	}	
	*/
	
	function initpreloadimages() {
		MM_preloadImages
		(
			'templates/images/top_m_ujauto1.gif',
			'templates/images/top_m_haszauto1.gif',
			'templates/images/top_m_tesztauto1.gif',
			'templates/images/top_m_motorok1.gif',
			'templates/images/1_top_m_ujauto1.gif',
			'templates/images/1_top_m_haszauto1.gif',
			'templates/images/1_top_m_tesztauto1.gif',
			'templates/images/2_top_m_ujauto1.gif',
			'templates/images/2_top_m_haszauto1.gif',
			'templates/images/2_top_m_tesztauto1.gif',
			'templates/images/tab.gif',
			'templates/images/tabw.gif'
		)
	}
	if (window.attachEvent) {
		window.attachEvent("onload", initpreloadimages);// IE
	} else {
		window.addEventListener("load", BindFuncs, initpreloadimages);// DOM
	}	