function GetDDL(xDDLArg,xDDLObj,xFilters){var URI='/cgi-bin/dev/ajax?'+xDDLArg;if(xFilters&&xFilters!==null){if(xFilters[0]!==':'){URI+=":"+xFilters;}
else{URI+=xFilters;}}
new Ajax.Request(URI,{onSuccess:function(transport){var response=eval(transport.responseText)||"no response text";for(var i=$(xDDLObj).length;i>=0;i--){$(xDDLObj).remove(i);}
var opt=new Option('All','');try{$(xDDLObj).add(opt,null);}
catch(ex){$(xDDLObj).add(opt);}
for(i=0;i<response.length;i++){try{$(xDDLObj).add(new Option(response[i].description,response[i].code),null);}
catch(ex){$(xDDLObj).add(new Option(response[i].description,response[i].code));}}
if(xDDLArg=="GETCOUNTRYDDL"){$('ddlCountry').value='SA';$('ddlCountry').onchange();$('ddlCountry').disabled='true';}},onFailure:function(){alert('Could not load information for the requested drop down list \''+DDObj+'\'');}});}
