var xqt = '';

function ovInit(text) {
	if (navigator.appName == "Microsoft Internet Explorer") {
		var confirmBoxTop = document.body.scrollTop+'px';
		var confirmBoxLeft = document.body.scrollLeft+'px';
	}
	else {
		//var confirmBoxTop = '';
		var confirmBoxTop = window.pageYOffset+'px';
		var confirmBoxLeft = window.pageXOffset+'px';
	}
	if (navigator.appName == "Microsoft Internet Explorer") {
		var confirmBoxInnerTop = (document.body.clientHeight/2)+document.body.scrollTop+'px';
		var confirmBoxInnerLeft = (document.body.clientWidth/2)+document.body.scrollLeft+'px';
	}
	else {
		//var confirmBoxInnerTop = '';
		var confirmBoxInnerTop = (window.innerHeight/2)+window.pageYOffset+'px';
		var confirmBoxInnerLeft = (window.innerWidth/2)+window.pageXOffset+'px';
	}
	
	document.getElementById('confirmBox').style.top = confirmBoxTop;
	document.getElementById('confirmBox').style.left = confirmBoxLeft;
	document.getElementById('confirmBoxInner').style.top = confirmBoxInnerTop;
	document.getElementById('confirmBoxInner').style.left = confirmBoxInnerLeft;

	document.getElementById('confirmBoxInnerText').innerHTML = text;

	//document.body.style.overflow = 'hidden';
	//document.body.style.paddingRight = '16px';
	if(document.getElementById('sliderFlash') && document.getElementById('sliderFlashInactive')) {
		document.getElementById('sliderFlash').style.display = 'none';
		document.getElementById('sliderFlashInactive').style.display = 'block';
	}
	document.getElementById('confirmBox').style.display = 'block';
	document.getElementById('confirmBoxInner').style.display = 'block';
	document.getElementById('confirmNein').focus();
	
	if (navigator.appName == "Microsoft Internet Explorer" && document.getElementById('selKat') && document.getElementById('selKatScreen')) {
		document.getElementById('selKat').style.display = 'none';
		document.getElementById('selKatScreen').style.display = 'block';
		}
	}

function ovExit(condition) {
	//document.body.style.overflow = '';
	//document.body.style.paddingRight = '';
	if(document.getElementById('sliderFlash') && document.getElementById('sliderFlashInactive')) {
		document.getElementById('sliderFlash').style.display = '';
		document.getElementById('sliderFlashInactive').style.display = '';
	}
	document.getElementById('confirmBox').style.display = 'none';
	document.getElementById('confirmBoxInner').style.display = 'none';

	if (navigator.appName == "Microsoft Internet Explorer" && document.getElementById('selKat') && document.getElementById('selKatScreen')) {
		document.getElementById('selKat').style.display = '';
		document.getElementById('selKatScreen').style.display = 'none';
		}

	if (condition) eval(xqt);
	}

function ovConfirm(text, action) {
	xqt = action;
	ovInit(text);
	}
