var today = new Date() var hour = today.getHours() if (hour%2 != 0)document.write("avg beam crnt") else document.write("avg beam crnt")