function checkParams(){
var email = $('input[name="email"]');
if(email.length != 0) {
alert("Поле пустое");
}
}
function checkParams(){
var email = $('input[name="email"]');
if(email.val().length == 0) {
alert("Поле пустое");
}
}