function checkgdstatus()
{	
//	alert(1);
	

	$.ajax({
	
  				url: "http://www.enggresources.com/placements/onlinegd/checkgdstatus.php?last_joined=0",
				  cache: false,
			  success: function(html){
			  //alert(html);
			 // pre=$("#posts_div").html();
			  	if(html!='0')
			  	{
					
					if(html.length==1)
					{
						
						 document.getElementById("gd_status").style.height='25px';
						$("#gd_status").html( html + " user(s) active in group discussion <a href='/placements/gd.php'>Join now</a>" );
						 $("#gd_status").fadeIn("slow");	
					}
					else
					{
							document.getElementById("gd_status").style.height='80px';
							$("#gd_status").html( html );
						 $("#gd_status").fadeIn("slow");		
					}
				   	 
					
				}
				else
					$("#gd_status").fadeOut("slow");
				
 				var t=setTimeout("checkgdstatus()", 10000);

			  }
			  
		});
}
checkgdstatus();