function AppendChild(parent, child){
	document.getElementById(parent).appendChild(document.getElementById(child));
}

function ExpandOrCollapse(obj, sShortDeskElemName, sDeskElemName){
	eShortDesc = document.getElementById(sShortDeskElemName);
	eDesc = document.getElementById(sDeskElemName);
	if (obj.innerHTML == '+'){
		obj.innerHTML = '-';
		eShortDesc.style.display='none';
		eDesc.style.display='';
	}else{
		obj.innerHTML = '+';		
		eShortDesc.style.display='';
		eDesc.style.display='none';
	}
	return false;
}

function ExpandOrCollapseAll(obj, sElemSignName, sShortDeskElemName, sDeskElemName){
	sSign = '';
	if (obj.innerHTML == '+') {
		obj.innerHTML='-'; 
		sSign = '+';
	}else{
		obj.innerHTML='+'; 
		sSign = '-';
	}
	i = 0;
	while (oElemSign = document.getElementById(sElemSignName + '[' + i + ']')){
		if (oElemSign.innerHTML == sSign){
			ExpandOrCollapse(oElemSign, sShortDeskElemName + '[' + i + ']', sDeskElemName + '[' + i + ']');
		}
		i++;
	}
	return false;
}

var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height){
	if (popUpWin){
		if (!popUpWin.closed) {
			popUpWin.close();
		}
	}
	popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}