var xmlHttp

function xxx1(str,icid,srch)
{ 
	
	alert('hi again');
	//var url="membersimple.php?sid=" + Math.random() + "&q=" + str + "&iCID=" + icid + "&srch=" + srch	
	//showContactTimer(); // quickly begin the load bar
	//alert(icid);
	//xmlHttp=GetXmlHttpObject(stateChanged)
	//xmlHttp.open("GET", url , true)
	//xmlHttp.send(null)
	
} 

function showDept(iDID,iRID,name)
{ 
	var url="getSearchpage.php?sid=" + Math.random() + "&iRID=" + iRID + "&iDID=" + iDID + "&name=" + name
	xmlHttp=GetXmlHttpObject(stateChangedReg)
	xmlHttp.open("GET", url , true)
	xmlHttp.send(null)
} 
function stateChangedReg() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("selectDept").innerHTML=xmlHttp.responseText 
	} 
}
function makeProIDSession(iDID,iRID,name)
{ 	//alert(name);
	var url="getSearchpage.php?sid=" + Math.random() + "&iRID=" + iRID + "&iDID=" + iDID + "&name=" + name
	xmlHttp=GetXmlHttpObject(stateProID)
	xmlHttp.open("GET", url , true)
	xmlHttp.send(null)
} 
function stateProID() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("getproID").innerHTML=xmlHttp.responseText 
	} 
}



function maildetail(iDID,iRID,name)
{ 
//alert(iDID+iRID);
	var url="getSearchpage.php?sid=" + Math.random() + "&iRID=" + iRID + "&iDID=" + iDID + "&name=" + name
	xmlHttp=GetXmlHttpObject(stateMailDetails)
	xmlHttp.open("GET", url , true)
	xmlHttp.send(null)
} 
function stateMailDetails() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("maildetails").innerHTML=xmlHttp.responseText 
	} 
}



function makeGolfIDSession(iDID,iRID,name)
{ 	
	var url="getSearchpage.php?sid=" + Math.random() + "&iRID=" + iRID + "&iDID=" + iDID + "&name=" + name
	//alert(url)
	xmlHttp=GetXmlHttpObject(stateGolfID)
	xmlHttp.open("GET", url , true)
	xmlHttp.send(null)
} 
function stateGolfID() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("getgolfID").innerHTML=xmlHttp.responseText 
	} 
}


function showGolf(str,icid,srch)
{ 
	var url="getpage.php?sid=" + Math.random() + "&q=" + str + "&iCID=" + icid + "&srch=" + srch	
	//showContactTimer(); // quickly begin the load bar
	//alert(icid);
	xmlHttp=GetXmlHttpObject(stateChanged)
	xmlHttp.open("GET", url , true)
	xmlHttp.send(null)
	
} 

function stateChanged() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("txtContType").innerHTML=xmlHttp.responseText 
	} 
} 

function showLunch(str,icid,srch)
{ 
	var url="getpage.php?sid=" + Math.random() + "&q=" + str + "&iCID=" + icid + "&srch=" + srch	
	//showContactTimer(); // quickly begin the load bar
	//alert(icid);
	xmlHttp1=GetXmlHttpObject(stateChangedLun)
	xmlHttp1.open("GET", url , true)
	xmlHttp1.send(null)
	
} 

function stateChangedLun() 
{ 
	if (xmlHttp1.readyState==4 || xmlHttp1.readyState=="complete")
	{ 
		document.getElementById("desLunch").innerHTML=xmlHttp1.responseText 
	} 
} 

function showFee(str,icid,srch)
{ 
	var url="getpage.php?sid=" + Math.random() + "&q=" + str + "&iCID=" + icid + "&srch=" + srch	
	//showContactTimer(); // quickly begin the load bar
	//alert(icid);
	xmlHttp=GetXmlHttpObject(stateChangedFee)
	xmlHttp.open("GET", url , true)
	xmlHttp.send(null)
	
} 

function stateChangedFee() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("desFee").innerHTML=xmlHttp.responseText 
	} 
} 

function showTheme(str,icid,srch)
{ 
	var url="getpage.php?sid=" + Math.random() + "&q=" + str + "&iCID=" + icid + "&srch=" + srch	
	//showContactTimer(); // quickly begin the load bar
	//alert(icid);
	xmlHttp2=GetXmlHttpObject(stateChangedTheme)
	xmlHttp2.open("GET", url , true)
	xmlHttp2.send(null)
	
} 

function stateChangedTheme() 
{ 
	if (xmlHttp2.readyState==4 || xmlHttp2.readyState=="complete")
	{ 
		document.getElementById("destheme").innerHTML=xmlHttp2.responseText 
	} 
} 
//end


// select all clients

function selectallclients(icid,srch,str)
{ 	//alert(icid);
	var url="getpage.php?iCID=" + icid + "&srch=" + srch + "&q=" + str	
	xmlHttp=GetXmlHttpObject(stateChangedSAC)
	xmlHttp.open("GET", url , true)
	xmlHttp.send(null)
	
} 

function stateChangedSAC() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("selectallclients").innerHTML=xmlHttp.responseText 
	} 
} 


function GetXmlHttpObject(handler)
{ 
var objXmlHttp=null

if (navigator.userAgent.indexOf("Opera")>=0)
{
alert("This example doesn't work in Opera") 
return 
}
if (navigator.userAgent.indexOf("MSIE")>=0)
{ 
var strName="Msxml2.XMLHTTP"
if (navigator.appVersion.indexOf("MSIE 5.5")>=0)
{
strName="Microsoft.XMLHTTP"
} 
try
{ 
objXmlHttp=new ActiveXObject(strName)
objXmlHttp.onreadystatechange=handler 
return objXmlHttp
} 
catch(e)
{ 
alert("Error. Scripting for ActiveX might be disabled") 
return 
} 
} 
if (navigator.userAgent.indexOf("Mozilla")>=0)
{
objXmlHttp=new XMLHttpRequest()
objXmlHttp.onload=handler
objXmlHttp.onerror=handler 
return objXmlHttp
}
} 

function showContactTimer () {
	var loader = document.getElementById('loadBar');
	loader.style.display = 'block';
	sentTimer = setTimeout("hideContactTimer()",1000);
}
function hideContactTimer () {
	var loader = document.getElementById('loadBar');
	loader.style.display = "none";
}

function showContactTimer1 () {
	var loader = document.getElementById('loadBar1');
	loader.style.display = 'block';
	sentTimer = setTimeout("hideContactTimer1()",1000);
}
function hideContactTimer1 () {
	var loader = document.getElementById('loadBar1');
	loader.style.display = "none";
}



 

