function swapExtras(page_id)
{
	var selectedPageType=document.forms['editpage'].page_type.options[document.forms['editpage'].page_type.selectedIndex].value;
	if(selectedPageType=='default')
	{
		document.getElementById('splashextras').innerHTML='';
	}
	else
	{
		document.getElementById('splashextras').innerHTML='<br />Loading Editor Modules...';
		//ajax request
		var xmlHttp;
		if (window.XMLHttpRequest)     // Object of the current windows
		{ 
			xmlHttp = new XMLHttpRequest();     // Firefox, Safari, ...
		} 
		else if (window.ActiveXObject)   // ActiveX version
		{
			xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");  // Internet Explorer 
		} 
		xmlHttp.onreadystatechange  = function()
		{ 
			if(xmlHttp.readyState  == 4)
			{
				if(xmlHttp.status  == 200) 
				{
					//alert(xmlHttp.responseText);
					document.getElementById('splashextras').innerHTML=xmlHttp.responseText;
				}//end if status==200
			}//end readystate 4
		} //end subfunction to execute on state change	
		xmlHttp.open('GET', "../includes/getcontents.php?page_id="+page_id, true); 
		xmlHttp.send(null);
	}
}