﻿// JScript-Datei
function FlipDisplay(objDiv){
	var DivBox = document.getElementById(objDiv);
	var style = DivBox.style.display
	if (style != 'none'){
		DivBox.style.display = 'none';
		}
	else{
		DivBox.style.display = 'block'};
}

function MakeHeight (){
//alert ('document.documentElement.Height '  + document.documentElement.Height);
//	alert ('document.documentElement.clientHeight '  + document.documentElement.clientHeight);
	
	window.document.getElementById("HeightMaker").style.height= document.documentElement.clientHeight-200;
}

function OpenWindowSized(strUrl, width, height)
{
	var myWindow = window.open(strUrl,'FS2','width=' + width + ',height=' + height + ',resizable=1,menubar=0,toolbar=0,scrollbars=1')
	myWindow.focus
}

function OpenWindow(strUrl)
{
	var myWindow = window.open(strUrl,'FS2','width=500,height=300,resizable=1,menubar=0,toolbar=0,scrollbars=1')
	myWindow.focus
}
function RefreshOpener()
{
	if (window.document.aspnetForm.elements['ctl00$hfRefreshOpener'].value == 'True')  
	{	
		window.opener.document.aspnetForm.submit();       
		window.close();
	 }
}
function checkUncheckAll(theElement) {
	var theForm = theElement.form, z = 0;
	for (z = 0; z < theForm.length; z++) {
		if (theForm[z].type == 'checkbox' && theForm[z].name != 'checkall') {
			theForm[z].checked = theElement.checked;
		}
	}
}


