function setupDropDownChangeEvent(a){countryDropDownID=a+"_ddlCountryPicker";regionDropDownID=a+"_ddlRegionPicker";$.ajax({type:"POST",url:"/Public/PublicWebMethods.aspx/GetRegionList",data:"{'isoCountry': '"+$("#"+countryDropDownID).attr("value")+"' }",contentType:"application/json; charset=utf-8",dataType:"json",success:function(c){c=c.d;numOfRegions=c.length;var b="";b+="<option value=''>Choose One</option>";if(numOfRegions==0){$("#"+regionDropDownID).attr("disabled",true)}else{for(i=0;i<numOfRegions;i++){b+="<option value='"+c[i]+"'>"+c[i]+"</option>"}$("#"+regionDropDownID).attr("disabled",false)}$("#"+regionDropDownID).empty();$("#"+regionDropDownID).append(b)}})}function setupDropDownChangeEvent2IDs(a,b){countryDropDownID=a;regionDropDownID=b;$.ajax({type:"POST",url:"/Public/PublicWebMethods.aspx/GetRegionList",data:"{'isoCountry': '"+$("#"+countryDropDownID).attr("value")+"' }",contentType:"application/json; charset=utf-8",dataType:"json",success:function(d){d=d.d;numOfRegions=d.length;var c="";c+="<option value=''>Choose One</option>";if(numOfRegions==0){$("#"+regionDropDownID).attr("disabled",true)}else{for(i=0;i<numOfRegions;i++){c+="<option value='"+d[i]+"'>"+d[i]+"</option>"}$("#"+regionDropDownID).attr("disabled",false)}$("#"+regionDropDownID).empty();$("#"+regionDropDownID).append(c)}})};