private String getNextName(String id) {
		if ( id.indexOf("-")>-1) {	id=id.substring(0, id.indexOf("-"));	}
		int cnt=0;
		int highIndex=0;
		for (int i=0;i<timeLines.size();i++) {
			TimeLineObject t=(TimeLineObject)timeLines.get(i);
			if (t.id.indexOf(id+"-")==0) {
				try {highIndex=Math.max(highIndex, Integer.parseInt(t.id.substring(t.id.indexOf("-")+1)));}catch(NumberFormatException n ){}
				cnt++;
			}
		}
		for (int i=0;i<timeLineSets.size();i++) {
			TimeLineSet t=(TimeLineSet)timeLineSets.get(i);
			if (t.getId().indexOf(id+"-")==0) {
				try {highIndex=Math.max(highIndex, Integer.parseInt(t.getId().substring(t.getId().indexOf("-")+1)));}catch(NumberFormatException n ){}
				cnt++;
			}
		}
		String newTimeLineId=id+"-"+(++highIndex);
		return newTimeLineId;
	}