var xmlHttp;

function show_info(project_id)
{

xmlHttp=GetXmlHttpObject()

if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request");
 return;
 } 
//document.getElementById("display"). innerHTML=xmlHttp.loadstatustext="<p align='left'><img src='/graphics/loading_small.gif' /></p>";
var url="/get_project.php";
url=url+"?id="+project_id;
url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=choiceChanged ;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
 

function choiceChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 
 document.getElementById("display"). innerHTML=xmlHttp.responseText;

 } 
}
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////

function search_cv(term,ref)
{

xmlHttp=GetXmlHttpObject()

if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request");
 return;
 } 

var url="/admin/get_engineers.php";
url=url+"?term="+term;
url=url+"&ref="+ref;
url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=termChanged ;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
 

function termChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 
 document.getElementById("display"). innerHTML=xmlHttp.responseText;

 } 
}
}
  
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////

function do_email(engineers,ref)
{

xmlHttp=GetXmlHttpObject()

if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request");
 return;
 } 

var url="/admin/do_email.php";
url=url+"?engineers="+engineers;
url=url+"&ref="+ref;
url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=emailChanged ;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
 

function emailChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 
 document.getElementById("display"). innerHTML=xmlHttp.responseText;

 } 
}
}
  



////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  

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;
}
