
var idPop = "popUp"


function newWindowPop(URL, height, width){
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width="+width+",height="+height+",left = 64,top = 64');");
}

function getRefToDivMod( divID, oDoc ) {
	if( !oDoc ) { oDoc = document; }
	if( document.layers ) {
		if( oDoc.layers[divID] ) { return oDoc.layers[divID]; } else {
			for( var x = 0, y; !y && x < oDoc.layers.length; x++ ) {
				y = getRefToDivMod(divID,oDoc.layers[x].document); }
			return y; } }
	if( document.getElementById ) { return oDoc.getElementById(divID); }
	if( document.all ) { return oDoc.all[divID]; }
	return document[divID];
}

function expand(teamTableId, rij){
	id = getRefToDivMod(teamTableId, '');
	if(id.style.visibility == "visible"){
		id.style.position = 'absolute'; //zodat de boel ook inklapt
		id.style.visibility = 'hidden';
		rij.innerHTML = "<a href='#'>[+]</a>";
	}else{
		id.style.position = 'static'; //en uitklapt
		id.style.visibility = 'visible';		
		rij.innerHTML = "<a href='#'>[-]</a>";
	}
}

function refreshDB(dus){
	selectForm.submit();
}
