function fetchContent(mypage){
		
		
		
		var xhrFetchContent = false;
		
		
		if(window.XMLHttpRequest){
			
			try {
				
				xhrFetchContent = new XMLHttpRequest();
        	
			} catch(e) {
			
				xhrFetchContent = false;
        	
			}
		
		}else{
			
			try{
				
				xhrFetchContent = new ActiveXObject("Microsoft.XMLHTTP");
				
			}catch(e){
				
				xhrFetchContent = false;
			
			}
		
		}
		
	
		var divId = "mainContent";
		
		var showFetchData = function (){
		
			if(xhrFetchContent.readyState == 4) {
				
				if(xhrFetchContent.status == 200){
					
					var response = xhrFetchContent.responseText;
					
					document.getElementById(divId).innerHTML = response;
					
					
					
				}else{
					
					document.getElementById(divId).innerHTML = "Some error occured.";
					
				}
				
			}else{
				
				// loading
				
			}

		}
		
		// end Callback Function
		
		if(xhrFetchContent) {
		
			xhrFetchContent.onreadystatechange = showFetchData;
			
			
			
			xhrFetchContent.open("POST","get_content.php",true);
			
			xhrFetchContent.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); 
			
			xhrFetchContent.send("ajax=1&&mypage=" + mypage);
		
		}else{
			
			//document.getElementById("error").innerHTML = "Some error occured.";
			
		}

		
	}
