function GetBrowser()
{
   var browser=navigator.appName
   return broswer  

}



function mouseOverHome()
{
	document.homelink.src ="images/home_hover.jpg"
}
function mouseOutHome()
{
	document.homelink.src ="images/home.jpg"
}
function mouseOverBio()
{
	document.biolink.src ="images/bio_hover.jpg"
}
function mouseOutBio()
{
	document.biolink.src ="images/bio_link.jpg"
}
function mouseOverCamera()
{
	document.cameralink.src ="images/obscura_hover.jpg"
}
function mouseOutCamera()
{
	document.cameralink.src ="images/obscura_link.jpg"
}

function mouseOverOccam()
{
	document.occamlink.src ="images/occam_hover.jpg"
}
function mouseOutOccam()
{
	document.occamlink.src ="images/occam_link.jpg"
}

var xmlHttp
function clicklink(str)
{
	   
        xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
		 {
		alert ("Browser does not support HTTP Request") 			
		return
 		}
	
	var url="dbase.php"
	url=url+"?q="+str
	url=url+"&sid="+Math.random() 
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)

}
function stateChanged() 
{ 
	
	alert (xmlHttp.readyState)	
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 	{ 
 		document.getElementById("txtHint").innerHTML=xmlHttp.responseText 
		alert ("StateCahnged")
 	} 
}
function GetXmlHttpObject()
{
	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;
}




