var xmlHttp
function linkClick(add)
{
document.location= add 
}

function ajax()
 {
 var xmlHttp=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp;
}
	
function upMenu()
{
	if(xmlHttp.readyState==4)
		{
				document.getElementById('nav').innerHTML=xmlHttp.responseText;
		}
  }
  
function menuExpClick(id,elem)
{
	xmlHttp = ajax()
	if (xmlHttp==null)
	{
	  alert ("Your browser does not support AJAX!");
	  return;
	} 	
	//xmlHttp.onreadystatechange=upMenu(xmlHttp)
	var url="php/navMenu.php";
	url=url+"?id="+id;
	xmlHttp.onreadystatechange=upMenu;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);

}

function menuBanClick(add)
{
	linkClick(add);
}

function menuLinkClick(add)
{
	linkClick(add);
}

function sethigh()
{
if(document.getElementById("html1")!=null)
{
	a=document.getElementById("html1").style.top;
	setleft();
}
else
{
	a=0;
}
if(a<600)
{
	a=600;
}
b=document.getElementById("nav");
c=document.getElementById("htmlCell");
d=document.getElementById("bottom");
x=Number(a.substr(0,a.length - 2))+150;
b.style.height=a;
c.style.height=a;
d.style.top=x;
}

function setleft()
{
wid=screen.availWidth;
if(wid<1040)
{
	wid=1041
}
document.body.style.left=((wid-1000)/2)-20;

}
function dispSearch ()
{
$ser=document.getElementById("srchString").value
document.location="search results.php?search="+$ser
}

