function ajl()
{
	if(arguments.length <= 1)
		return;
	var obj = new Object();
	obj.objectParams = '&dataset='+arguments[0];
	document.getElementById(arguments[0]).innerHTML = '<img src="/lib/images/ind_0.gif" border="0">';
	obj.libraryRoot = 'lib';
	obj.response='';
	obj.sBar=arguments[0];
	obj.dataSet = arguments[0];
	obj.formField = arguments[0];
	obj.actionType='DSALES';
	obj.objectParams = '&itemid='+URLEncode(convertor(arguments[1]));
	obj.objectParams += '&catid='+URLEncode(convertor(arguments[2]));
	obj.StatusText = new Array('','','');
	var counter = 0;
	
	ajRequest(obj);
}
function ajRequest(obj)
{
	if(obj.response == '')
	{
	
	 var req = new xmlHttp(obj.dataSet,'','');
	 urel = '/'+obj.libraryRoot+'/xml/catalog.xml.php?action='+URLEncode(obj.actionType)+obj.objectParams;

	    req.configure(urel,obj.sBar,obj.StatusText[0],obj.StatusText[1],obj.StatusText[2]);
	    
	    if(obj.useAddictFields != null)
	    {
	    	
	    	req.setAddictField('afields',obj.useAddictFields);
	    	for( i = 0; i < obj.useAddictFields.length; i++)
	    	{
	    		req.setAddictField(obj.useAddictFields[i],document.getElementById(obj.useAddictFields[i]));
	    	}
	    }
	    req.setAddictField('actionType',obj.actionType);
	       
	    req.callAsync = true; 
	    req.load(urel);
	    return req;
	}
	else
	{
	
		if(obj.afields != null)
		{
			var avr = explode(",",obj.afields);
			
			for(i =0; i < avr.length; i++)
			{
				document.getElementById(avr[i]).value = response.getElementsByTagName(avr[i])[0].firstChild.data;
			}
		}
		
		obj.formField.innerHTML = obj.dataText;
		}
}