Added simple data validation in 'votes.js'
Added simple data validation in 'votes.js'

1) Variables 'meetingCode', 'mac' and 'value' combined  into a JavaScrip object 'vote';
2) Added 'validateVote' function instead of validation in 'if .. else' blocks;
3) Added 'appendIf' function;

nokia-wroclaw/innovativeproject-focusmeter,nokia-wroclaw/innovativeproject-focusmeter,nokia-wroclaw/innovativeproject-focusmeter