function HideForm(){
	GetSelect();
	document.getElementById("Center").style.display = "none";
	document.getElementById("Disable").style.display = "none";
}

function GetForm(sWidth,sHeight){
	HideSelect();
	var xScroll, yScroll, sMinWidth, sMinHeight;
	if (window.innerHeight && window.scrollMaxY) {	
		xScroll = document.body.scrollWidth;
		yScroll = window.innerHeight + window.scrollMaxY;
	} else if (document.body.scrollHeight > document.body.offsetHeight){
		xScroll = document.body.scrollWidth;
		yScroll = document.body.scrollHeight;
	} else {
		xScroll = document.body.offsetWidth;
		yScroll = document.body.offsetHeight;
	}
	
	var windowWidth, windowHeight;
	if (self.innerHeight) {
		windowWidth = self.innerWidth;
		windowHeight = self.innerHeight;
	} else if (document.documentElement && document.documentElement.clientHeight) {
		windowWidth = document.documentElement.clientWidth;
		windowHeight = document.documentElement.clientHeight;
	} else if (document.body) {
		windowWidth = document.body.clientWidth;
		windowHeight = document.body.clientHeight;
	}	
	
	if(yScroll < windowHeight){
		pageHeight = windowHeight;
	} else { 
		pageHeight = yScroll;
	}
	
	if(xScroll < windowWidth){	
		pageWidth = windowWidth;
	} else {
		pageWidth = xScroll;
	}
	pageWidth = pageWidth;
	pageHeight = pageHeight;
	if (document.body.clientWidth < pageWidth) {
		pageWidth = pageWidth - 21;
	}
	if (document.body.clientHeight < pageHeight) {
		pageHeight= pageHeight- 4;
	}
	
	document.getElementById("Disable").style.display = "";
	document.getElementById("Disable").style.width = pageWidth;
	document.getElementById("Disable").style.height = pageHeight;
	document.getElementById("Center").style.display = "";
	document.getElementById("Form").style.width = sWidth;
	document.getElementById("Form").style.height = sHeight;
	document.getElementById("iForm").style.width = sWidth;
	document.getElementById("iForm").style.height = sHeight;
}

document.write("<div id='Disable' style='display:none;'>");
document.write("	<div></div>");
document.write("</div>");
document.write("<div id='Center' style='display:none;'>");
document.write("	<br><br>");
document.write("	<div id='sh-con' style='height:0px;width:0px;'>");
document.write("	<div class='sh1' style='height:0px;width:0px;'>");
document.write("	<div class='sh2' style='height:0px;width:0px;'>");
document.write("	<div class='sh3' style='height:0px;width:0px;'>");
document.write("	<div class='sh4' style='height:0px;width:0px;'>");
document.write("	<div class='sh5' style='height:0px;width:0px;'>");
document.write("	<div class='Shadow' style='height:0px;width:0px;'>");
document.write("	<div>");
document.write("		<div id='Form' style='height:0px;width:0px;'>");
document.write("			<div>");
document.write("				<div style='background:#FFFFFF;text-align:right;'>");
document.write("					<iframe id='iForm' name='Form' frameborder='0' scrolling='0'></iframe>");
document.write("					<a style='height:20px;line-height:20px;' OnClick='javascript:HideForm();' target='Form' href='Leeg.asp'><img src='Icons/Delete_s.gif' border='0' align='absmiddle'>&nbsp;Sluit scherm</a>&nbsp;&nbsp;");
document.write("				</div>");
document.write("			</div>");
document.write("		</div>");
document.write("	</div>");
document.write("	</div>");
document.write("	</div>");
document.write("	</div>");
document.write("	</div>");
document.write("	</div>");
document.write("	</div>");
document.write("	</div>");
document.write("</div>");

