//Prevents IE4.0 from returning an error due to support for getElementById
function searchfocus(){
if(document.getElementById && document.getElementById('frmSearch').txtSearch.value=='Search'){document.getElementById('frmSearch').txtSearch.value='';}

}

function checksearchterm(){
if (document.getElementById('frmSearch').txtSearch.value.length<=1) {
alert("Please enter a search phrase, then click 'Go' to view the details of pages found.")
return false;
}
}

//more hacks for IE6 - Causes website to flicker in IE6 browser
if (window.createPopup && document.compatMode && document.compatMode=="CSS1Compat")
{
  document.onreadystatechange = onresize = function fixIE6AbsPos()
  {
    if (!document.body) return;
    if (document.body.style.margin != "0px") document.body.style.margin = 0;
    onresize = null;
    document.body.style.height = 0;
    setTimeout(function(){ document.body.style.height = document.documentElement.scrollHeight+'px'; }, 1);
    setTimeout(function(){ onresize = fixIE6AbsPos; }, 100);
  }
}

