	function shoutMsg()
	{
		shout_xmlhttp = ajaxFunction();

		shout_xmlhttp.onreadystatechange=function()
  		{
  			if (shout_xmlhttp.readyState==4 && shout_xmlhttp.status==200)
    			{
   				document.getElementById("divShout").innerHTML=shout_xmlhttp.responseText;
    			}
  		
  		}
		shout_xmlhttp.open("GET","shout-msg.php",true);
		shout_xmlhttp.send();
	}
	function showMaterial()
	{
		material_xmlhttp = ajaxFunction();

		material_xmlhttp.onreadystatechange=function()
  		{
  			if (material_xmlhttp.readyState==4 && material_xmlhttp.status==200)
    			{
   				document.getElementById("divM").innerHTML=material_xmlhttp.responseText;
				
    			}else{
				
				document.getElementById("divM").innerHTML= "<img src='web_images/ajax-loader.gif'>&nbsp;<font class='font01'>Fetching....</font>";
			}
  		}
		material_xmlhttp.open("GET","material-show.php",true);
		material_xmlhttp.send();
	}
	function paging(str)
	{
		next_xmlhttp = ajaxFunction();

		next_xmlhttp.onreadystatechange=function()
  		{
  			if (next_xmlhttp.readyState==4 && next_xmlhttp.status==200)
    			{
   				document.getElementById("divM").innerHTML=next_xmlhttp.responseText;
    			}else{
				
				document.getElementById("divM").innerHTML= "<img src='web_images/ajax-loader.gif'>&nbsp;<font class='font01'>Fetching....</font>";
			}
  		}
		next_xmlhttp.open("GET","material-show.php?page="+str,true);
		next_xmlhttp.send();
	}
	function shoutMsg_submit()
	{
		if(document.shoutout.shoutout_box.value == ""  || document.shoutout.shoutout_box.value == "NULL")
		{
			alert("You need to fill up your shout out!");
			return;
			
		}else{
		
			xmlhttp = ajaxFunction();
			
			xmlhttp.open("POST","shout-msg_submit.php");
			xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
			xmlhttp.send("shoutout_box="+document.shoutout.shoutout_box.value); 
	
			document.shoutout.shoutout_box.value = "";
			document.shoutout.shoutout_box.focus();
		}
		
		shoutMsg();

	}