function showLogin() {
	var h=document.getElementsByTagName('DIV')[0].offsetHeight; 
	var D = document;
	var h = Math.max(
		Math.max(D.body.scrollHeight, D.documentElement.scrollHeight),
		Math.max(D.body.offsetHeight, D.documentElement.offsetHeight),
		Math.max(D.body.clientHeight, D.documentElement.clientHeight)
	);

	var o=document.getElementById('inloggen2');
	if(o){
		var o=document.getElementById('total');
		if(o){
			o.style.display='block';
			o.style.visibility='visible';
			o.style.height = h;
		}
		var o=document.getElementById('inloggen');
		if(o){
			o.style.display='block';
			o.style.visibility='visible';
		}
	} else {
		var totalDiv = document.createElement('div');
		totalDiv.id = 'total';
		with (totalDiv.style) {
			display = 'block';
			position = 'absolute';
			visibility = 'visible';
			top = '0px';
			left = '0px';
			width = '100%';
			height = h;
			backgroundColor = '#777777';
			zIndex = 998;
			opacity = '0.7';
			filter = 'alpha(opacity=70)';
		}
		document.body.appendChild(totalDiv);
		
		var parentDiv = document.createElement('div');
		parentDiv.id = 'inloggen';
		with (parentDiv.style) {
			display = 'block';
			position = 'absolute';
			visibility = 'visible';
			top = '0px';
			left = '0px';
			width = '100%';
			height = '100%';
			textAlign = 'center';
			zIndex = 999;
			opacity = '1.0';
			filter = 'alpha(opacity=100)';
		}
		document.body.appendChild(parentDiv);
		
		var loginDiv = document.createElement('div');
		loginDiv.id = 'inloggen2';
		with (loginDiv.style) {
			display = 'block';
			visibility = 'visible';
			width = '624px';
			height = '407px';
			marginTop = '100px';
			marginLeft = 'auto';
			marginRight = 'auto';
			textAlign = 'left';
			color = '#000000';
			border = '1px solid #000000';
			zIndex = 1000;
			opacity = '1.0';
			boxShadow = '5px 5px 5px #555555';
			webkitBoxShadow = '5px 5px 5px #555555';
		}
		loginDiv.innerHTML = '<iframe src="/frmd/dologin.asp" height="407" width="624" frameborder="0"></iframe>';
		parentDiv.appendChild(loginDiv);
	}
}

function hideLogin() {
	var o=document.getElementById('total');
	if(o){
		o.style.display='none';
		o.style.visibility='hidden';
	}
	var o=document.getElementById('inloggen');
	if(o){
		o.style.display='none';
		o.style.visibility='hidden';
	}
}

