Using Javascript how can I write this:

if Time1 > 0 and Time2 = 0 then
msgbox