var vv = new Object ();

function setSession (p_strKey, p_oValue) {	
	if (!frames.top.prototype) {
		frames.top.prototype = new Object ();
	} 	
	
	if (!frames.top.prototype.session) {
		frames.top.prototype.session = new Object ();	
	}		

	frames.top.prototype.session[p_strKey.toString ()] = p_oValue;	
}


function getSession (p_strKey) {	
	if (!frames.top.prototype) {
		return null;
	}
	
	if (!frames.top.prototype.session) {
		return null;
	}
			
	return frames.top.prototype.session[p_strKey];
}


function buildListFromArray (p_vArray, p_bOrdered, p_strFnToString) {
	var strRet = "";
	var strListStartTag = "";
	var strListEndTag = "";
	var fnToString = eval (p_strFnToString);
	
	if (p_bOrdered) {
		strListStartTag = "<ol>";
		strListEndTag = "</ol>";
	} else {
		strListStartTag = "<ul>";
		strListEndTag = "</ul>";
	}
		
	strRet = strListStartTag;
	
	for (i = 0; i < p_vArray.length; i++) {
		strRet = strRet + "<li>" + fnToString (p_vArray[i]) + "</li>";
	}
	
	strRet += strListEndTag;
	
	return strRet;
}


function toStringMitglied (p_oArrayEl) {
	var strRet = p_oArrayEl.name;
	
	if (p_iArrayEl.dauer != "") {
		strRet += "(" + p_iArrayEl.dauer + ")";
	}
	
	return strRet;
}




