<!--
function OpenWin(url, winname) {
  window.open(url, winname, "toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=1,width=200,height=100");
}

function CheckAll(formobj) {
	for (i=0; i < formobj.length; i++) if (formobj.elements[i].name.substr(0,8) == 'checked_') formobj.elements[i].checked = formobj.checkall.checked;
}

function CheckAllSpecial(formobj, fldall, prefix) {
	for (i=0; i < formobj.length; i++) if (formobj.elements[i].name.substr(0,prefix.length) == prefix) formobj.elements[i].checked = document.getElementById(fldall).checked;
}


function ConfirmDelete(form, msg) {
	var godel = window.confirm(msg);
	if (godel) {
		form.elements['suredelete'].value = 1;
		form.submit();
	}
}



function popup( url, winname, width, height ) {
	if (winname == "") winname = "popup";
	if (width == "") width = "400";
	if (height == "") height = "300";
	var top = (screen.height) / 2 - (height / 2);
	var left = (screen.width) / 2 - (width / 2);
	var win_arg = "scrollbars=yes,status=yes,resizable=yes,location=no,toolbar=no,width=" + width + ",height=" + height + ",top=" + top + ",left=" + left;
	window.open(url,winname,win_arg);
}


function SwitchDiv(id) {
	d = document.getElementById(id);
	a = document.getElementById('a'+id);
	if (d.style.display == 'none') {
		d.style.display = 'block';
		a.className = 'lvl2opened';
	}
	else {
		d.style.display = 'none';
		a.className = 'lvl2';
	}
}


 -->