// JavaScript Document

function getContents(page){
	
	var container = document.getElementById('contentContainer');
	
	if(container){
		
		container.innerHTML = '<div id="loading">loading...</div>';

		advAJAX.get({url: page, 
					onSuccess : function(obj) { 
									var txt = obj.responseText;
									
									container.innerHTML = txt;
								},
					onError : function(obj) { alert('Problem to accessing the server');loading(); }
				});
	}
}
