<!--
 function validated(string) {
  var i = 0;
  var output = '';
  for(valid="123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\""; i < string.length; i++) {
   if(valid.indexOf(string.charAt(i)) != -1) {
    output += string.charAt(i);
   }
   else {
    output += " ";
   }
  }
  return output;
 }
 function openWin() {
  window.open('website.html','websiteIndex','toolbar=no,location=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=300,height=450');
 }
 function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array;
  for(i=0;i<(a.length-2);i+=3)
  if ((x=MM_findObj(a[i]))!=null) {
   document.MM_sr[j++]=x;
   if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];
  }
 }
 function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr;
  for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
 }
 function MM_preloadImages() { //v3.0
  var d=document; 
  if(d.images) {
   if(!d.MM_p) d.MM_p=new Array();
   var i,j=d.MM_p.length,a=MM_preloadImages.arguments;
   for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0) {
    d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];
   }
  }
 }
 function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
 }
 function MM_findObj(n, d) { //v4.0
  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 && document.getElementById) x=document.getElementById(n); return x;
 }
 function redirectSearch () {
  var search_type = "people";
  if(document.redirect_search.search_type.options[document.redirect_search.search_type.selectedIndex].value) {
   search_type = document.redirect_search.search_type.options[document.redirect_search.search_type.selectedIndex].value
  }
  if(search_type == "people") {
   document.redirect_search.action='/cgi-local/ldapweb';
   document.redirect_search.method='POST';
   document.redirect_search.submit();
   return(true);
  }
  else if(search_type == "uva_web") {
   url = "http://www.google.com/univ/virginia";
   query_string = "hl=en&btnG=Google+Search&q="+escape(document.redirect_search.whitepages.value);
   window.open(url+"?"+query_string, "window1");
   return(false);
  }  
  else if(search_type == "library") {
   document.redirect_search.action='http://virgo.lib.virginia.edu/uhtbin/cgisirsi/x/0/5';
   document.redirect_search.method='POST';
   document.redirect_search.srchfield1.value='GENERAL^SUBJECT^GENERAL^^keyword anywhere';
   document.redirect_search.user_id.value='tomj';
   document.redirect_search.password.value='tomj';
   document.redirect_search.searchdata1.value = document.redirect_search.whitepages.value;
   document.redirect_search.submit();
   // alert (document.redirect_search.searchdata1.value);
   return(true);
  } 
  else {
   url = "http://www.google.com/search";
   query_string = "hl=en&btnG=Google+Search&q="+escape(document.redirect_search.whitepages.value);
   window.open(url+"?"+query_string, "window1");
   return(false);
  }
 }
 function writemail(a,b,c,d) {
  if (d) {
   the_string = "<a href='mailto:"+a+"@"+b+"."+c+"'>"+d+"</a>";
  }
  else {
   the_string = "<a href='mailto:"+a+"@"+b+"."+c+"'>"+a+"@"+b+"."+c+"</a>";
  }
  return (the_string);
 }
 function writemail_map(shape, coords, user, domain) {
  the_string = "<area shape="+shape+" coords="+coords+" href=mailto:"+user+"@"+domain+">";
  return (the_string);
 }
 function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {
   if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage;
   }
   else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
  }
  MM_reloadPage(true);
 }
 function setActiveStyleSheet(title) {
  var i, a, main;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
   if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {
    a.disabled = true;
    if(a.getAttribute("title") == title) a.disabled = false;
   }
  }
 } 
 
var offset=0;
var browser=(((navigator.appName=="Netscape")&&(parseInt(navigator.appVersion)>=4))||
((navigator.appName=="Microsoft Internet Explorer")&&(parseInt(navigator.appVersion)>=4)))
if (browser){
        bt1a=new Image();       bt1b=new Image();
        bt2a=new Image();       bt2b=new Image();
        bt3a=new Image();       bt3b=new Image();
        bt4a=new Image();       bt4b=new Image();
        bt5a=new Image();       bt5b=new Image();
        bt6a=new Image();       bt6b=new Image();
        bt7a=new Image();       bt7b=new Image();
        bt8a=new Image();       bt8b=new Image();
        bt9a=new Image();       bt9b=new Image();
        bt10a=new Image();      bt10b=new Image();
        bt11a=new Image();      bt11b=new Image();

	bt1a.src="images/bth_from.gif";            bt1b.src="images/bth_from_c.gif";
        bt2a.src="images/bth_year.gif";            bt2b.src="images/bth_year_c.gif";
        bt3a.src="images/bth_visi.gif";            bt3b.src="images/bth_visi_c.gif";
        bt4a.src="images/bth_stud.gif";            bt4b.src="images/bth_stud_c.gif";
        bt5a.src="images/bth_inte.gif";            bt5b.src="images/bth_inte_c.gif";
        bt6a.src="images/bth_facu.gif";            bt6b.src="images/bth_facu_c.gif";
        bt7a.src="images/bth_rese.gif";            bt7b.src="images/bth_rese_c.gif";
        bt8a.src="images/bth_heal.gif";            bt8b.src="images/bth_heal_c.gif";
        bt9a.src="images/bth_athl.gif";            bt9b.src="images/bth_athl_c.gif";
        bt10a.src="images/bth_fina.gif";           bt10b.src="images/bth_fina_c.gif";
        bt11a.src="images/bth_cred.gif";           bt11b.src="images/bth_cred_c.gif";
        
}

	function show(num){
        if (browser)
        	    {if (num=="1")  document.images.from.src=bt1a.src;
                     if (num=="10") document.images.from.src=bt1b.src;
	 	     if (num=="2")  document.images.year.src=bt2a.src;
	 	     if (num=="20") document.images.year.src=bt2b.src;
		     if (num=="3")  document.images.vision.src=bt3a.src;
		     if (num=="30") document.images.vision.src=bt3b.src;
		     if (num=="4")  document.images.students.src=bt4a.src;
		     if (num=="40") document.images.students.src=bt4b.src;
		     if (num=="5")  document.images.international.src=bt5a.src;
		     if (num=="50") document.images.international.src=bt5b.src;
		     if (num=="6")  document.images.faculty.src=bt6a.src;
		     if (num=="60") document.images.faculty.src=bt6b.src;
		     if (num=="7")  document.images.research.src=bt7a.src;
		     if (num=="70") document.images.research.src=bt7b.src;
		     if (num=="8")  document.images.health.src=bt8a.src;
		     if (num=="80") document.images.health.src=bt8b.src;
		     if (num=="9")  document.images.athletics.src=bt9a.src;
		     if (num=="90") document.images.athletics.src=bt9b.src;
		     if (num=="11")  document.images.finance.src=bt10a.src;
		     if (num=="110") document.images.finance.src=bt10b.src;
		     if (num=="12")  document.images.credits.src=bt11a.src;
		     if (num=="120") document.images.credits.src=bt11b.src;
        
        }

}
 //-->