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 showbbats(iDID)
{ 
	var url="getpage.php?sid=" + Math.random() + "&q=" + iDID 
	xmlHttp=GetXmlHttpObject(stateChangedbbats)
	xmlHttp.open("GET", url , true)
	xmlHttp.send(null)
} 
function stateChangedbbats() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("bbatsmenu").innerHTML=xmlHttp.responseText 
	} 
}
function showsbats(iDID)
{ 
	var url="getpage.php?sid=" + Math.random() + "&q=" + iDID 
	xmlHttp=GetXmlHttpObject(stateChangedsbats)
	xmlHttp.open("GET", url , true)
	xmlHttp.send(null)
} 
function stateChangedsbats() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("sbatsmenu").innerHTML=xmlHttp.responseText 
	} 
}

function showequip(iDID)
{ 
	var url="getpage.php?sid=" + Math.random() + "&q=" + iDID 
	xmlHttp=GetXmlHttpObject(stateChangedEquip)
	xmlHttp.open("GET", url , true)
	xmlHttp.send(null)
} 
function stateChangedEquip() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("equipmenu").innerHTML=xmlHttp.responseText 
	} 
}

// get color code

function getColorSize(pid,id,tpe)
{ 
	var url="getpage.php?iCID=" + pid + "&q=" + tpe + "&id="+ id
	xmlHttp=GetXmlHttpObject(stateChangedCS)
	xmlHttp.open("GET", url , true)
	xmlHttp.send(null)
} 
function stateChangedCS() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("colorsize").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
	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 
	} 
} 

function showStates(str,srch,cprice,cpn)//states'I/A
{ 
	var url="getpage.php?sid=" + Math.random() + "&q=" + str + "&srch=" + srch	+ "&cprice=" + cprice + "&cpn=" + cpn
	//showContactTimer(); // quickly begin the load bar
	//alert(srch);
	xmlHttp1=GetXmlHttpObject(stateChangedStates)
	xmlHttp1.open("GET", url , true)
	xmlHttp1.send(null)
	
} 

function stateChangedStates() 
{ 
	if (xmlHttp1.readyState==4 || xmlHttp1.readyState=="complete")
	{ 
		document.getElementById("divStates").innerHTML=xmlHttp1.responseText 
	} 
} 






//end

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



 

