<!--
function loadcontent(url)// from an example from www.w3schools.com/ajax
{
var xmlhttp;
if (url=="")
  {
  document.getElementById("maincontent").innerHTML="";
  return;
  }
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("maincontent").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET",url,true);
xmlhttp.send();
}
function look(url)
 {
 newwindow=window.open(url,'name','height=150,width=800,top=300,screenY=300,left=200,screenX=200');
 if (window.focus) {newwindow.focus()}
 }
function loadformcontent() //above function adapted to receive form submissions
{
var xmlhttp;

 str=document.forms["seachform"]["search"].value;

if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("maincontent").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","search.asp?search="+str,true);
xmlhttp.send();
}
function underscore(str) {
	sOutput = new String(str);
		sOutput = sOutput.replace(/\b([^\:]\w[^\:\?]+)/gi,	"<span style='text-decoration:underline'>$1<\/span>");
	return sOutput;
}
//-->
