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+'/stats.php',
		{
			method:'post',
			parameters: {task: 'savestats', type: '2', value: difference, page: statPage, sub: statSub, uniqe: stat2EndTime.getTime()},
			onSuccess:	function(transport) {
							var response = transport.responseText;
							
							//if (response.indexOf("ok")!=0)
								//window.alert(response);
						},
			onFailure: function(){ alert('An unknown error has occured in saving statistics. Please contact your administrator.') }
		}
	);
	
}

addOnLoadFunction(saveStats1);