//返回远程数据，
//URL:文件名称，例：/demo/a.aspx
//DIV:元素ID 例 <div id='demo'></div> 则为：'#demo'
//例：REQUEST('/demo/test.aspx','#demo');
Server="/";
function REQUEST(URL,DIV,PARAM){
$(DIV).empty();
$(DIV).append("<div style='padding:3px;'><img src='/images/ajax_load.gif'></div>");
$.ajax(
	   {  
	    type: "post",  
	    url: URL,  
		data:PARAM,
	    beforeSend: function(XMLHttpRequest){  
	    //ShowLoading();  
	    },  
	    
	    success: function(data, textStatus){  
		$(DIV).empty();
	    $(DIV).append(data);  
		},
		
	    complete: function(XMLHttpRequest, textStatus){   
	    //HideLoading();  
	    },  
	    
	    error: function(){   
	    $(DIV).empty();
	    $(DIV).append("系统繁忙，请稍后再试"); 
	    }
	    }
	    );
}

function REQUEST_script(URL,PARAM){
$.ajax(
	   {  
	    type: "post",  
	    url: URL,  
		data:PARAM,
		dataType: "script",
	    beforeSend: function(XMLHttpRequest){  
	    //ShowLoading();  
	    },  
	    
	    success: function(data, textStatus){  
		//alert(data);
		},
		
	    complete: function(XMLHttpRequest, textStatus){   
	    //HideLoading();  
	    },  
	    
	    error: function(){   
	    }
	    }
	    );
}
