jQuery.extend({
	chunk : 
	function(str, chunk, separator) 
	{
		if(separator == undefined)	
			separator = ':';
		if(chunk == undefined)	
			chunk = 0;
		
		chunks = str.split(separator);
		//alert(str+' => '+chunk+' => '+separator+' ===> '+chunks[chunk]);
			//return;	
//			alert(chunk);
		return chunks[chunk];
	}
});


jQuery.fn.extend({
	appendPost :
	function(url, data, type)
	{
		$element = $(this);
		if(!data) 
			data = {};
		if(!type) 
			type = 'html';
			
		$.post(url, 
			   data, 
			   function(dataRes){
			   	   $element.append(dataRes);
			   },
			   type
		);
		return $(this);
	}
});

