function checkFields(frm)

{

  for (i=1; i < arguments.length; i++) {

      if (frm[arguments[i]].value == '') {

          frm[arguments[i]].focus();

          alert('Please, fill all items marked with *');

          return false;

      }

  }

  return true;

}

