function showAjax(obj, surl, stype, sdata, load, sasync, event, sX, sY, xyRelative, move)
{
	if (event)
	{
		coordinates(event);
	}
	
	if (!stype)
	{
		stype = 'get';
	}
	
	var loading_container = '';
    var loading_img = '';
    if (load)
    {
    	if ($.isArray(load))
    	{
    		/*if ($(load[2]).html().search('img') != -1)
    		{
        		pos1 = $(load[0]).html().search('<');
        		pos2 = $(load[0]).html().search('>');
        		
    			loading_img = $(load[2]).html().substring(pos1, pos2 + 1);
    			loading_container = load[0];
    		}*/
    		
    		loading(load[0], load[1], load[2]);
    	}
    	else
    	{
    		loading(load);
    	}
    	
    	if (obj == load)
    	{
    		load = null;
    	}
    }
    
    if (obj)
    {
	    if ($(obj).attr('class'))
	    {
	    	//$(obj).remove();
	    }
	    
	    if (sasync == null)
	    {
	    	sasync = true;
	    }
    }
    else
    {
    	sasync = false;
    }
    
    var temp = $.ajax({
        type: stype,
        url: surl,
        data: sdata,
        async: sasync,
        success: function(msg) {
    		if (msg != '' && msg.substr(0, 19) != '<?xml version="1.0"')
    		{
		        if (obj)
		        {
		    		if ($(obj).attr('id') == undefined)
		    		{
			            $('#foot').after('<div id="' + obj.substring(1) + '" class="popup"></div>');
			            if (xyRelative)
			            {            
			            	$(obj).css({'position':'absolute', 'left': x+sX, 'top':y+sY});
			            }
			            else
			            {
			            	$(obj).css({'position':'absolute', 'left': sX, 'top': sY});
			            }
		    		}
		            
		            $(obj).html(msg);
		            setTimeout("effectShow('" + obj + "')", 600);
		            if (move)
		            {
		                setTimeout("marginBorder('" + obj + "')", 500);
		            }
		        }
		        
		        if (load)
		        {
		        	//if (new_img)
		        	//{
		        	//	loading_img = new_img;
		        	//}
		        	
		        	if (loading_img)
		        	{
		        		setTimeout("loading('" + loading_container + "', '', '" + loading_img + "', false, false)", 100);
		        	}
		        	else
		        	{
		        		setTimeout("loading('" + load + "', '', '', false)", 100);
		        	}
		        }
    		}
    		else
    		{
                setLocation(baseUrl + '?session=clear');
    		}
        }               
    }).responseText;
    
    return temp;
}