function checkEmail(mezo,idnev){
chfl1=0;
var l=mezo;
if (!l.value.match(/^[a-zA-Z0-9_\.\-]+\@[a-zA-Z0-9\.\-]+\.[a-zA-Z0-9]{2,6}$/)){
	document.getElementById(idnev).innerHTML='<img alt="" border="0" src="http://www.falkiszaritas.hu/images/er.png" align="absmiddle" width="16" height="16"><span style="font-size:7pt;">Ellenőrizze le az e-mail címet</span>';
input.value = input.defaultValue;}
else {
	document.getElementById(idnev).innerHTML='<img alt="" border="0" src="http://www.falkiszaritas.hu/images/ok.png" align="absmiddle" width="16" height="16">';
	document.getElementById('chEmailFld').value=document.getElementById('fEmail').value;
	document.getElementById('sbt47').disabled=true;
	_uPostForm('chEmailForm',{type:'POST',url:'/index/sub/'});
}
return chfl1;
}
function checkName(mezo,idnev){
	chfl4=0;
	var l=mezo;
	if (l.value.length<2){
		document.getElementById(idnev).innerHTML='<img alt="" border="0" src="http://s102.ucoz.net/img/icon/er.png" align="absmiddle" width="16" height="16"><span style="font-size:7pt;">Legalább 5 betűt meg kell adni!</span>';}


	else if (l.value.match(/[!"#\$%&()*+:;<=>?\@\[\]^{}|~]/)){
		document.getElementById(idnev).innerHTML='<img alt="" border="0" src="http://s102.ucoz.net/img/icon/er.png" align="absmiddle" width="16" height="16"> <span style="font-size:7pt;">Nem megengedett karaktereket használt</span>';
	}
	else {
		chfl4=1;
		document.getElementById(idnev).innerHTML='<img alt="" border="0" src="http://www.falkiszaritas.hu/images/ok.png" align="absmiddle" width="16" height="16">';
	}
	return chfl4;
}
function checkCim(mezo,idnev){
	chfl5=0;
	var l=mezo;
	if (l.value.length<3){
		document.getElementById(idnev).innerHTML='<img alt="" border="0" src="http://www.falkiszaritas.hu/images/er.png" align="absmiddle" width="16" height="16"><span style="font-size:7pt;">Legalább 3 betűt meg kell adni!</span>';}
	else if (l.value.match(/[!"#\$%&()*+:;<=>?\@\[\]^{}|~]/)){
		document.getElementById(idnev).innerHTML='<img alt="" border="0" src="http://www.falkiszaritas.hu/images/er.png" align="absmiddle" width="16" height="16"> <span style="font-size:7pt;">Nem megengedett karaktereket használt</span>';
	}
	else {
		chfl5=1;
		document.getElementById(idnev).innerHTML='<img alt="" border="0" src="http://www.falkiszaritas.hu/images/ok.png" align="absmiddle" width="16" height="16">';
	}
	return chfl5;
}
function checkTel(mezo,idnev){
	chfl6=0;
	var l=mezo;
	if (l.value.length<8){
		document.getElementById(idnev).innerHTML='<img alt="" border="0" src="http://www.falkiszaritas.hu/images/er.png" align="absmiddle" width="16" height="16"><span style="font-size:7pt;">Legalább 8 számjegyű a telefonszám!</span>';
input.value = input.defaultValue;}
	else if (l.value.match(/^[0-9\/\-+]+$/)){
chfl6=1;
		document.getElementById(idnev).innerHTML='<img alt="" border="0" src="http://www.falkiszaritas.hu/images/ok.png" align="absmiddle" width="16" height="16">';
		

	}
	else {
		document.getElementById(idnev).innerHTML='<img alt="" border="0" src="http://www.falkiszaritas.hu/images/er.png" align="absmiddle" width="16" height="16"> <span style="font-size:7pt;">Nem megengedett karaktereket használt</span>';
	}
	return chfl6;
}
function ellenoriz(){
if (checkEmail(document.form.mail) &&
checkName(document.form.name) &&
checkCim(document.form.f_9) &&
checkTel(document.form.f_10)){return true;}
else {alert("valami nem ok");return false;}
}

//ez törli az input boxot

function szovegTorlese(input){
if (input.defaultValue==input.value)
input.value = ''
}

//ez visszaállítja az input box tartalmát, ha az üres

function szovegVissza(input){
if (input.value=='')
input.value = input.defaultValue
}

        <!--
        
          function openwindow(theURL, width, height) {
             settings = 'resizable=no,scrollbars=yes,left=0,top=0,width='+width+',height='+height;
             newwindow = window.open(theURL, 'winName', settings);
             if (window.focus) {newwindow.focus()}
          }
        
        //-->


          function showPopup() {
             var winW = 1024;
             var popup_width = 401;

             if (parseInt(navigator.appVersion)>3) {
              if (navigator.appName=="Netscape") {
                winW = window.innerWidth;
              }
              if (navigator.appName.indexOf("Microsoft")!=-1) {
                winW = document.body.offsetWidth;
              }
             }
             var popup = document.getElementById("popup_layer");
             popup.style.left = Math.round((winW-popup_width)/2)  + "px";
             popup.style.visibility = "visible";
          }
          function hidePopup() {
             var popup = document.getElementById("popup_layer");
             popup.style.visibility = "hidden";
          }

<!---

            
                function openCustomSize(PageURL, Width, Height, ToolBar, Location, StatusBar, MenuBar, Resizeable, ScrollBars)
                    {
                        if (Width > 0 && Height > 0) {
                            var setTop = (screen.height - Height) / 2;
                            var setLeft = (screen.width - Width) / 2;
                            var siteOpen = 'width='+Width+', height='+Height+', left='+setLeft+', top='+setTop+', ';
                        }
                        else {
                            //var siteOpen = 'fullscreen=yes, ';
                             var siteOpen = 'width='+window.screen.availWidth+', height='+window.screen.availHeight+', left=0, top=0, ';
                        }
                        var siteOption = siteOpen+'toolbar='+ToolBar+', location='+Location+', status='+StatusBar+', menubar='+MenuBar+', resizable='+Resizeable+', scrollbars='+ScrollBars;
                        SiteWindow = window.open(PageURL , "_blank", ""+siteOption+"");
                    }
-->

<!--
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 MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->

