<!--

function clearDefault(el) {
  if (el.defaultValue==el.value) el.value = ""
}


var x;
quotes = new Array
quotes[0] = "When I get a NEW idea, I Google how others have been doing 'it' for years! - Bill Newman and thousands before and after"
quotes[1] = "Anyone who isn't confused really doesn't understand the situation - Edward R. Murrow"
quotes[2] = "Few things are harder to put up with than a good example. - Mark Twain"
quotes[3] = "Getting information from the Internet is like getting a glass of water from the Niagara. - Arthur C. Clarke"
quotes[4] = "I love deadlines. I like the whooshing sound they make as they fly by. - Douglas Adams"
quotes[5] = "Suppose you were an idiot. And suppose you were a member of Congress. But I repeat myself. - Mark Twain"
quotes[6] = "Anyone who has never made a mistake has never tried anything new. - A Einstein"
quotes[7] = "What if there were no hypothetical situations? - Andrew Kohlsmith"
quotes[8] = "640K ought to be enough for anybody. - Bill Gates, 1981"
quotes[9] = "Democracy is a device that insures we shall be governed no better than we deserve. - George Bernard Shaw"

quotes[10] = "If Al Gore invented the Internet, I invented spell cheque. - Dan Quayle"
quotes[11] = "Keyboard Error, Press  to continue. - PC BIOS error message"
quotes[12] = "Yes means no and No means yes. Delete all your files? [Y/N] - P Tomblin of  alt.sysadmin.recovery"
quotes[13] = "User error. Replace user and press any key to continue. - Unknown"
quotes[14] = "The day I made the statement about the Internet, I was tired because I'd been up all night inventing the Camcorder. - Al Gore"
quotes[15] = "It is a miracle that curiosity survives formal education. - A Einstein" 
quotes[16] = "The secret to creativity is knowing how to hide your sources. - A Einstein"
quotes[17]= "Truth is what stands the test of experience. - A Einstein"
quotes[18] = "There's no easy way out. If there were, I would have bought it. And believe me, it would be one of my favorite things! - O Winfrey"
quotes[19] = "Man did not weave the web of life, he is merely a strand in it. Whatever he does to the web, he does to himself. - Chief Sealth (Seattle)"
quotes[20] = "If computers get too powerful, we can organize them into a committee ~ that will do them in. - Bradley's Bromide"
quotes[21] = "Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind. - Dr.Seuss"
quotes[22] = "I hear and I forget. I see and I remember. I do and I understand. - Confucius"
quotes[23] = "Reality leaves a lot to the imagination. - John Lennon"
quotes[24] = "The only thing that interferes with my learning is my education. - A Einstein"
quotes[25] = "The best way to predict the future is to invent it. - Alan Kaye"
quotes[26] = "If you don't fail at least 90 percent of the time, you're not aiming high enough. - C Crawford on Game Design"
quotes[27] = "Do what you love and do it really, really well - Bruce & Lynda"
quotes[28] = "Make your mistakes, frequently, fast & often - just not repetively! - Bruce & Lynda"
   function rotatingquotes()
   {
      var pntr = Math.round(Math.random()*23);  
      var quote = quotes[pntr];
      if (document.layers)
      {
         with (document.layers["someid"].document)
         {
            open();
            write(quote);
            close();
         }
      }
      else
      {
         if (document.getElementById)
         {
            document.getElementById("someid").innerHTML=quote;
         }
         else
         {
            if (document.all)
            {
            document.all["someid"].innerHTML=quote;
            }
         }
      }
      setTimeout('doit()',7000);
   }
// End -->

function changeEmail(myName)
{
	//alert("myName: " + myName);
	
	if(myName == "Bill")
	{
		document.getElementById("ToEmail").setAttribute("value","williamnewman@gmail.com");
		document.getElementById("ToFirst").setAttribute("value","Bill");
	}else{
		document.getElementById("ToEmail").setAttribute("value","slnewman@sccd.ctc.edu");
		document.getElementById("ToFirst").setAttribute("value","Sara");
	}
	//alert(document.ourform.ToFirst.value);
}
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
  } if (errors) alert('The following error(s) occurred:\n'+errors);
  document.MM_returnValue = (errors == '');
}
//-->

