
function confirmLink(rowid, theLink, msg) {
	OBJ1=document.getElementById(rowid);
	OBJ1.className='row_delete_confirm';
	var is_confirmed = confirm(msg);
	if (is_confirmed) {
		theLink.href += '&confirmed=1';
	} else {
		OBJ1.className='row1';
	}
	return is_confirmed;
}

function ToggleClass(id,rowclass) {
	OBJ1=document.getElementById(id);
	if(OBJ1.className=='row_delete_confirm') {

	} else {
		if(OBJ1.className=='row_delete') {
			OBJ1.className=rowclass;
		} else {
			OBJ1.className='row_delete';
		}
	}
}

function confirmClick(theLink, msg) {
	var is_confirmed = confirm(msg);
	if (is_confirmed) {
		theLink.href += '&confirmed=1';
	}
	return is_confirmed;
}

function popwindow(size,url,align) {
	var wWidth, wHeight, wLeft, wTop;
	wWidth = size*100;
	wHeight = wWidth*.75;
	if(align=='center') {
		wLeft = (screen.width-wWidth)/2;
		wTop = (screen.height-wHeight)/2;
		var Scherm = window.open(url, '_blank', 'scrollbars=yes,width='+wWidth+',height='+wHeight+',left='+wLeft+',top='+wTop);
	} else {
		var Scherm = window.open(url, '_blank', 'scrollbars=yes,width='+wWidth+',height='+wHeight);
	}
	Scherm.focus();
}

function popwindowXY(wWidth,wHeight,url,align) {
	var wLeft, wTop;
	if(align=='center') {
		wLeft = (screen.width-wWidth)/2;
		wTop = (screen.height-wHeight)/2;
		var Scherm = window.open(url, '_blank', 'scrollbars=yes,width='+wWidth+',height='+wHeight+',left='+wLeft+',top='+wTop);
	} else {
		var Scherm = window.open(url, '_blank', 'scrollbars=yes,width='+wWidth+',height='+wHeight);
	}
	Scherm.focus();
}

function disableform(state,id) {
	if(!state) {
		document.getElementById(id).style.visibility = 'hidden';
	} else {
		document.getElementById(id).style.visibility = 'visible';
	}
}

function setHgt() {
     OBJ1=document.getElementById('menu');
     OBJ2=document.getElementById('menu_l');
     OBJ3=document.getElementById('menu_r');
     OBJ4=document.getElementById('menu_bl');
     OBJ5=document.getElementById('menu_br');
     OBJ6=document.getElementById('content_wrapper');
     OBJ7=document.getElementById('content_l');
     OBJ8=document.getElementById('content_r');
     OBJ9=document.getElementById('content_bl');
     OBJ10=document.getElementById('content_br');
     H=Math.max(OBJ1.offsetHeight,OBJ6.offsetHeight);

     OBJ1.style.height=H+'px';
     OBJ2.style.height=H+'px';
     OBJ3.style.height=H+'px';
     OBJ4.style.height=H+'px';
     OBJ5.style.height=H+'px';
     OBJ6.style.height=H+'px';
     OBJ7.style.height=H+'px';
     OBJ8.style.height=H+'px';
     OBJ9.style.height=H+'px';
     OBJ10.style.height=H+'px';
}

function setHgt2() {

}

function terug() {
	if(document.getElementById('content').offsetHeight>500) {
		document.getElementById('terug').style.visibility='visible';
	}
}

window.onload=setHgt;
window.onscroll=terug;
