<!-- 
/* Script by Frenkiebig www.formentor96.hu  */

var enabledchars="AÁBCDEÉFGHIÍJKLMNOÓÖŐPQRSTUÚŰVWZXYaábcdeéfghiíjklmnoóöőpqrstuúüűvwzxy0123456789_-.'& ";
var enabledchars1="ABCDEFGHIJKLMNOPQRSTUVWZXYabcdefghijklmnopqrstuvwzxy0123456789@._-";
var enabledchars2="0123456789-+ /";


function xsend(){




//check name

sd1=document.forms[0].name.value;

if (sd1.length<1){alert("Kérem megadni a\n NEVÉT!");return;}
if (sd1.length>50){alert("Jó hosszú neve van!");return;}

var ci=0;

while (ci<sd1.length)

{if (enabledchars.indexOf(sd1.substring(ci,ci+1))<0){alert("A neve nem tartalmazhat '"+sd1.substring(ci,ci+1)+"' karaktert!");return;}

 ci++;

}


//check email

sd1=document.forms[0].email.value;
if (sd1.length<1){alert("Kérem megadni\n az e-mail címét!");return;}
if (sd1.length>40){alert("????????\nIlyen hosszú e-mail?");return;}

var ci=0;

while (ci<sd1.length)

{if (enabledchars1.indexOf(sd1.substring(ci,ci+1))<0){alert("Az email címe nem tartalmazhat '"+sd1.substring(ci,ci+1)+"' karaktert!");return;}

 ci++;

}


 if ( document.form3.email.value.length < 6 ||  
document.form3.email.value.indexOf ('@', 0) == -1 || 
document.form3.email.value.indexOf ('.', 0) == -1){

alert("'' " + document.form3.email.value + " '', helytelen e-mailcím!");
return false;
}





//check tel

sd1=document.forms[0].tel.value;
if (sd1.length<7){alert("Kérem megadni a telefonszámát!");return;}
if (sd1.length>30){alert("????????\nIlyen hosszú telefonszám?");return;}

var ci=0;

while (ci<sd1.length)

{if (enabledchars2.indexOf(sd1.substring(ci,ci+1))<0){alert("A telefonszáma nem tartalmazhat '"+sd1.substring(ci,ci+1)+"' karaktert!");return;}

 ci++;

}

//check msg

var sd1=document.forms[0].msg.value;
if (sd1.length<1){alert("Kérem megadni az üzenetet!");return;}
if (sd1.length>400){alert("Csak Max. 400 karakter hosszú\nlehet az üzenet!");return;}

if (confirm('Az adatok helyesek?\n')) { document.forms[0].submit(); }}
//(confirm('Az adatok helyesek?\nCsak a bejelölt levelekre válaszolunk')) document.forms[0].submit();
//document.forms[0].submit();}






// ismeros.cgi-re
function xsend1(){

//check name  form4

sd1=document.forms[1].name.value;

if (sd1.length<1){alert("Kérem megadni az\nÖn NEVÉT!");return;}
if (sd1.length>50){alert("Jó hosszú neve van!");return;}

var ci=0;

while (ci<sd1.length)

{if (enabledchars.indexOf(sd1.substring(ci,ci+1))<0){alert("Az Ön neve nem tartalmazhat '"+sd1.substring(ci,ci+1)+"' karaktert!");return;}

 ci++;

}


//check email

sd1=document.forms[1].email.value;
if (sd1.length<1){alert("Kérem megadni\n az Ön e-mail címét!");return;}
if (sd1.length>40){alert("????????\nIlyen hosszú e-mail?");return;}

var ci=0;

while (ci<sd1.length)

{if (enabledchars1.indexOf(sd1.substring(ci,ci+1))<0){alert("Az Ön e-mail címe nem tartalmazhat '"+sd1.substring(ci,ci+1)+"' karaktert!");return;}

 ci++;

}


 if ( document.form4.email.value.length < 6 ||  
document.form4.email.value.indexOf ('@', 0) == -1 || 
document.form4.email.value.indexOf ('.', 0) == -1){

alert("'' " + document.form4.email.value + " '', helytelen az Ön e-mail címe!");
return false;
}





//check tel

sd1=document.forms[1].tel.value;
if (sd1.length<7){alert("Kérem megadni a telefonszámát!");return;}
if (sd1.length>30){alert("????????\nIlyen hosszú telefonszám?");return;}

var ci=0;

while (ci<sd1.length)

{if (enabledchars2.indexOf(sd1.substring(ci,ci+1))<0){alert("A telefonszáma nem tartalmazhat '"+sd1.substring(ci,ci+1)+"' karaktert!");return;}

 ci++;

}






//check cimzettname  form4

sd1=document.forms[1].cimzettname.value;

if (sd1.length<1){alert("Kérem megadni a\nCímzett NEVÉT!");return;}
if (sd1.length>50){alert("Jó hosszú neve van!");return;}

var ci=0;

while (ci<sd1.length)

{if (enabledchars.indexOf(sd1.substring(ci,ci+1))<0){alert("A Címzett neve nem tartalmazhat '"+sd1.substring(ci,ci+1)+"' karaktert!");return;}

 ci++;

}



//check cimzettemail

sd1=document.forms[1].cimzettemail.value;
if (sd1.length<1){alert("Kérem megadni\n a Címzett e-mail címét!");return;}
if (sd1.length>40){alert("????????\nIlyen hosszú e-mail?");return;}

var ci=0;

while (ci<sd1.length)

{if (enabledchars1.indexOf(sd1.substring(ci,ci+1))<0){alert("A Címzett e-mail címe nem tartalmazhat '"+sd1.substring(ci,ci+1)+"' karaktert!");return;}

 ci++;

}


 if ( document.form4.cimzettemail.value.length < 6 ||  
document.form4.cimzettemail.value.indexOf ('@', 0) == -1 || 
document.form4.cimzettemail.value.indexOf ('.', 0) == -1){

alert("'' " + document.form4.cimzettemail.value + " '', helytelen a Címzett e-mail címe!");
return false;
}








//check msg

var sd1=document.forms[1].msg.value;
if (sd1.length<1){alert("Kérem megadni az üzenetet!");return;}
if (sd1.length>400){alert("Csak Max. 400 karakter hosszú\nlehet az üzenet!");return;}

if (confirm('Az adatok helyesek?\n')) { document.forms[1].submit(); }}




//jklikkt

var message="";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")

//jklikk




var seged = 0;

function SAJAT() {
//seged ++;
seged = 2;

 if (!document.getElementById) return;
   obj=document.getElementById("sajat");
   obj.style.visibility="visible";
   obj1=document.getElementById("ismeros");
   obj1.style.visibility="hidden";

}


function ISMEROS() {
//seged ++;
seged = -2;

 if (!document.getElementById) return;
   obj=document.getElementById("sajat");
   obj.style.visibility="hidden";
   obj1=document.getElementById("ismeros");
   obj1.style.visibility="visible";


}




//-->
