function updateAnalog() {   document.images['analogimage'].src = "http://www.sethi.org/cgi-bin/imageCall"; } function randomBkgColour() {   var currentNumber = parseInt(document.randombkgform.current.value);   var totalNumber = parseInt(document.randombkgform.number.value);   var randomNumber = currentNumber + 1;   if (randomNumber > totalNumber) 
      randomNumber = 1;   var tempName = "document.randombkgform.colour" + randomNumber + ".value";   var colourName = eval(tempName);   document.bgColor = colourName;   document.randombkgform.current.value = randomNumber; } function CheckMp3Access(listing) {   var mp3track = 0;   alertString = "So you understand that we're not distributing these suckers (heaven, and lawyers everywhere, forbid!) and that we're not serving them up, either... just giving you a little insight into the variety of our musical tastes... right?\n\n";   alertString += "If you *are* interested in snagging some mp3's, you might want to try a certain program that goes by the name of BitTorrent or Azureus (search for them on google.com)... but you didn't hear about it from us!";   expiry = new Date();   expiry.setMonth(expiry.getMonth()+1);   if ( getCookie("visited_mp3") ) {     mp3track = 1;   } else {     if (confirm(alertString)) {       setCookie("visited_mp3", 1);       mp3track = 1;     }   }   if (listing == 1 && mp3track) {     location.href = "/mpegs/";   } else if (mp3track) {     document.getElementById('poplist').submit();   } } function getBrowserKind() {   var returnString = navigator.appName;   if (navigator.appName.indexOf("Netscape") != -1) {     returnString += " Navigator";     returnString += " version " + navigator.appVersion.split(" (")[0];   } else {     browserVersion = navigator.userAgent.split("MSIE ")[1].split(";")[0];     returnString += " version " + browserVersion;   }   return returnString; } function CheckPhotoAccess() {   expiry = new Date();   expiry.setMonth(expiry.getMonth()+1);   if ( getCookie("visited_photo") ) {     return true;   } else {     setCookie("visited_photo", 1);   }   alert ("Warning!  Warning!  Danger, Will Robinson, Danger!!!  Image Intensive Page ahead...");   var responseTime = 0;   var howMany = 0;   while (responseTime < 15) {     howMany++;     var now = new Date();     timeEntered = now.getTime();  // Gets time in ms since 1-1-70 
    alertString2 = " [the kitchen]";     if (window.document.referrer) {       alertString2 = " [" + getRefName() + "]";     }     alertString = "Please take the next 15 seconds to read the following important notice.\n\n"; // change read to carefully read? 
    alertString += "By clicking OK below, you hereby agree to SIGN OUR GUESTBOOK.  If you fail to fulfill said agreement, you consent to abide by the consequences, dire though they be.  In order to enforce this legally, morally, and spiritually binding contract, we have recruited the help of Bill Gates of the MicroSloth Corporation and their new BBP (Big Brother Protocol) ver. 1.3. \n\n";     alertString += "Thanks to this cutting-edge technology, we are now recording not only things like where you came from" + alertString2 + ", the browser you're using [" + getBrowserKind() + "], etc. but we're also able to record your Social Security Number, Credit Card Numbers, what you did last night, and more!  \n\nSo, unless you want to be subjected to massive amounts of spam (both the canned and the email varieties) or want the wife to find out where you were last night, please be sure to SIGN OUR GUESTBOOK.  Besides, we need to make sure you're not just some kinda perv who wants to use our pictures to further his ill-gotten gains, right?  \n\nPlease choose OK to view the Sethi PhotoAlbum or CANCEL to skip it and go directly to SIGN OUR GUESTBOOK.  ";     var theirResponse = confirm(alertString);     now = new Date();  // Get date() again 
    var timeLeft = now.getTime();     responseTime = (timeLeft - timeEntered) / 1000;     if (responseTime < 15) {       if (howMany == 1) { 	alert ("Hey, waitaminnit!!!  You couldn't possibly have read that incredibly long, rambling, tangential diatribe in less than 15 seconds let alone in the blindingly fast " + responseTime + " seconds you actually spent on that beautiful, moving composition... \n\nOkay, let's try this again...");       } else if (howMany == 2) { 	alert ("Getting better... this time you only spent a mere " + responseTime + " seconds... but I have faith in you... you can get to 15 seconds next time...");       } else if (howMany == 3) { 	alert ("C'mon... you can do better than that!  You know, maybe you should look into getting your hands on some of that Ridalin if you can't sit still for a measly 15 seconds!  I mean... jeez... " + responseTime + " seconds?!?!?");       } else if (howMany == 4) { 	alert ("All right, for the slow kids in the back who're going through this for the " + howMany + "th time... " + responseTime + " seconds is NOT more than 15 seconds... try again... ");       } else if (howMany == 5) { 	alert ("Okay, fine... looks like you're never gonna put that beer down long enough to read this, eh?  Never mind then... just go on through, willya...");       } else { 	break;       }     }   }  // End of while loop 
  if (theirResponse) {     return true;   } else {     return false;   } } function initializeLogin() {   document.login.java.value = 1; } 
