// JavaScript Document

//SAME function define in js_functions.js named as again_call_on_add_group
	group_page='show_profile_groups.php?user_profile_id='+document.getElementById('user_profile_id').value;
	group_request.open('POST', group_page);
		group_request.onreadystatechange = function () {
		if (group_request.readyState == 4) {
				responsestring = group_request.responseText;
				var list = responsestring.split("=");
				var list_name=list[0];
				var list_id=list[1];
				
				 var new_list_name = list_name.split(",");
				 var new_list_id=list_id.split(",");
			//alert(list_name+'-'+list_id);
			var mystring

			x=document.getElementById('all_groups');
			 for(var i=0; i<new_list_name.length;i++)
				 {
					
						 mystring = new_list_name[i].replace("@@@@@",",");
						 x.innerHTML += '<br/>'+'<a href=group_detail.php?group_id='+new_list_id[i]+'>'+mystring+'</a>';
						// x.innerHTML='<a href='+myAarray[i]+'>'+myAarray[i]+'</a><br>';
						 

									
				 }
		}
	}		
	group_request.send('');
	

