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_changeProp(objId,x,theProp,theValue) { //v9.0
  var obj = null; with (document){ if (getElementById)
  obj = getElementById(objId); }
  if (obj){
    if (theValue == true || theValue == false)
      eval("obj.style."+theProp+"="+theValue);
    else eval("obj.style."+theProp+"='"+theValue+"'");
  }
}

function KB_openRefWindow() {
   var nothingEntered = false;
   var tbl = document.quickSearch;
   var theURL;

   if (!(tbl.wikiSearch.value == null) && !(tbl.wikiSearch.value == "")) {
      theURL = "http://en.wikipedia.org/wiki/" + tbl.wikiSearch.value;
   }
   else if (!(tbl.wordSearch.value == null) && !(tbl.wordSearch.value == "")) {
      theURL = "http://dictionary.reference.com/browse/" + tbl.wordSearch.value;
   }
   else if (!(tbl.googleSearch.value == null) && !(tbl.googleSearch.value == "")) {
      theURL = "http://www.google.com/search?hl=en&q=" + tbl.googleSearch.value + "&btnG=Search";
   }
   else{
      // nothing entered!!
      nothingEntered = true;
   }

   if (!nothingEntered) {
      window.open(theURL, "refWindow");
   }
   
   // always return false because we never want this to be submitted to the server...
   return false;
}

