var xmlHttp;
var myurl="../members/signup.php";
//var lastPrice_group;

function filterProductsSignup(price_group)
{ 
   url = "../members/signup.php";
   filterProducts(price_group,url)
}
function filterProductsSignupCT(price_group)
{ 
   url = "../members/signup_giftcertificate.php";
   filterProducts(price_group,url)
}

function filterProductsMemberCT(price_group)
{ 
   url = "../members/member_giftcertificate.php";
   filterProducts(price_group,url)
}
function filterProductsMember(price_group)
{ 
   url = "../members/member.php";
   filterProducts(price_group,url)
}

function filterProducts(price_group,url)
{ 
//alert("Step 1: Call filterProducts ");
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request");
 return;
 }

//alert("Step 2: url: " + url);
//lastPrice_group = price_group;

if (price_group == "000")
{
   url=url + "?sid="+Math.random();
}
else
{
  url=url + "?price_group=" + price_group;
  url=url+"&sid="+Math.random();
}
//alert("Step 3: url: " + url);

myurl = url;
xmlHttp.onreadystatechange=stateChanged;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}

function stateChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 //document.getElementById("txtHint").innerHTML=xmlHttp.responseText;
 
 window.location = myurl;
 
 document.getElementById("priceGroup").setvalue("100");
 //url="";
 //lastPrice_group ="";
 } 
}

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