_cfscriptLocation = _DBSVARS.request.cfcs_machine_root + "/common/dbs_ajax.cfc";

function errorHandler(message)
{
	$('disabledZone').style.visibility = 'hidden';
    if (typeof message == "object" && message.name == "Error" && message.description)
    {
        alert("Error: " + message.description);
    }
    else
    {
        alert(message);
    }
};


function ajax_get_data(a_params, v_result_function)
	{	
  		var v_string = '';
  		v_string = String.fromCharCode(179)+ 'cfroot^' + _DBSVARS.request.cfroot + String.fromCharCode(179)
		for (x in a_params)
		{	
 			v_string += a_params[x] + String.fromCharCode(179);
		}
 		
  	
     if (!v_result_function)	
  	    	DWREngine._execute(_cfscriptLocation, null, 'ajax_get_data', v_string, ajax_get_lookup_result );
			
     else if (v_result_function == 'bulk_move')
 		{   
 			DWREngine._execute(_cfscriptLocation, null, 'ajax_get_data', v_string, bulk_move_result );
		}
		
     else
 		{   
 			v_not_lookup = 'yes';
			DWREngine._execute(_cfscriptLocation, null, 'ajax_get_data', v_string, v_not_lookup, 
			(typeof v_result_function == 'function') ?  v_result_function : eval(v_result_function) );
		}		
}		
	


			
