 function crt(text1, text2, text3) {
flc = "HIBA A BEJEGYZÉSKOR! A HIBA OKA :\n\n";
if (text1.value == "") {
alert(flc+"A 'név' mező üresen maradt!");
return false;
}else if (text2.value == "") {
alert(flc+"Az 'e-mail cím' mező üresen maradt!");
return false;
}else if (text2.value.indexOf("@") < 1 || text2.value.indexOf(".") < 1) {
alert(flc+"Hibás e-mail cím. ("+text2.value+")! Kérlek adj meg valós címet.");
return false;
}else if (text3.value == "") {
alert(flc+"A 'hozzászólás' mező üresen maradt!");
return false;
}else{
return true;
}
}

function del(text1, text2, text3) {
text1.value = "";
text2.value = "";
text3.value = "";
}

function smili1(text1) {
text1.value += ":)";
}
function smili2(text1) {
text1.value += ":(";
}
function smili3(text1) {
text1.value += ":/";
}

function textCounter( field, countfield, maxlimit ) {
  if ( field.value.length > maxlimit ) {
    field.value = field.value.substring( 0, maxlimit );
    field.blur();
    field.focus();
    return false;
  } else {
    countfield.value = maxlimit - field.value.length;
  }
}