Question : javascript precondition based on the textbox value

hi
i am trying to display a timer before loading the page now i have got some code with one of the expert help but problem is they are showing it too many times i just want to show them only once.
i want an if statement where if  waitq = 1 then do the blocking else do nothing waitq = document.getElementById("waitq");

var counterm, timed, ryan, waitq;
  document.write('

Random Solutions  
 
programming4us programming4us