Figure 1   String Comparisons

<html><body>
<%chkbox1=request.querystring("chkbox1")="on"%>
<%chkbox2=request.querystring("chkbox2")="on"%>
<% if (chkbox1 AND chkbox2) then%>
Both checkboxes were marked.
<% elseif chkbox1 then%>
The first checkbox was the only one marked.
<% elseif chkbox2 then%>
The second checkbox was the only one marked.
<% else %>
None of the checkboxes were marked.
<% end if%>
<form name=binary>
<input type=checkbox name=chkbox1>
<input type=checkbox name=chkbox2>
<input type=submit>
</form></body>
</html> 

Figure 2   Faulty Code


 <HTML><HEAD>
 <SCRIPT FOR=window EVENT=onload LANGUAGE=JavaScript>
 var phaseme=0;
 phaseit();
 </script>
 <script language="javascript">
 function phaseit(){
 phaseme=(phaseme + 10) % 100;
 flttgt.filters[0].phase=phaseme;
 }
 </script>
 </HEAD>
 
 <BODY>
 <div id="flttgt"
 style="position:relative;width:150;height:150;top:20;left:20;text-align:
 center;filter:wave(strength=8, freq=3, lightstrength=20, add=0, phase=90)">
 <div><font color=red size=+2>Some example text.<br> There are many possible
 sites for filters; <br> this is an example of filtering text.  <br>You can
 apply filters to a myriad of sites<br></font></div>
 </div>
 </BODY></HTML>

Figure 3   The Wave Effect


 <HTML><HEAD>
 <SCRIPT FOR=window EVENT=onload LANGUAGE=JavaScript>
 id = window.setInterval ("phaseit();", 100);
 </script>
 
 <script language="javascript">
 var id=0;
 var phaseme=0;
 function phaseit() {
     phaseme=(phaseme + 10) % 100;
     flttgt.filters[0].phase=phaseme;
 }
 function StopIt() {
     if (id) {
         window.clearInterval (id);
         flttgt.filters[0].strength=0;
         flttgt.filters[0].lightstrength=0;
         id = 0;
         clicker.value = "Weee! That was fun"
     } else {
         flttgt.filters[0].strength=8;
         flttgt.filters[0].lightstrength=20;
         id = window.setInterval ("phaseit();", 100);
         clicker.value = "Make it stop!!!"
     }
 }
 </script>
 
 </HEAD>
 
 <BODY>
 <div id="flttgt"
 style="position:relative;width:150;height:150;top:20;left:20;text-
 align:center;filter:wave(strength=8, freq=3, lightstrength=20, add=0, phase=90)">
 <div><font color=red size=+2>Some example text.<br> There are many possible sites
 for filters; <br> this is an example of filtering text.  <br>You can apply filters
 to a myriad of sites<br></font></div>
 <input id="clicker" value="Make it stop!!!!!" type=button onclick="StopIt();">
 </div> 
 
 </BODY></HTML>