function promonews_quicksearch_categoryoptions(categoryid, TOTAL_CHKBOX_TO_DISPLAY,xszPAGEID, xEXTRAPARAM){	

//alert("!!!!!!!!!!!!!!!!!");
//alert("categoryid!!!!"+categoryid);
//alert("total"+TOTAL_CHKBOX_TO_DISPLAY);
	var xmlhttp=null;
    var urlPROMONEWS = PROMO_NEWS_PAGE_URL;
//	alert(urlPROMONEWS)
    var szURLParams = "";
		var xszPAGEID="quicksearchcategory";
	  var xszCSSID="indexIntro"; 
    // code for Mozilla, etc.
    if (window.XMLHttpRequest)
    {
        xmlhttp=new XMLHttpRequest();
    }
    // code for IE
    else if (window.ActiveXObject)
    {
        xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
    }

    if (xmlhttp!=null)
    {

        xmlhttp.open("POST","httpproxy.php" , true);

        xmlhttp.onreadystatechange = function()
							{
								if (xmlhttp.readyState == 4)
								{
									if (xmlhttp.status == 200)
									{	
									
										//alert("httppage"+xmlhttp.status);
									//	alert(xmlhttp.responseText);
									
										//something has been returned
										//promo_searchhandler_quick(xmlhttp.responseText, xszCSSID);
										//alert(xmlhttp.responseText);
										promo_searchhandler_quick(xmlhttp.responseText, xszCSSID);
									}
									else
									{
										//error has occurred
										promo_statuserror(xmlhttp.status, xmlhttp.statusText);
									}
								}
							}

			
         szURLParams += "pagelabel1=" + xszPAGEID;
         szURLParams += "&access_code=" + ACCESSCODE;
		 szURLParams += "&categoryid=" + categoryid;
		  szURLParams += "&noofoptions=" + TOTAL_CHKBOX_TO_DISPLAY;
		//if(xEXTRAPARAM != null) { szURLParams += xEXTRAPARAM; }
         var szFullURL = urlPROMONEWS+'?' + szURLParams;

         /* Send the POST request */
         xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
      //alert(szFullURL);
         //xmlhttp.send(szURLParams);
		 xmlhttp.send("url=" + escape(szFullURL));
    }
}


function promo_searchhandler_quick(xohttp, xszCSSID)
{	
	
    promo_cleardiv(xszCSSID);
	
	xohttp = xohttp.replace(/\n/,"");
	xohttp = xohttp.replace(/\t/,"");
	
	
	try //Internet Explorer
	  {	
	  xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
	  xmlDoc.async="false";
	  xmlDoc.loadXML(xohttp);
	  }
	catch(e)
	  {
	  try //Firefox, Mozilla, Opera, etc.
	  {
	  parser=new DOMParser();
	  xmlDoc=parser.parseFromString(xohttp,"text/xml");
	  }
	  catch(e)
	  {
	  alert(e.message);
	  return;
	  }
	}
	//alert(xmlDoc.getElementsByTagName("product")[0].getAttribute("id"));
	//alert(xmlDoc.getElementsByTagName("product").length);
	strcontent="";
	cntarr=xmlDoc.getElementsByTagName("product").length;
	//alert(cntarr);
    for(i=0;i<cntarr;i++)
	{
		if(i==0)
			strcontent="<p ><input type='checkbox' class='checkbox' value='" +xmlDoc.getElementsByTagName("product")[i].getAttribute("id")+"' name='keywords[]' >&nbsp;"+xmlDoc.getElementsByTagName("product")[i].getAttribute("id")+"</p>";
		else
		{
			strcontent=strcontent+ "<p ><input type='checkbox' class='checkbox' value='" +xmlDoc.getElementsByTagName("product")[i].getAttribute("id")+"' name='keywords[]' >&nbsp;"+xmlDoc.getElementsByTagName("product")[i].getAttribute("id")+"</p>";
		}
		
	}	
	var oElement = document.getElementById(xszCSSID);	
	//alert("xszCSSID"+xszCSSID);
	//alert("oElement"+oElement);
	//alert("categoryid"+document.frmAdvancedSearch.categoryid.value);
	if(document.frmAdvancedSearch.categoryid.value){
		//alert("!!!");
		quicksearchtogglecategory('categoryid',document.frmAdvancedSearch.categoryid.value)
		
	}
		oElement.innerHTML +=strcontent;

}