function to print overflow / filled / underflow accordingly
function check_and_print ( required_time , given_time ) { if ( required_time < given_time ) document . write ( " " ) ; else if ( required_time > given_time ) document . write ( " " ) ; else document . write ( " " ) ; }