var comments = new Array(
"You have got to check out this \"Sweet Deal\" - this toolkit includes everything you need, hardware, software, and training... all installed, tested, and ready for any serious CWNA/CWSP Student!<br /><br /><span class=\"comment_by\">--Devin Akin<br />CTO Planet 3 Wireless</span>",
"I wish all our students had access to this Toolkit - it has everything you need to \'play\' with Wireless LANs and do Security Assessments.<br /><br /><span class=\"comment_by\">--David Coleman<br />AirSpy</span>");

function UpdateComment(cnum,qnum){
 var cnum = cnum || 0;
 var qnum = qnum || 0;
 if (cnum == 0) {
  var r, r2, Comment = document.getElementById("comment_1");
  r=Math.floor(Math.random()*comments.length);
  Comment.innerHTML = comments[r];
  do{
    r2=Math.floor(Math.random()*comments.length);
  } while (r==r2);
  Comment = document.getElementById("comment_2");
  Comment.innerHTML = comments[r2];
  r = r2;
 } else {
 var r, Comment = document.getElementById("comment_" + String(cnum));
 do{
   r=Math.floor(Math.random()*comments.length);
 } while (r==qnum);
 Comment.innerHTML = comments[r];
 }
 window.setTimeout("UpdateComment("+((cnum == 1) ? 2 : 1)+","+r+");", 10 * 1000);
}
