var jquery_loading="<img src='/images/loading_y.gif' />";
/*
animate = y / n... to applynamation or not
hidetime = After Message . hide automatically after X time... ZERO means.. no actino
*/
function ajaxpage_get(url, containerid, qstr, animate, hidetime){
	if(animate == 'undefined' || animate != 'y'){
		animate = 'n';
		hidetime = 0;
	}
	animate = 'y';
	$("#"+containerid).html(jquery_loading);
//	alert(url);
	$.post(url, {  },
	   	function(data){
			if(animate == 'y') $("#"+containerid).hide;
			$("#"+containerid).html(data);
			if(animate == 'y') $("#"+containerid).show('slide',{},500);
			if(hidetime > 0){
				//setTimeout('HideXLayer('+containerid+')',hidetime);
			}
	   });
}


function ajaxpage_post(url, containerid, action , qstr){
	//qstr = {parent : 12};
	$("#"+containerid).html(jquery_loading);
	$.post(url, qstr,
	   	function(data){
			$("#"+containerid).hide;
			$("#"+containerid).html(data);
			$("#"+containerid).show('slide',{},500);
	   });
}

function encodevalues(arr){
	return '';
}

function HideXLayer(ctr){
	$(ctr).hide('slide',{},500);
}
