form field checking not working

Hi
my name is frank(ferenc in hungarian), I have quite a big headache, checking form fields with functions click, each, works untill fields are empty, if I just complete filling partially it doesn't work. at the first ok, the checking stops. please help me, thank you, frank
the faulty code:
$ (".button1").click(function(){
var emptyfield = true;
$ (".input-check").each(function(){

//$ ("span").text(inpattr)
var inputattr = $ (this).attr("id");
if (…

form field checking not working