
function getIndustries(thePBID){
	var url="../include/asp/getIndustries.asp";
	var pars="pbid="+thePBID;
	var myAjax=new Ajax.Request(
			url, 
			{
				method: "post", 
				parameters: pars,
				onComplete: setIndustries,
				evalScripts: true
			});
}

function setIndustries(theReq){
	var nv=eval(theReq.responseText);
	var theList=$("industry");
	theList.length=nv.length;
	for(i=0;i<nv.length;i++){
		theList.options[i]=new Option(nv[i].text,nv[i].value);
		theList.options[i].selected=nv[i].value==$F("CURR_INDUSTRY");
	}
	//$("CURR_INDUSTRY").value="";
}

function getCase(theBrandid,theIndustry){
	var pars="";
	pars+=isNaN(theBrandid)?"":"&brandid="+theBrandid;
	pars+=theIndustry==""?"":"&industry="+escape(theIndustry);
	pars=pars==""?"":"?"+pars.substr(1);
	location.href="02.asp"+pars;
}


