function saveStats1() {

	// Uses starttime from head.php to save statistics value
	
	var stat2EndTime=new Date();

	if (_DEBUG)
		window.alert("Storing statistics 1");
		
	difference=stat2EndTime.getTime()-stat2StartTime.getTime();
	
	new Ajax.Request(mosConfigPath+'/index2.php',
		{
			method:'post',
			parameters: {task: 'savestats', type: '2', value: difference, page: statPage, sub: statSub, uniqe: stat2EndTime.getTime()},
			onSuccess:	function(transport) {
							var response = transport.responseText;							
							// Don't remove the next error check!!!!!!!
							if (response.indexOf("ok")!=0) //what error does this line checks??						
								window.alert(response); //this sometimes and often displays in Firefox with no text in some application
							
						},
			onFailure: function(){ alert('An unknown error has occured in saving statistics. Please contact your administrator.') }
		}
	);
	
}
addOnLoadFunction(saveStats1);