function ajaxInclude( elementId, fileUrl ) 
{
	// setup Ajax HTTP request
	var request = false
	if( window.XMLHttpRequest ) // Mozilla etc...
	{ 
		request = new XMLHttpRequest();
	}
	else if (window.ActiveXObject) // IE
	{ 
		try{ request = new ActiveXObject("Msxml2.XMLHTTP"); } 
		catch(e){ try{ request = new ActiveXObject("Microsoft.XMLHTTP"); }catch(e){} }
	}
	else
	{
		return false;
	}
	
	// send Ajax HTTP request 
	request.open( 'GET', fileUrl, false ); // GET the fileUrl synchronously 
	request.send( null );                  // send request, and wait for response
	updateInclude( elementId, request );   // call callback function with response
}
// Dynamic include
function updateInclude( elementId, request )
{
	if( window.location.href.indexOf("http") == -1 || request.status == 200 ) // ok
	{
		// update page using requested info
		var element = document.getElementById( elementId );
	    element.innerHTML = "";
	    element.innerHTML = request.responseText;
	}
}

var statnum = 0;
function statRefresh()
{
	if( statnum == 0 )
	{
	document.getElementById("statrefresh").innerHTML='<iframe id="timekeeper" src="timer01.html" width="0" height="0" marginwidth="0" marginheight="0" frameborder="0" style="visibility:hidden;"><\/iframe>'
	statnum = 1;
	}
	else
	{
	document.getElementById("statrefresh").innerHTML='<iframe id="timekeeper" src="timer02.html" width="0" height="0" marginwidth="0" marginheight="0" frameborder="0" style="visibility:hidden;"><\/iframe>'
	statnum = 0;
	}
}