var selectedId = null;
var oldClassName = null;
var typeId = null;

function selectActions(){
	if (selectedActions){
		for(var i=0; i < selectedActions.length; i++){
			var obj = document.getElementById(selectedActions[i]);
			if (obj){
				obj.className = 'action';
			}
		}
	}
	if (disabledActions){
		for(var i=0; i < disabledActions.length; i++){
			var obj = document.getElementById(disabledActions[i]);
			if (obj){
				obj.className = 'actionDisabled';
			}
		}
	}
}

function getId(){
	return parseInt(selectedId);
}

function showDialog(link, width, height){
	var newWin = window.open(link,"newWin","height="+height+",width="+width+",status=no,toolbar=no,menubar=no,location=no, scrollbars=yes, resizable=yes");	
	if (newWin) newWin.focus();
}

function CloseWindow(){
	if (window.opener){
		window.opener.focus();
	}
	window.close();
}
