﻿function ismeros(hol){
str=hol.onemail.value;
filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
if (!filter.test(str)){
hol.onemail.focus();
hol.onemail.style.background= "#cccccc";
alert("Kérem egy valós email címet adjon meg!");
return false;
 }
 str=hol.oemail.value;
filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
if (!filter.test(str)){
hol.oemail.focus();
hol.oemail.style.background= "#cccccc";
alert("Kérem egy valós email címet adjon meg!");
return false;
 }

if (hol.onneve.value==""){
   alert("Kérem írja be a nevet!");
   hol.onneve.focus();
   hol.onneve.style.background= "#cccccc";
   return false;
}
else{
   hol.onneve.style.background= "WHITE";
}    

}											
//----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
function ismeross(hol){
str=hol.onemail.value;
filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
if (!filter.test(str)){
hol.onemail.focus();
hol.onemail.style.background= "#cccccc";
alert("Kérem egy valós email címet adjon meg!");
return false;
 }

 if (hol.onneve.value==""){
   alert("Kérem írja be a nevet!");
   hol.onneve.focus();
   hol.onneve.style.background= "#cccccc";
   return false;
}
else{
   hol.onneve.style.background= "WHITE";
}  

if (hol.ontel.value==""){
   alert("Kérem írja be a telefonszámot!");
   hol.ontel.focus();
   hol.ontel.style.background= "#cccccc";
   return false;
}
else{
   hol.ontel.style.background= "WHITE";
}    

}

	

								
