﻿// *************************************************************************
// *                                                                       *
// * Pentia A/S http://www.pentia.dk/                                      *
// *                                                                       *
// * Author: as/Asim J Sikandar, ts/Thomas Stern                           *
// *                                                                       *
// * E-Mail: dev@pentia.dk                                                 *
// *                                                                       *
// *                                                                       *
// * Copyright(C) Pentia, 1998 - 2008. All rights reserved (R).            *
// *                                                                       *
// *                                                                       *
// * LEGAL NOTICE: This is unpublished proprietary source code of Pentia.  *
// * The contents of this file are protected by copyright laws and         *
// * international copyright treaties, as well as other intellectual       *
// * property laws and treaties. These contents may not be extracted,      *
// * copied, modified or redistributed either as a whole or part thereof   *
// * in any form, and may not be used directly in, or to assist with, the  *
// * creation of derivative works of any nature without prior written      *
// * permission from Pentia. The above copyright notice does not           *
// * evidence any actual or intended publication of this file.             *
// *                                                                       *
// *************************************************************************

function CRClickButton(buttonID, e)
{
	var code;

	if(!e) var e = window.event;
 
	if (e.keyCode) 
		code = e.keyCode;
	else 
		if (e.which) code = e.which;

	if(code==13) {
		e.cancelBubble = true;
		if (e.stopPropagation) e.stopPropagation();
		document.getElementById(buttonID).click();
		window.event.returnValue = false;
		return false;
	}
 
	return true;
	
}

function writeStatisticsCaller()
{
  writeStatistics();
}


