function get_style_value(obj_id, attribut) {
	var obj_style;
	var obj = (!isObject(obj_id))?document.getElementById(obj_id):obj_id;
	if (document.body.currentStyle) {
        obj_style = obj.currentStyle;
    } else if (window.getComputedStyle) {
        obj_style = window.getComputedStyle(obj, null);
    }
    if(obj_style[attribut]=='auto' && attribut == 'height') {
    	return obj.offsetHeight;
    }
    return obj_style[attribut];
}

function set_style_value(obj_id, attribut, value) {
	var obj_style;
	obj = (!isObject(obj_id))?document.getElementById(obj_id):obj_id;
	/*
	if (document.body.currentStyle) {
        obj_style = obj.currentStyle;
    } else if (window.getComputedStyle) {
        obj_style = window.getComputedStyle(obj, null);
    }
    */
	obj.style[attribut] = value;
}

function new_div(id, parent_id, content, cl) {
    var parent_element = document.getElementById(parent_id);
    var neues_element = document.createElement("DIV");
    neues_element.setAttribute("id", id);
    neues_element.setAttribute("className", cl);
    neues_element.setAttribute("class", cl);

    neues_element.innerHTML = content;
    parent_element.appendChild(neues_element);
    return neues_element;
}