Declaring your function "void" tells the compiler that your function will not be returning anything.
if you want to return something you need to tell it what type of variable you want to return.
e.g. int functionName() or byte functionName().
see blink without delay and several things at the same time to learn how to avoid using delay().
Edit: here is another good one- multi tasking the arduino