var ERROR_MESSAGES = new Array(
    "The data are incorrect, please check them.",
    "Please enter email.",
    "Invalid email.",
    "Please enter the query."
);


function getErrorMessage(code)
{
  if(code>ERROR_MESSAGES.length-1) code = 0;
  return ERROR_MESSAGES[code];
}
