// JavaScript Document
function dynPopup(url, w, h) {
    var u, t, l = (screen.availWidth-w)/2;
    t = (screen.availHeight-h)/2;
    u = new Date().getTime();
    vindue=window.open(url,"popup"+u,"width="+w+",height="+h+",left="+l+",top="+t+",toolbar=0,location=0,directories=0,status=no,menubar=0,scrollbars=0,resizable=0,copyhistory=0");
    vindue.focus();
}
function newWin(url) {
    w = 800
    h = 600
    var u, t, l = (screen.availWidth)/2;
    t = (screen.availHeight)/2;
    u = new Date().getTime();
    vindue=window.open(url,"popup"+u,"width="+w+",height="+h+",left="+l+",top="+t+",toolbar=0,location=0,directories=0,status=no,menubar=0,scrollbars=0,resizable=1,copyhistory=0");
    vindue.focus();
}
function toggleElm(id, icon) {
	if ( document.getElementById('elm_'+ id).style.display == 'none' ) {
		document.getElementById('elm_'+ id).style.display = '';
		if(icon == 1){
			document.getElementById('tgl_'+ id).src = '/_gfx/CMS/icons/minus.gif';
		}
	} else {
		document.getElementById('elm_'+ id).style.display = 'none';
		if(icon == 1){
			document.getElementById('tgl_'+ id).src = '/_gfx/CMS/icons/plus.gif';
		}
	}

}
function checkAll(field)
{
for (i = 0; i < field.length; i++)
	field[i].checked = true ;
}

function uncheckAll(field)
{
for (i = 0; i < field.length; i++)
	field[i].checked = false ;
}



