// JavaScript Document
function ajaxLoadPage(){
	var args = ajaxLoadPage.arguments;	
	if(args[0]){
		var srcObj = document.getElementById(args[0]);
		if(srcObj){
			//srcObj.innerHTML = 'Loading...';	
			var xmlhttp = window.XMLHttpRequest?new XMLHttpRequest(): new ActiveXObject("Microsoft.XMLHTTP");
			xmlhttp.onreadystatechange = function(){
				if ((xmlhttp.readyState == 4) && (xmlhttp.status == 200)) {
					srcObj.innerHTML = xmlhttp.responseText;
				}
    		}
			xmlhttp.open("GET", args[1]); 
		    xmlhttp.send(null); 
		}else{
			alert('Nothing to do !');
		}
	}
}
