       pic1on = new Image( );
       pic1on.src = "images/nav_apply_roll.gif";
       pic2on = new Image( );
       pic2on.src = "images/nav_faqs_roll.gif";
       pic3on = new Image( );
       pic3on.src = "images/nav_academics_roll.gif";
       pic4on = new Image( );
       pic4on.src = "images/nav_campus_roll.gif";
       pic5on = new Image( );
       pic5on.src = "images/nav_facts_roll.gif";
       pic6on = new Image( );
       pic6on.src = "images/nav_visit_roll.gif";
       pic7on = new Image( );
       pic7on.src = "images/nav_media_roll.gif";
       pic8on = new Image( );
       pic8on.src = "images/nav_finaid_roll.gif";
       pic9on = new Image( );
       pic9on.src = "images/nav_contact_roll.gif";
       pic10on = new Image( );
       pic10on.src = "images/navbar_sitemap_roll.gif";
       pic11on = new Image( );
       pic11on.src = "images/navbar_tour_roll.gif";
       pic12on = new Image( );
       pic12on.src = "images/navbar_staff_roll.gif";
       pic13on = new Image( );
       pic13on.src = "images/navbar_application_roll.gif";
       pic14on = new Image( );
       pic14on.src = "images/navbar_home_roll.gif";

       pic1off = new Image( );
       pic1off.src = "images/nav_apply.gif";
       pic2off = new Image( );
       pic2off.src = "images/nav_faqs.gif";
       pic3off = new Image( );
       pic3off.src = "images/nav_academics.gif";
       pic4off = new Image( );
       pic4off.src = "images/nav_campus.gif";
       pic5off = new Image( );
       pic5off.src = "images/nav_facts.gif";
       pic6off = new Image( );
       pic6off.src = "images/nav_visit.gif";
       pic7off = new Image( );
       pic7off.src = "images/nav_media.gif";
       pic8off = new Image( );
       pic8off.src = "images/nav_finaid.gif";
       pic9off = new Image( );
       pic9off.src = "images/nav_contact.gif";
       pic10off = new Image( );
       pic10off.src = "images/navbar_sitemap.gif";
       pic11off = new Image( );
       pic11off.src = "images/navbar_tour.gif";
       pic12off = new Image( );
       pic12off.src = "images/navbar_staff.gif";
       pic13off = new Image( );
       pic13off.src = "images/navbar_application.gif";
       pic14off = new Image( );
       pic14off.src = "images/navbar_home.gif";
       
  function img_act (imgName)   {
      imgOn = eval (imgName + "on.src");
      document [imgName].src = imgOn;
      }

  function img_inact (imgName)   {
      imgOff = eval (imgName + "off.src");
      document [imgName].src = imgOff;
      }
      
   function tourPop() {
      window.open("tour/tour.html","tourpop","toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,copyhistory=no,scrollbars=no,width=760,height=520");
   }

 function camPop(camName) {
window.open("media/" + camName + ".html",camName,"toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,copyhistory=no,scrollbars=no,width=372,height=308");
   }

 function camPopBig(camName) {
window.open("media/" + camName + ".html",camName,"toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,copyhistory=no,scrollbars=no,width=660,height=500");
   }


var defaultStr = 'Type your question here';
 
function isBlank(q) {
  var whitespace = new String(" \t\n\r");
 
  for (var i = 0; i<q.length; i++) {
    if (whitespace.indexOf(q.charAt(i)) == -1) {
      return false;
    }
  }
 
  return true;
}
 
function submitForm(){
  var d = document.questionForm;
  if (!isValidForm())
    return;
 
  d.submit();
}
 
function isValidForm(){
  var d = document.questionForm;
  if (d.question.value==defaultStr  ||  isBlank(d.question.value)) {
    return false;
  }
 
  d.action=' http://jhu.intelliresponse.com/results.jsp';
  d.requestType.value='NormalRequest';
  return true;
}
 
function topTen(){
  var d = document.questionForm;
  d.action=' http://jhu.intelliresponse.com/topQuestions.jsp';
  d.submit();
}
 
function clearForm(){
  var d = document.questionForm;
  d.id.value=-1;
  d.reset();
  d.question.focus();
  d.question.value='';
}
 
