var xmlHttp

function showUser(str,value)
{ 
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url="shopby.php"
url=url+"?page="+str
url=url+"&option="+value
xmlHttp.onreadystatechange=stateChanged 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function stateChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 document.getElementById("myDetail").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;
}

var mstatus=0;
function showmanu()
{

if (mstatus==0){
	document.getElementById("showme").innerText="Show Manufacturers"
	document.getElementById("mdetail_txt").style.display="none"
	
	mstatus=1;
} else {
	
	document.getElementById("showme").innerText="Hide Manufacturers"
	document.getElementById("mdetail_txt").style.display="block"
	mstatus=0;
}

}


var pstatus=0;
function showprice()
{

if (pstatus==0){
	document.getElementById("p_showme").innerText="Show Price"
	document.getElementById("pdetail_txt").style.display="none"
	pstatus=1;
} else {
	
	document.getElementById("p_showme").innerText="Hide Price"
	document.getElementById("pdetail_txt").style.display="block"

	
pstatus=0;
}

}


function showwatts()
{

 if (document.getElementById("wdetail_txt").style.display=="block"){
	document.getElementById("w_showme").innerText="Show Watts"
	document.getElementById("wdetail_txt").style.display="none"
 } else {
	document.getElementById("w_showme").innerText="Hide Watts"
	document.getElementById("wdetail_txt").style.display="block"
	document.getElementById("wdetail_txt").style.cursor="pointer"
 }
}


function CookieGroup(x) 
{
document.getElementById("txtOutput").innerText= x ;//window.event.srcElement.value;
}
