function stat_log(statisticsDB, temptable, data) {
	if (statisticsDB == "production") {
		count(temptable, data)
	}
}
function stat_mark(statisticsDB, temptable, data) {
	if (statisticsDB == "production") {
		mark(temptable, data)
	}
}
function stat_log_cc3(step, updateGlobalState) {
	var doUpdate = true;
	if (typeof updateGlobalState != 'undefined' && updateGlobalState == false) {
		doUpdate = false
	}
	if (typeof step != 'undefined' && doUpdate) {
		stat.currentStep = step
	}
	stat_log_cc3_private(step)
}
function stat_log_cc3_exit(exitLinktext) {
	stat_log_cc3_private(stat.currentStep, exitLinktext)
}
function stat_log_cc3_private(currentStep, exitLinktext) {
	var dTyp = '';
	var dLinktext = '';
	if (typeof exitLinktext != 'undefined') {
		dTyp = 'exit';
		dLinktext = exitLinktext
	}
	stat_log(stat.nw_db, stat.cc3_table, {
		'G_Session' : stat.cc3sessionCookie,
		'G_RunID' : stat.cc3runID,
		'D_Land' : stat.country,
		'D_Bnr' : stat.bnr,
		'D_GrpID' : stat.grp,
		'D_EinstiegKz' : stat.einstiegKZ,
		'D_Marke' : fabrikat,
		'D_Modell' : confmodell.modellcode,
		'D_Modellgruppe' : confmodell.modellgruppe,
		'D_ModellgruppeBez' : confmodell.bezeichnung,
		'D_AusstattungsVar' : confmodell.ausstattungvar,
		'D_Typ' : dTyp,
		'D_Linktext' : dLinktext,
		'D_Step' : currentStep
	})
}
function stat_log_cc3_maus(maus, mausbez) {
	stat_log(stat.nw_db, stat.cc3_table_maus, {
		'G_Session' : stat.cc3sessionCookie,
		'G_RunID' : stat.cc3runID,
		'D_Land' : stat.country,
		'D_Marke' : fabrikat,
		'D_Modell' : confmodell.modellcode,
		'D_ModellgruppeBez' : confmodell.bezeichnung,
		'D_MausCode' : maus,
		'D_MausBez!' : mausbez
	})
}
function stat_log_cc3_kontakt(currentStep, currentBnr, currentKatId, currentKatIdBeschr, currentAntwKz) {
	var dAntwKz = '';
	if (typeof currentAntwKz != 'undefined') {
		dAntwKz = currentAntwKz
	}
	stat_log(stat.nw_db, stat.cc3_table_kontakt, {
		'G_Session' : stat.cc3sessionCookie,
		'D_Land' : stat.country,
		'D_Bnr' : currentBnr,
		'D_GrpID' : stat.grp,
		'D_EinstiegKz' : stat.einstiegKZ,
		'D_Marke' : fabrikat,
		'D_Modell' : confmodell.modellcode,
		'D_Modellgruppe' : confmodell.modellgruppe,
		'D_ModellgruppeBez' : confmodell.bezeichnung,
		'D_AusstattungsVar' : confmodell.ausstattungvar,
		'D_KonKatID' : currentKatId,
		'D_KonKatBez' : currentKatIdBeschr,
		'D_AntwKZ' : dAntwKz,
		'D_Step' : currentStep,
		'D_CC3' : 'J'
	})
}
function stat_log_cc3_hsuche(currentStep, stat_table) {
	stat_log(stat.nw_db, stat_table, {
		'G_Session' : stat.cc3sessionCookie,
		'G_RunID' : stat.cc3runID,
		'D_Land' : stat.country,
		'D_Bnr' : stat.bnr,
		'D_GrpID' : stat.grp,
		'D_EinstiegKz' : stat.einstiegKZ,
		'D_Marke' : fabrikat,
		'D_Modell' : confmodell.modellcode,
		'D_Modellgruppe' : confmodell.modellgruppe,
		'D_ModellgruppeBez' : confmodell.bezeichnung,
		'D_AusstattungsVar' : confmodell.ausstattungvar,
		'D_Step' : currentStep
	})
}